"nbhatia" wrote : 1) Is this JNDI name 
(helloworldejb3-app-1.0/HelloWorldBean/remote) implementation specific? Is 
there any way to give it a more user friendly JNDI name, such as "HelloWorld"?

@RemoteBinding / @LocalBinding / @RemoteHomeBinding / @LocalHomeBinding are 
JBos-specific annotations to accomplish just that.  Also see jboss.xml 
equivalents.

"nbhatia" wrote : 2) Is there a nicer way to get a reference to the EJB in the 
client? As you can see, I am explicitly creating a context and using it to look 
us the bean. Can @EJB or @Resource annotations be used on the remote client to 
lookup the EJB or the Context?

Take a look at Java EE 5 Application Clients.

S,
ALR

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164144#4164144

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164144
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to