users@glassfish.java.net

Re: How do I access EJB from GlassFish webstart client

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Feb 2009 22:29:34 PST

It's been a while since I used EJB injection and I can't promise this is the [i]proper[/i] way of doing things, but I used to deploy a [b]sun-application-client.xml[/b] file alongside the [b]application-client.xml[/b] file. It would look something like this:

[code]
<sun-application-client>
        <ejb-ref>
                <ejb-ref-name>ejb/OrderSessionI</ejb-ref-name>
                <jndi-name>com.lbsh.superOrder.session.OrderSessionI</jndi-name>
        </ejb-ref>
</sun-application-client>
[/code]

Also, back when I was using injection, you could only inject resources into the application client main class. That is, whichever class your manifest file specifies for the [b]Main-Class[/b] attibute.
[Message sent by forum member 'ryan6608' (ryan6608)]

http://forums.java.net/jive/thread.jspa?messageID=333688