[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

[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

[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 :

[jboss-user] [EJB 3.0] - entitymanager flush is not flushing

2008-02-17 Thread kgreene
Hi, I'm new to jboss and ejb. I am trying to have the EntityManager update the database immediately versus waiting until the code completes. I tried using flush, but the database does not get updated until after the code completes. Any ideas? Watcher.java @Stateless @Clustered public

[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 post

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

2008-02-14 Thread kgreene
Hi, I'm trying to create a class that does database retrieval using entity manager. When I call getVpInfo, I notice that the entity manager is null. I need to access this dao from another class in my app. I am not accessing the dao from the client-side code. Does anyone know why the entity

[jboss-user] [EJB 3.0] - Re: javax.naming.NoInitialContextException

2008-02-05 Thread kgreene
Yes. I am using jboss-4.2.2.GA. From the links above, it seems this is an issue with this version? Is there any way to fix the issue with 4.2.2.GA or do I need to upgrade to JBossAS-4.2.3.GA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126554#4126554

[jboss-user] [EJB 3.0] - Re: javax.naming.NoInitialContextException

2008-02-05 Thread kgreene
ok. I can't find JBossAS-4.2.3.GA. Does it exist? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126565#4126565 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126565 ___

[jboss-user] [EJB 3.0] - javax.naming.NoInitialContextException

2008-02-04 Thread kgreene
Hi, I am new to EJB and jboss and am trying to access the database using the entitymanager. From what I understand, I am suppossed to create a persistence.xml file in my META-INF directory. When I do this I get the error below. Does anyone know what the issue might be? I have also listed