servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <gno...@gmail.com>
Subject Re: how to use Geronimo's JNDI for Servicemix JBIContaier GBean?
Date Fri, 04 Aug 2006 08:38:27 GMT
See also
http://www.nabble.com/ServiceMix-Geronimo-Plugin-tf1885621.html#a5155060

On 8/4/06, Guillaume Nodet <gnodet@gmail.com> wrote:
>
> Unfortunately, the Geronimo app server has currently no global JNDI
> context (hopefully the 1.2 will include one).  And afaik, the current JNDI
> is read-only.
>
> You are trying to use servicemix security stuff in Geronimo, right ? This
> has not been done before AFAIK.  I think there should be a way to create a
> JNDI context in the ServiceMix deployer somehow and give it to the JBI
> components.  This JNDI context would contain the KeystoreManager  and
> AuthenticationService.
>
> Note that the KeystoreManager interface is not exactly the same as the
> Geronimo one, as some needed methods are missing, but all other methods
> could be mapped easily to Geronimo keystore.
>
> I you need any help, feel free to ping the dev list, as your help would be
> greatly appreciated to better integrate ServiceMix in Geronimo.  I was also
> thinking about adding some specific geronimo deployment file (a
> META-INF/jbi- geronimo.xml file ?) which could contain gbeans for specific
> Geronimo deployment.
>
> Btw, would you mind raising a JIRA for the Service Assembly deployment
> implementation and attach your code, please ? That would be great !
>
>
> On 8/4/06, kahon < kahon@sohu.com> wrote:
> >
> >
> > I have successfully deployed servicemix JBI container ,builder ,etc
> > GBean
> > into Geronimo,and many components too. But I found there need to bind
> > some
> > object such as the JAASAuthenticationService,KeystoreManager. I use the
> > below codes to bind and lookup but the initialContext.lookupmethod  can't
> > get any object:
> >
> > ----------------------------------------------------------------------------------------------
> > System.setProperty("java.naming.factory.initial",
> > "com.sun.jndi.rmi.registry.RegistryContextFactory ");
> > System.setProperty("java.naming.factory.url.pkgs","
> > org.apache.geronimo.naming");
> > System.setProperty("java.naming.provider.url","rmi://localhost:1099");
> > GeronimoContextManager.bind (AUTHENTICATION_SERVICE_JNDI_NAME,
> > authenticationService);
> > InitialContext initialContext = new InitialContext();
> > log.info(initialContext .lookup(AUTHENTICATION_SERVICE_JNDI_NAME));
> > ---------------------------------------------------------------------------------------------
> >
> >
> > how can I using the Geronimo's JNDI for Servicemix JBIContainer GBean?
> > Any
> > tips are
> > appreciate.Thanks ahead.
> > --
> > View this message in context:
> > http://www.nabble.com/how-to-use-Geronimo%27s-JNDI-for-Servicemix-JBIContaier-GBean--tf2049886.html#a5646381
> > Sent from the ServiceMix - User forum at Nabble.com.
> >
> >
>
>
> --
> Cheers,
> Guillaume Nodet
>



-- 
Cheers,
Guillaume Nodet

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message