I don't know, I'm tryng to solve the last post of this
thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=79322
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930933#3930933
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posti
Hi,
I have found a work-around for the differed (defered) inserts imposed
from JBOSS in a REQUESTS_NEW-CMT context:
...
// beans created and PK generated from DB (id-seq) [every bean
// have the "id" Integer-pk-prop]
ABean oABean = new ABean();
BBean oBBean = null;
CBean oCBean = null;
m_oEM.pe
Hi,
when I call and oABean.getBBeans(), on an ABean loaded from DB,
I obtain a "null" Set [on DB exist a C-record which link loaded
A-record with B-records]. Any Idea?
package test.ejb.entity;
import java.util.*;
import javax.persistence.*;
import javax.ejb.*;
@Entity
@Inheritance
@Table(name=
Hi,
I need to force the use of "CMTTransactionFactory" in an EJB app.
How can I do this?
TIA
Roberto Colmegna
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930616#3930616
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&
Thanks for your reply.
I putted this line:
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
before stateless-session-bean method which execute
the INSERTs/SELECT. But after running code I have
obtained the same result. :(
View the original post :
http://www.jboss.com/index.htm
Solved:
need a differente Many2Many declaration:
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch =
FetchType.EAGER)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930585#3930585
Reply to the post :
http://www.jboss.com/index.html?mo
Hi,
I have a small test-code (on JBOSS 4.0.4RC1) which execute this actions:
1) create an ABean (persistenced on DB)
2) create an BBean (whith an idA() prop) (persistenced on DB)
3) create an CBean (whith an idA() and idB() props) (persistenced on DB)
4) I excute an ABean.getBBeans() on the bean
Yes, my DB (postgres 7.4) support seq-tbl.
In fact, when I move id-specs from IdEntityBean
in every Bean it works perfectly ... :(
Note: I use JBOSS 4-0-4RC1
TIA
Roberto Colmegna
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928424#3928424
Reply to the po
Hi,
I'm trying to create an "IdEntityBean" superclass:
package test.ejb.entity;
import java.util.*;
import javax.persistence.*;
@MappedSuperclass
public abstract class IdEntityBean {
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator = "Seq")
Integer id;
public Integer getId(
Solved:
use createNamedQuery() in please of createQuery()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927804#3927804
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927804
--
ABean:
package test.ejb.entity;
import java.util.*;
import javax.persistence.*;
import javax.ejb.*;
@Entity
@Remote
@Table(name="a")
@NamedQuery(
name="ABean_findAll",
query="SELECT o FROM ABean o ORDER BY o.m_sInfo DESC"
)
public class ABean extends IdEntityBean {
@Column(name="info")
Solved: wrong position of persistence.xml, I put it into:
[test.ear]\META-INF\
but it must go into:
[test.ear]\[test-ejb.jar]\META-INF\
TIA
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927780#3927780
Reply to the post :
http://www.jboss.com/index.html?m
I obtain a NullPointerExcep when I trying to use m_oEM.
But, on the log, I noticed that:
2006-03-03 15:34:51,934 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing M
Bean: jboss.j2ee:service=EJB3,ear=test.ear,jar=test-ear.jar,name=AlfaSessionBean
with dependencies:
2006-03-03 15:34:51,934 IN
JBOSS 4.0.4RC1
Stateless code:
public class AlfaSessionBean implements AlfaSession {
EntityManager m_oEM = null;
public AlfaSessionBean() {
System.out.println("PreFindPersMgrFactory");
EntityManagerFactory oEMF = Persistence.
createEntityManagerFactory("TestPersistenceManager")
jboss-ejb3x.jar isn't included in jboss-4.0.4RC1.tar.gz
(MD5 sum check on downloaded file correct)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927511#3927511
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927511
-
Hi,
with jboss-4.0.4RC1 I obtain a " cannot find symbol" on
"import javax.ejb.Stateless;" code (required for
"@Stateless" annotation).
Any idea?
TIA
Roberto Colmegna
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927477#3927477
Reply to the post :
http:
Solved:
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927458#3927458
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927458
-
Hi,
I have a small test bean:
package test.ejb.entity;
import java.util.*;
import javax.persistence.*;
@Entity
public class IdEntityBean {
@Id(generate=javax.persistence.GeneratorType.AUTO)
Integer id;
public Integer getId() { return id;}
}
--
Deploy your shared components in
/default/ dir packed in a .JAR (NOT .EAR)
files.
.JAR it's shared by classloader.
bye
Roberto Colmegna
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858657#3858657
Reply to the post :
http://www.jboss.org/index.html?module=
Hi,
I have a TEST.EAR in "default/deploy". I
need to use some entities present
in "default/deploy/COMPS.EAR".
I tring to share classloader via setting
in JBOSS.XML presents in the EAR-files.
With this syntax:
if.fm:loader=unique-archive-name
java2ParentDelegaton=true
BUT w
How can the problem be solved via "" tag?
TIA
Roberto Colmegna
"[EMAIL PROTECTED]" wrote : Read the release notes. The default configuration
in jboss-4.0.0 uses scoped deployments of ears by default so deployments
outside of the ear cannot see its classes. Use the standard configuration or
re
JBOSS: 4.0
JVM: java version "1.4.1_02"
OS: LINUX RH9
DB: PostGres 7.4.3
Problem: JVM core dump when calling a non-existing obj prop.
Analisys: when the dedicated method ObjIntrospector.setVal(obj, propName,val)
calls java.lang.reflect.Method.invoke(...) JVM method on a CMP-bean on a prop which
Hi,
I have a full-developed project witch use CMP-beans. The DataSource name is present
only in jbosscmp-jdbc.xml file.
Now, I need to read some config-params from a "config" DB-table via direct
JDBC-connection
from JDBC-pool.
Can I do this without re-declare DSname in:
oContext.lookup(DSname)
Hi,
I have a EAR with this structure:
|-- META-INF
| |-- application.xml
| `-- jboss-app.xml
|-- ecom-ejb.jar
`-- ecom.sar
in the .SAR there is a jboss-service.xml which
force a call to an object every N sec. When
I build .EAR and deploy it it's all ok (i see
a log-line from scheduled method).
Hi,
I need to call an ABean.getBBeans() and
obtain BBean ORDERED BY infoB. Is this
possibile without write ad-hoc finder but
with getBBeans() overload?
TIA!
I have this situation:
ABean (.get/setId: Int/PK .get/setInfoA: String
get/setBBeans())
BBean (.get/setId: Int/PK .get/setInfoB: String
Auto-resolved! ;)
Solution:
* @jboss.declared-sql signature="java.util.Collection findByInfo(java.lang.String
info)"
* where="info LIKE '%' || {0} || '%'"
* strategy="on-find"
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38439
Post error:
where="idA LIKE '%{0}%'"
is
where="info LIKE '%{0}%'"
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843961#3843961
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843961
-
JBOSS: 3.2.4
PostgresDB: 7.4.2
EJB XDocLet declaration:
* @ejb.finder signature="java.util.Collection findByInfo(java.lang.String info)"
* query=""
* @jboss.declared-sql signature="java.util.Collection findByInfo(java.lang.String
info)"
* where="idA LIKE '%{0}%'"
*
28 matches
Mail list logo