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