6 Replies Latest reply on Jun 7, 2004 4:38 PM by Eugene Ivanov

    Janeva 6 & JBOSS

    Ryan Pape Newbie

      Has anyone gotten Janeva 6 to work with JBOSS? I'm trying to execute a method on a stateless session bean from my C# app, but I cannot seem to get anything to work.

        • 1. Re: Janeva 6 & JBOSS
          mysteria_mm Newbie

          Here is the copy'n'paste from the borland.public.janeva newsgroup:

          Even though Janeva is not officially certified to support JBoss
          (mostly due to some issues with JBoss/JacORB to comply with the
          CORBA RMI-over-IIOP spec), the basic functionality works fine.

          To demonstrate this, here are the step-by-step instructions how
          to run the Janeva Cart example against JBoss 3.2.3:

          (1) Add the jboss.xml deployment descriptor file into
          the %janeva%\examples\Shared\Java\Cart\cart_beans.jar archive
          under the META-INF directory. The contents of jboss.xml file
          should be as follows:


          <enterprise-beans>

          <ejb-name>cart</ejb-name>
          <jndi-name>examples/Cart</jndi-name>
          <configuration-name>Standard Stateful SessionBean</configuration-name>
          <invoker-bindings>

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

          </invoker-bindings>

          </enterprise-beans>


          This step is needed to enable accessing the Cart bean via
          the IIOP protocol.

          (2) Configure JBoss to disable chunking (an RMI-over-IIOP feature)
          as it seems to be broken in the current version of JacORB (version 2)
          used by JBoss for the RMI-over-IIOP support. To achieve it, open
          the %jboss$\server\all\conf\jacorb.properties file in your text editor
          and switch the value of the jacorb.interop.chunk_custom_rmi_valuetypes
          parameter from on to off.

          (3) Start JBoss under the 'all' configuration (e.g. using
          the "run -c all" command). Note that it is important to use the 'all'
          configuration as the default configuration doesn't enable the IIOP
          support.

          (4) Deploy the cart_bean.jar file into the JBoss server by copying
          it into the %jboss%\server\all\deploy directory.

          (5) Run any Janeva Cart client (e.g.
          the %janeva%\examples\J2EE\CartClient example) using the following
          line as a NamingService bootstrap IOR:

          corbaloc::localhost:3528/JBoss/Naming/root

          • 2. Re: Janeva 6 & JBOSS
            Eugene Ivanov Newbie

            It's possible. See "using Janeva with JBoss" posting in the borland.public.janeva newsgroup.

            • 3. to xykbug
              jackiedlh Newbie

              You have said:
              It's possible. See "using Janeva with JBoss" posting in the borland.public.janeva newsgroup.

              But i can find it. Can u help me, thans a lot!


              Do u have some example of "using Janeva with JBoss", thanks a lot!
              My MSN:jackiedlh@hotmail.com

              • 4. Re: Janeva 6 & JBOSS
                Eugene Ivanov Newbie

                Here is the copy'n'paste from the borland.public.janeva newsgroup:

                Even though Janeva is not officially certified to support JBoss
                (mostly due to some issues with JBoss/JacORB to comply with the
                CORBA RMI-over-IIOP spec), the basic functionality works fine.

                To demonstrate this, here are the step-by-step instructions how
                to run the Janeva Cart example against JBoss 3.2.3:

                (1) Add the jboss.xml deployment descriptor file into
                the %janeva%\examples\Shared\Java\Cart\cart_beans.jar archive
                under the META-INF directory. The contents of jboss.xml file
                should be as follows:


                <enterprise-beans>

                <ejb-name>cart</ejb-name>
                <jndi-name>examples/Cart</jndi-name>
                <configuration-name>Standard Stateful SessionBean</configuration-name>
                <invoker-bindings>

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

                </invoker-bindings>

                </enterprise-beans>


                This step is needed to enable accessing the Cart bean via
                the IIOP protocol.

                (2) Configure JBoss to disable chunking (an RMI-over-IIOP feature)
                as it seems to be broken in the current version of JacORB (version 2)
                used by JBoss for the RMI-over-IIOP support. To achieve it, open
                the %jboss$\server\all\conf\jacorb.properties file in your text editor
                and switch the value of the jacorb.interop.chunk_custom_rmi_valuetypes
                parameter from on to off.

                (3) Start JBoss under the 'all' configuration (e.g. using
                the "run -c all" command). Note that it is important to use the 'all'
                configuration as the default configuration doesn't enable the IIOP
                support.

                (4) Deploy the cart_bean.jar file into the JBoss server by copying
                it into the %jboss%\server\all\deploy directory.

                (5) Run any Janeva Cart client (e.g.
                the %janeva%\examples\J2EE\CartClient example) using the following
                line as a NamingService bootstrap IOR:

                corbaloc::localhost:3528/JBoss/Naming/root

                • 5. Janeva 6 & JBOSS: Date serialization.
                  horatio Newbie

                  After working out much of what has been posted here by good old trial and error, I have one remaining problem with JacORB: dates. Or, more correctly, I can retrieve a java.util.Date from my EJB, but I can't write it.

                  Some notes:
                  - it works with BES
                  - chunking is disabled
                  - String and BigDecimal work
                  - Versions tested include 3.2.2, 3.2.3 and 3.2.4RC2.

                  Error output (from 3.2.3):
                  2004-06-07 16:23:11,289 INFO [STDOUT] [ POA EJBObject&%ejb&%simplistic - rid: 314 oid:
                  AC ED 00 05 70 ....p
                  opname: _set_date - invocation: system exception was thrown (org.omg.CORBA.portable.UnknownException: vmcid: 0x0 minor code: 0 completed: Maybe) ]

                  I have had consistent problems with this area - has anyone come up against this problem?

                  Thanks,
                  JT

                  • 6. Re: Janeva 6 & JBOSS
                    Eugene Ivanov Newbie

                    JT,

                    I would recommend you to ask this question in the borland.public.janeva newsgroup. Janeva developers team is very responsive over there.