1 Reply Latest reply on Apr 7, 2004 6:20 AM by Adrian Brock

    how to develop C++ CORBA client to talk to simple EJB in Jbo

    jonasj Newbie

      Now that I got simple Helloworld EJB working. I need to develop
      simple C++ CORBA client to talk to Helloworld EJB. In this case I cannot package C++ CORBA client in EAR file that is deployed in Jboss. I need to use the CORBA IIOP protocol between EJB and C++ client. So I figure I will have to change EJB to use CORBA instead of RMI-IIOP.

      Any pointers how to do that under Jboss?

        • 1. Re: how to develop C++ CORBA client to talk to simple EJB in
          Adrian Brock Master

          RMI/IIOP is Corba. The default in jboss is RMI/JRMP

          If you look in conf/standardjboss.xml you will see a invoker binding for iiop.
          You just add a jboss.xml to your deployment that says use that binding.
          Here's an example from the testsuite:

          <?xml version="1.0" encoding="UTF-8"?>
          
          <jboss>
           <enterprise-beans>
           <session>
           <ejb-name>StatelessIIOPSession</ejb-name>
           <jndi-name>IIOPSession</jndi-name>
           <configuration-name>Standard Stateless SessionBean</configuration-name>
           <invoker-bindings>
           <invoker>
           <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
           </invoker>
           </invoker-bindings>
           </session>
           </enterprise-beans>
          </jboss>
          


          See docs/dts/jboss_3_2.dtd for all the config options.

          You need to start jboss in the all configuration to make iiop/jacorb available.
          i.e. run.sh -c all

          Regards,
          Adrian