[JBoss-user] [EJB 3.0] - how to configure @UniqueConstraint

2006-06-14 Thread eielk
how do you use an object in the uniqueconstraint configuration? i want the unique constraint to be based on the user-entity's id and the name column. is this possible with this attribute? | @Entity | @Table(name = "x", | uniqueConstraints = [EMAIL PROTECTED](columnNames={"user.name"

[JBoss-user] [Installation, Configuration & Deployment] - Re: configuring persistence properties for based on release

2006-05-24 Thread eielk
i'm using 4.0.4.GA now with no issues and i found the answer i was looking for by updating my persistence.xml properties with the correct flush modes: auto and commit. | | java:/MySqlDS | | | | | | | | | View the original po

[JBoss-user] [EJB/JBoss] - Re: java.lang.ClassCastException javax.rmi.PortableRemoteObj

2006-05-24 Thread eielk
this worked like a charm for me...except i'm using 4.0.4.GA and there is no conf/jboss-service.xml file that has a naming section and call by attribute... so instead find the settings in the $jboss-home/server/default/deploy/naming-service.xml file. i was able to leave call-by-value=false in b

[JBoss-user] [Installation, Configuration & Deployment] - configuring persistence properties for based on release note

2006-05-16 Thread eielk
i updated the /default/deploy/ejb.deployer/Meta-inf/persistence.xml file based on the release notes for 4.0.4.cr2 but it doesn't change the setting. my ejb3 app works great on 4.0.4.rc1 and shows flush=enabled but now after upgrade it won't write to the db (flush) and my server startup output s

[JBoss-user] [EJB 3.0] - Re: configuring spring to wire in ejb3 stateless session bea

2006-03-23 Thread eielk
figured it out... i simply removed the 'resourceRef' property from the JNDIObjectFactory bean config!!! according to the spec about resource ref: it adds the java:comp crap at the beginning of the jndi lookup, no wonder it couldn't find the beans. anonymous wrote : resourceRef - if the lookup o

[JBoss-user] [EJB 3.0] - Re: configuring spring to wire in ejb3 stateless session bea

2006-03-23 Thread eielk
asack, thanks for the hint for the spring deployer...i'll check it out, will it work with struts action injection using the plugin in struts-config.xml? | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932311#3932311 Reply to the po

[JBoss-user] [EJB 3.0] - Re: configuring spring to wire in ejb3 stateless session bea

2006-03-23 Thread eielk
looks i didn't look down into the root exception: NameNotFoundException, do i need to prefix this if using spring, here is a snippet of the global jndi listing also... thanks. | 21:12:35,456 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.reflect.Undec | laredThrowab

[JBoss-user] [EJB 3.0] - Re: simple stateful session bean classcast exception

2006-03-22 Thread eielk
anyone? no one has run into this? come on... i don't believe it. i've been thru all of the tutorials and trailblazers, this is not complex but the client lookup just doesn't work for a stateful session bean... i found another posting on the wiki site that talks about classcastexception for mu

[JBoss-user] [EJB 3.0] - configuring spring to wire in ejb3 stateless session bean

2006-03-22 Thread eielk
since i can't use @ejb yet, and i don't want to litter the initial context throughout my code (old school), i figured i'd use spring to wire my ejb3 stateless session bean to my action but i just get the following error: | 23:46:21,310 ERROR [[action]] Servlet.service() for servlet action th

[JBoss-user] [EJB 3.0] - Re: simple stateful session bean classcast exception

2006-03-21 Thread eielk
update: upgraded to 4.0.4RC1 and i get the same classcast exception! doh! anyone have any ideas? should i be getting a statefulproxyfactory first since that is what is loaded into jndi? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931749#3931749 Reply to t

[JBoss-user] [EJB 3.0] - Re: simple stateful session bean classcast exception

2006-03-21 Thread eielk
sorry but here is some additional info: 1. using ejb3 2. i did notice that the trailblazer works with 4.0.4 only, but my question still stands, why can't i lookup the stateful session bean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931746#3931746 Reply

[JBoss-user] [EJB 3.0] - simple stateful session bean classcast exception

2006-03-21 Thread eielk
based on the trailblazer online examples, i setup a super simple stateless session bean (TestSLSB) and a stateful session bean(TestSFSB). note: using jboss 4.0.3sp1. they both show up in the jndi output, and the stateless works like a champ, but the stateful keeps throwing classcast exceptions