Hi people,

I am new to EJB's and I couldn't find a solution to this: I deployed a BMP and 
got its remote interface through findByPrimaryKey. But when a method is called 
on the bean I get TransactionRolledbackException.

Here is the code:


  | ***
  | UserHome userHome = null;
  | InitialContext ctx = new InitialContext();
  | Object objref = ctx.lookup("ejb/test/MyTestBmpBean");
  | userHome = (UserHome) PortableRemoteObject.narrow(objref,
  |                                     UserHome.class);
  | ***
  | User beanRemote;
  | beanRemote = userHome.findByPrimaryKey("somename");
  | String str = null;
  | if(beanRemote != null){
  |    // FOR THIS LINE THE EXCEPTION IS THROWN
  |    str = beanRemote.getPassword();
  | }
  | 
  | 

I can include the server log if need be...

Thanks in advance.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3898660#3898660

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3898660


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

Reply via email to