It seems to work like this:

  | InitialenRemote initiaal = null;
  | Context context = new InitialContext();
  | UserTransaction userTran = 
(UserTransaction)context.lookup("UserTransaction");
  | try{
  |     userTran.begin();
  |                             
  |     String strInitiaal = initialenForm.getInitiaal();
  |     Object einRef = context.lookup("Initiaal");
  |     InitialenHomeRemote home = 
(InitialenHomeRemote)PortableRemoteObject.narrow(einRef, 
InitialenHomeRemote.class);         
  |     initiaal = home.create(strInitiaal);
  |                             
  |     userTran.commit();
  | }catch(Exception e){
  |     userTran.rollback();
  |     e.printStackTrace();
  | }
  | 

But I'm not sure if this is the right way...

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to