[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

ALRubinger do-not-reply at jboss.com
Mon Jul 14 02:28:27 EDT 2008


"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



More information about the jboss-user mailing list