1 Reply Latest reply on Jun 8, 2005 9:13 AM by darranl

    jboss shutting down

    kumar.kvb

      hi
      I have a tuxedo server on which some services deployed written in C++. I am using a corba client program to use these services. when i invoked this class in jsp, jboss server shutting down. Could any one help me regarding this.

      here is my java code

      import java.io.*;
      import java.util.Properties;
      import org.omg.CORBA.*;
      import com.beasys.Tobj.*;
      import com.beasys.*;
      import org.omg.CosNaming.*;

      /**
      * The SimpleClient class provides code for the Simpapp Java client.
      */
      public class SimpleClient
      {

      /**
      * This is the main code for the Simpapp Java client.
      */
      //public static void main(String args[])
      public SimpleClient()
      {
      // Set things up to read lines of text from the user.


      try {

      String args[] = null;
      ORB orb = ORB.init(args, null);

      Tobj_Bootstrap bootstrap = new Tobj_Bootstrap(orb, "");

      org.omg.CORBA.Object ns_obj =
      bootstrap.resolve_initial_references("NameService");

      org.omg.CosNaming.NamingContextExt ns_root =

      org.omg.CosNaming.NamingContextExtHelper.narrow (ns_obj);

      org.omg.CORBA.Object simple_fact_oref =
      ns_root.resolve_str ("simple_factory");

      SimpleFactory simple_factory_ref =
      SimpleFactoryHelper.narrow(simple_fact_oref);

      Simple simple = simple_factory_ref.find_simple();

      String mixed = "some sting";

      org.omg.CORBA.StringHolder buf = new org.omg.CORBA.StringHolder(mixed);
      simple.to_upper(buf);
      System.out.println(buf.value);

      // Convert the string to lower case.
      String lower = simple.to_lower(mixed);
      System.out.println(lower);


      }
      catch (InvalidDomain e) {
      System.err.println("Can't connect to the domain: " +e);
      System.exit(1);
      }
      catch (org.omg.CORBA.BAD_PARAM e) {
      System.err.println("Invalid TOBJADDR=//host:port property specified: " +e);
      e.printStackTrace();
      System.exit(1);
      }
      catch (org.omg.CosNaming.NamingContextPackage.NotFound e)
      {
      System.err.println("Can't resolve name in name service");
      System.exit(1);
      }
      catch (org.omg.CORBA.UserException e) {
      System.err.println("Unexpected CORBA user exception: " +e);
      e.printStackTrace();
      System.exit(1);
      }
      catch (org.omg.CORBA.SystemException e) {
      System.err.println("CORBA system exception: " +e);
      e.printStackTrace();
      System.exit(1);
      }

      }
      }


      thanks in advance

      kumar k..