4 Replies Latest reply on Feb 23, 2005 7:32 AM by Sunil Arora

    Writing a CORBA enabled EJB - examples ???

    vomus Newbie

       

      "vomus" wrote:
      "vomus" wrote:
      Hi!
      I was wondering wthether there are any examples of writing a CORBA
      enabled EJBs in Jboss. Any material, tutorials, HowTo's would be
      greatly appreciated.

      I could not find much googling or reading an extended Jboss documentation
      that I bought a while ago

      Thanks,
      Sergei


        • 1. Re: Writing a CORBA enabled EJB - examples ???
          stanimir Newbie

           

          "stanimir" wrote:
          "stanimir" wrote:
          "stanimir" wrote:
          Actually, there is no difference between writing Corba enabled EJB and standard EJB.

          Your Jboss.xml file must include the following tag
          <invoker-bindings>

          <invoker>
          <invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
          </invoker>

          <invoker>
          <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
          </invoker>
          </invoker-bindings>

          This says Jboss that your EJB could be accessed through iiop and rmi.
          Deploy your EJB in default/all directory and start Jboss using run -c all command.
          You are ready to test your EJB.
          Cheers stan.


          • 2. Re: Writing a CORBA enabled EJB - examples ???
            vomus Newbie

             

            "vomus" wrote:
            "vomus" wrote:
            "vomus" wrote:
            Bah! I actually meant another thing - I want to pull a method
            accessable through an external CORBA server. I must have written
            this more clearly.

            See, I have a server that exhibits some interfaces through CORBA
            and I want to get data from this server into my bean. Does it mean
            I have to somehow configure JCA or do something totally different.


            • 3. Re: Writing a CORBA enabled EJB - examples ???
              enterprisejavabones Newbie

              Hi,

              i've got exactly the same issue. I'm trying to use the IONA Orbix ORB but when i try to init the ORB i get some nag about not being able to instantiate the default orb com.iona....

              I moved the code to a standalone app that works fine.

              If you found the solution, please do tell me how.

              Thanks
              Bones.

              • 4. Re: Writing a CORBA enabled EJB - examples ???
                Sunil Arora Newbie

                I did same what you said my Jboss.xml file is as follows

                <ejb-name>Hello</ejb-name>
                <jndi-name>Hello</jndi-name>
                <local-jndi-name>HelloLocal</local-jndi-name>

                </enterprise-beans>

                <resource-managers>
                </resource-managers>
                <invoker-bindings>
                <invoker-proxy-binding-name>stateless-rmi-invoker</invoker-proxy-binding-name>
                <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
                </invoker-bindings>



                But still I am not able to access the EJB via corba client.
                I already tested it by puuing inside the <enterprise bean> still i am getting exception Name not found . There is no object bound on 3528 port.

                Please suggest me where i am wrong?