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.lookup method  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.

Reply via email to