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
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=
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
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
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'
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
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
__
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
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