0 Replies Latest reply on Apr 12, 2004 8:41 AM by Nagurva Reddy

    How to get TransactionCurrent object from jacorb ORB

    Nagurva Reddy Newbie


      I need help in getting TransactionCurrent object in my application deloyed in JBoss. I tried to get it from the 'jacorb' name service.

      I am using the following code snippet.
      org.omg.CORBA.ORB orb = org.jboss.iiop.CorbaORB.getInstance();
      org.omg.CosTransactions.Current current = null;
      try {
      current = (org.omg.CosTransactions.Current) orb.resolve_initial_references("TransactionCurrent");
      } catch(Exception ex) {
      System.out.println("Could not find TransactionCurrent: "+ex)

      I am getting the following exception.

      Could not find TransactionCurrent: org.omg.CORBA.ORBPackage.InvalidName

      Please let me know whether I am getting the orb instance in the proper way. How can I get TransactionCurrent in JBoss server.

      Thanx in advance