You need to package the EJB client view classes in the client
application. Yes, you can use @EJB. Look at GlassFish EJB samples or FAQ
page, you should find some code there.
Sahoo
On Wednesday 09 June 2010 03:01 PM, glassfish_at_javadesktop.org wrote:
> I want to package 2 ejb-jar's into two ear's. The ear's should be deployed to the same domain or even into different domains on different servers.
>
> Can I still use dependency injection with a @EJB annotation ? What do I have to do, to access the remote EJB ?
>
> Any help is appreciated.
> [Message sent by forum member 'devylon']
>
> http://forums.java.net/jive/thread.jspa?messageID=473500
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>