hi all!
This may not be jboss related, but something is wrong with, hopefully, my code.
I'm trying to invoke an entitybean from within a stateless sessionbean method. The 
problem is that it seems like the newly created
bean is rolled back when the method return back to the client invoker.

any idea of where the problem may be?

(stateless method below)
using jboss 3.0.0

-Jon

  public OIA createOIA(PersonaliaData invoice, PersonaliaData shipTo)
    throws java.rmi.RemoteException {
    OIA oia = null;
    System.out.println("PersonaliaSessionBean.createOIA()");
    try {
      oia = OIAUtil.getHome().create();

      oia.setInvoiceName("TEZTING TESTING");
      System.out.println("****************1:" + ((OIAPK) 
oia.getPrimaryKey()).getOIAId());
      System.out.println("****************2:" + oia.getInvoiceName()); // returns 
"TEZTING TESTING"
    } catch (Exception e) {
      e.printStackTrace();
    }

    return oia;
  }



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to