IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

CORBA API invocation issues when invoked thru Java Services

  • 1.  CORBA API invocation issues when invoked thru Java Services

    Posted Fri July 09, 2004 12:18 PM

    We are facing problems when invoking CORBA APIs (required for interfacing with a third party application) thru the custom built IS Java Services. The environment is JBroker ORB.

    The task being performed by the Java Services in brief is

    1. Establish a connection with JBroker ORB thru an IOR
    2. Initialize the ORB
    3. Execute the CORBA APIs exposed by the third party application

    We are able to connect to the the ORB but when we try to formulate a CORBA object thru the servant_to_reference method of omg.org.PortableServer.POA object we get a java.lang.reflect InvocationTarget exception as below:

    java.lang.reflect.InvocationTargetException: org.omg.PortableServer.Servant._orb(Lorg/omg/CORBA/ORB;)V

    where _orb is our ORB instance.

    The same APIs work when invoked as standalone Java programs without any issues.

    We have taken care to ensure the same classpath is available for the IS Server by modifying the server.sh located under WM_INSTALL_DIR/IntegrationServer/bin.

    Also the native libraries and jars required by JBroker are included in the server.sh startup script

    Is there any other configuration which needs to be done explicitly for invoking CORBA APIs (anything related to security policy, run-time environment specifications for IS server)

    Another issue we noticed is we are not able to catch the Exception being generated by our user code by specifying a try/catch clause

    Any pointers would be greatly appreciated.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: CORBA API invocation issues when invoked thru Java Services

    Posted Sat July 10, 2004 02:09 AM

    What OS and JVM vendor/version are you using for IS? Does your standalone java app (Corba client app) work with the same OS and JVM vendor / version?

    Mark


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services