Now I am updating what I said I discovered in the previous post.
The ejbLoad method also returns ok, but when the transaction is committed "No
Transaction" exception is thrown. I guess the container cannot find a
Transaction associated with the executing thread.
I dont know why...I mark all the methods of the BMP bean Transaction-Required
and I am using UserTransaction enclosing the method calls on the bean. What am
I doing wrong here?
Here is the code:
anonymous wrote :
| User beanRemote = null;
|
| transaction = (UserTransaction)
ctx.lookup("java:comp/UserTransaction");
| transaction.begin();
|
| beanRemote = userHome.findByPrimaryKey("erbora00");
|
| String str = beanRemote.getPassword();
|
| System.out.println("Got the password");
|
|
| // every thing is ok until this line
| transaction.commit();
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899511#3899511
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899511
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user