I am using this:
| Properties env = new Properties();
| env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
| env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| env.put(Context.PROVIDER_URL, "jnp://192.168.1.1:1099");
|
| Context ctx = new InitialContext(env);
|
| return (ManagementService) ctx.lookup("tlon/ManagementServiceBean/remote");
|
where there is two ears on different AS instance (and machines). "tlon" is the
name of second EAR. "ManagementService" interface is deployed in both. Both
application are Seam basead.
I think (but don't tryed) tou could use factory or unwrap annotation to
encapsulate and use in annotation for injection.
Thanks,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117578#4117578
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117578
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user