Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-5464

Distribute unified-http-invoker.sar package for accessing JNDI, EJB2s and EJB3s over Unified HTTP invoker

    Details

    • Type: Task Task
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Out of Date Out of Date
    • Affects Version/s: JBossAS-4.2.2.GA, JBossAS-5.0.0.Beta4
    • Fix Version/s: 6.0.0.M1, 6.0.0.M3
    • Component/s: EJB, EJB2, Naming, Remoting
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Estimated Difficulty:
      Low
    • Similar Issues:
      Show 10 results 

      Description

      In the same way that we've been provided the http-invoker.sar, AS should
      now distribute the Unified invoker equivalent. Instructions on how to build
      this can be found in:

      http://wiki.jboss.org/wiki/EJBAndJNDIOverHTTPWithUnifiedInvoker

      The way we should package this is up for debate. I'll start a design forum
      thread when the time discuss this comes.

      I'll attach a fully working unified-http-invoker.sar and example EJB that uses
      it in a minute.

      Any potential outcome of generating unified-http-invoker.sar for AS should
      probably also include services needed for EJB3:

      http://wiki.jboss.org/wiki/Accessing_EJB3s_over_HTTP_HTTPS

        Issue Links

          Activity

          Hide
          Galder Zamarreño
          added a comment -

          I've created this jar out of the classes in deploy/http-invoker.sar/invoker.war/WEB-INF/classes/
          and put it under the lib directory so that both http-invoker.sar and unified-http-invoker.sar share
          them.

          We will need to produce such jar out of our build system for AS 4.2.x. For AS 5, we might not need
          it as legacy invoker descriptors are not distributed any more, but it'd be good to keep things separate.

          Show
          Galder Zamarreño
          added a comment - I've created this jar out of the classes in deploy/http-invoker.sar/invoker.war/WEB-INF/classes/ and put it under the lib directory so that both http-invoker.sar and unified-http-invoker.sar share them. We will need to produce such jar out of our build system for AS 4.2.x. For AS 5, we might not need it as legacy invoker descriptors are not distributed any more, but it'd be good to keep things separate.
          Hide
          Galder Zamarreño
          added a comment -

          Test EJB2 bean that can be called with the following client code:

          Properties p = new Properties();
          p.put("java.naming.factory.initial", "org.jboss.naming.HttpNamingContextFactory");
          p.put("java.naming.provider.url", "http://127.0.0.1:8080/unified-invoker/JNDIFactory");
          p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
          ctx = new InitialContext(p);

          log.info("Initial context created, lookup ejb home");
          TimeTellerHome home = (TimeTellerHome)ctx.lookup("ejb/TimeTellerEjbHttp");
          log.info("Ejb home retrieved, call create on the home");
          TimeTeller teller = home.create();
          String origin = "1";
          log.info("Ejb proxy retrieved, now call the business method");
          log.info("Called what's the time on the ejb proxy and returned: " + teller.whatsTheTime(origin));

          It's a simple bean that returns the current time

          Show
          Galder Zamarreño
          added a comment - Test EJB2 bean that can be called with the following client code: Properties p = new Properties(); p.put("java.naming.factory.initial", "org.jboss.naming.HttpNamingContextFactory"); p.put("java.naming.provider.url", "http://127.0.0.1:8080/unified-invoker/JNDIFactory"); p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); ctx = new InitialContext(p); log.info("Initial context created, lookup ejb home"); TimeTellerHome home = (TimeTellerHome)ctx.lookup("ejb/TimeTellerEjbHttp"); log.info("Ejb home retrieved, call create on the home"); TimeTeller teller = home.create(); String origin = "1"; log.info("Ejb proxy retrieved, now call the business method"); log.info("Called what's the time on the ejb proxy and returned: " + teller.whatsTheTime(origin)); It's a simple bean that returns the current time
          Hide
          Galder Zamarreño
          added a comment -

          ZIP file containing the exploded unified-http-invoker.sar
          directory containing all the files needed as per this wiki:

          http://wiki.jboss.org/wiki/EJBAndJNDIOverHTTPWithUnifiedInvoker

          Show
          Galder Zamarreño
          added a comment - ZIP file containing the exploded unified-http-invoker.sar directory containing all the files needed as per this wiki: http://wiki.jboss.org/wiki/EJBAndJNDIOverHTTPWithUnifiedInvoker
          Hide
          Galder Zamarreño
          added a comment -

          Opened new thread in POJO server design forum as suggested by Scott.
          Original forum entry can be found in:

          http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138484

          Show
          Galder Zamarreño
          added a comment - Opened new thread in POJO server design forum as suggested by Scott. Original forum entry can be found in: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=138484
          Hide
          Dimitris Andreadis
          added a comment -

          Move the fix to 5.1.0. There won't be a 5.0.1 release.

          Show
          Dimitris Andreadis
          added a comment - Move the fix to 5.1.0. There won't be a 5.0.1 release.
          Hide
          Jason Greene
          added a comment -

          Moving to CR1 since there is less than 2 weeks until Beta. Update the fixed version if you happen to resolve them sooner.

          Show
          Jason Greene
          added a comment - Moving to CR1 since there is less than 2 weeks until Beta. Update the fixed version if you happen to resolve them sooner.
          Hide
          Jason Greene
          added a comment -

          Reschedule if completed sooner.

          Show
          Jason Greene
          added a comment - Reschedule if completed sooner.

            People

            • Assignee:
              Galder Zamarreño
              Reporter:
              Galder Zamarreño
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: