[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-20 Thread kgreene
This code works except for the flush. The flush does not commit the updates to the database. Specifically, I want to update the status in the Fetcher.transfer method. However, the status does not get updated to "RUNNING". It only gets updated to "COMPLETE" once the fetcher is done. I thought m

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-19 Thread ALRubinger
Please paste the code that works, the code you'd like to work, and the relevant part of the JNDIView? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130523#4130523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-19 Thread kgreene
Ok, I am very lost. Forgive me, I am new to jboss and ejbs. I've been looking for a solution for several hours and still have not found the answer. I misspoke about the actual issue. The dao object is not null. I get NameNotFoundException because it can't find it. When I bring up my jndi c

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-17 Thread kgreene
When I tried the below, the dao object is null and I cannot call methods on it. InitialContext ctx = new InitialContext(); VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup("VPInfoDB/VpInfoDAOBean/local"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41299

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-15 Thread ALRubinger
VPInfoDAOImpl vpdao = VPInfoDAOImpl.getInstance(); This won't work; here you are constructing a plain object, not accessing an EJB instance from the container. InitialContext ctx = new InitialContext(); | VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup("VPInfoDB/VpInfoDAOBean/local"); What'

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-15 Thread kgreene
Currently, I am using: VPInfoDAOImpl vpdao = VPInfoDAOImpl.getInstance(); I also tried: InitialContext ctx = new InitialContext(); VPInfoDAOLocal dao = (VPInfoDAOLocal) ctx.lookup("VPInfoDB/VpInfoDAOBean/local"); I tried VPInfoDAORemote also. That did not work either. View the original pos

[jboss-user] [EJB 3.0] - Re: EntityManager is null

2008-02-14 Thread ALRubinger
How is the calling class accessing an instance of VpInfoDAOBean? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129511#4129511 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129511 __

[jboss-user] [EJB 3.0] - Re: entityManager is null

2007-03-08 Thread LGSW_Sam
Hi Wolfgang, problem solved. I had a bad "typo" on the bean calling this bean.. So nothing wrong wit persistence.xml or ActionExceptionHandlingBean... thanks for your help! Br, Sami Männistö View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026195#4026195 Re

[jboss-user] [EJB 3.0] - Re: entityManager is null

2007-03-07 Thread Wolfgang Knauf
Hi Sami, your bean and persistence.xml in the same jar file ? Your persistence.xml was probably only a snippet ? I miss the xml document root "persistence": | http://java.sun.com/xml/ns/persistence"; | | ... | | Hope this helps Wolfgang View the original post : ht