[JBoss-user] [JBoss jBPM] - Re: CMTTransactionFactory

2006-03-17 Thread Roberto72
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

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Correct operations?

2006-03-16 Thread Roberto72
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

[JBoss-user] [EJB 3.0] - Many2Many problem

2006-03-16 Thread Roberto72
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=

[JBoss-user] [JBoss jBPM] - CMTTransactionFactory

2006-03-16 Thread Roberto72
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&

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Delayed insert

2006-03-16 Thread Roberto72
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

[JBoss-user] [EJB 3.0] - Re: Many2Many problem

2006-03-16 Thread Roberto72
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

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Delayed insert

2006-03-16 Thread Roberto72
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

[JBoss-user] [EJB 3.0] - Re: MappedSuperclass problem with SequenceGenerator

2006-03-07 Thread Roberto72
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

[JBoss-user] [EJB 3.0] - MappedSuperclass problem with SequenceGenerator

2006-03-07 Thread Roberto72
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(

[JBoss-user] [EJB 3.0] - Re: createQuery() failure

2006-03-03 Thread Roberto72
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 --

[JBoss-user] [EJB 3.0] - createQuery() failure

2006-03-03 Thread Roberto72
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")

[JBoss-user] [EJB 3.0] - Re: EntityManagerFactory problem

2006-03-03 Thread Roberto72
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

[JBoss-user] [EJB 3.0] - Re: EntityManagerFactory problem

2006-03-03 Thread Roberto72
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-user] [EJB 3.0] - EntityManagerFactory problem

2006-03-03 Thread Roberto72
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-user] [EJB 3.0] - Re: missing javax.ejb.Stateless?

2006-03-02 Thread Roberto72
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 -

[JBoss-user] [EJB 3.0] - missing javax.ejb.Stateless?

2006-03-02 Thread Roberto72
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:

[JBoss-user] [EJB 3.0] - Re: EJB3 compilation failure

2006-03-02 Thread Roberto72
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 -

[JBoss-user] [EJB 3.0] - EJB3 compilation failure

2006-03-02 Thread Roberto72
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;} } --

[JBoss-user] [Beginners Corner] - Re: JBoss 4.0 EJB depending on external libraries

2004-12-14 Thread Roberto72
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=

[JBoss-user] [Beginners Corner] - JBOSS 4.0 - changing deployment problem

2004-11-12 Thread Roberto72
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

[JBoss-user] [Installation & Configuration] - Re: deployment dependencies working differently in jboss4.0.

2004-11-12 Thread Roberto72
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-user] [Persistence & CMP/JBoss] - JBoss 4.0 - core dump on introspection call

2004-09-28 Thread Roberto72
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

[JBoss-user] [Persistence & CMP/JBoss] - CMP / JDBC-conn-lookup

2004-09-24 Thread Roberto72
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)

[JBoss-user] [Management, JMX/JBoss] - EAR with scheduled call

2004-09-22 Thread Roberto72
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).

[JBoss-user] [Persistence & CMP/JBoss] - CMR sorted?

2004-08-06 Thread Roberto72
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: LIKE problem with CMP and declared-sql

2004-08-03 Thread Roberto72
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

[JBoss-user] [Persistence & CMP/JBoss] - Re: LIKE problem with CMP and declared-sql

2004-08-03 Thread Roberto72
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-user] [Persistence & CMP/JBoss] - LIKE problem with CMP and declared-sql

2004-08-03 Thread Roberto72
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}%'" *