[jboss-jira] [JBoss JIRA] Updated: (JBAS-5464) Distribute unified-http-invoker.sar package for accessing JNDI, EJB2s and EJB3s over Unified HTTP invoker

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Fri Apr 18 10:06:44 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBAS-5464?page=all ]

Galder Zamarreno updated JBAS-5464:
-----------------------------------

    Attachment: acme-ejb2-beans.jar

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 :)

> Distribute unified-http-invoker.sar package for accessing JNDI, EJB2s and EJB3s over Unified HTTP invoker
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-5464
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5464
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: EJB2, Naming, Remoting, EJB3
>    Affects Versions: JBossAS-5.0.0.Beta4, JBossAS-4.2.2.GA
>            Reporter: Galder Zamarreno
>         Assigned To: Galder Zamarreno
>         Attachments: acme-ejb2-beans.jar, jboss-http-naming.jar, unified-http-invoker.sar.zip
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list