users@glassfish.java.net

Re: Classic EJB v3 and OSGI Client

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Sat, 09 Apr 2011 11:18:58 +0530

You forgot to provide the exception stack trace. BTW, this sounds like a
bug [1] experienced by some eclipse RCP users as well. Do you have a
reproducible test case? It has to be investigated by EJB team or Felix team.

Thanks,
Sahoo

[1] http://java.net/jira/browse/GLASSFISH-12197

On Thursday 07 April 2011 10:11 AM, forums_at_java.net wrote:
> It's not so easy to send this info because I'm trying to use Open-Source
> BPM (bonitasoft.org) in OSGI environment.
>
> I've added MANIFESTs to client libraries - asm-3.1.jar and
> bonita-client-5.4.1.jar
>
> downloads.processbase.biz/MANIFEST.MF-asm [1]
>
> downloads.processbase.biz/MANIFEST.MF-bonita [2]
>
>
>
> and then call API
>
>
>
> Hashtable props = new Hashtable();
>
> props.put("org.ow2.bonita.api-type", "EJB3");
>
> props.put("java.naming.factory.initial",
> "com.sun.enterprise.naming.SerialInitContextFactory");
>
> props.put("java.naming.factory.url.pkgs",
> "com.sun.enterprise.naming");
>
> props.put("java.naming.factory.state",
> "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
>
> props.put("java.naming.provider.url", "iiop://localhost:3700");
>
> props.put("java.security.auth.login.config",
> "appclientlogin.conf");
>
> props.put("org.omg.CORBA.ORBInitialHost", "localhost");
>
> props.put("org.omg.CORBA.ORBInitialPort", "3700");
>
> ProgrammaticLogin programmaticLogin = new ProgrammaticLogin();
>
> System.out.println(programmaticLogin.login("admin", "test",
> "processBaseRealm", true));
>
> DomainOwner.setDomain("default");
>
> UserOwner.setUser("admin");
>
> APIAccessor accessor = AccessorUtil.getAPIAccessor(props);
>
>
>
>
> [1] http://downloads.processbase.biz/MANIFEST.MF-asm
> [2] http://downloads.processbase.biz/MANIFEST.MF-bonita
>
> --
>
> [Message sent by forum member 'mgubaidullin']
>
> View Post: http://forums.java.net/node/789000
>
>