users@glassfish.java.net

Re: How to force GF to use Java EE SE for web services?

From: Eduardo Pelegri-Llopart <pelegri_at_sun.com>
Date: Mon, 15 Oct 2007 07:25:07 -0700

Would you mind sharing a bit about why you wanted to do this?

THanks,
        - eduard/o

glassfish_at_javadesktop.org wrote:
> Ok,
>
> I've finally solved the problem myself. For those who're studiing the same issue:
>
> 1 -read nice article about Java EE SE (http://weblogs.java.net/blog/binod/archive/2006/07/java_ee_service_1.html)
>
> 2- create sun-ejb-jar.xml file in the consuming web service, content of mine is following:
>
> [i]<sun-ejb-jar>
> <enterprise-beans>
> <ejb>
> <ejb-name>EJB1Service</ejb-name>
> <service-ref>
> <service-ref-name>EJB2Service</service-ref-name>
> <port-info>
> <stub-property>
> <name>jbi-enabled</name>
> <value>true</value>
> </stub-property>
> </port-info>
> </service-ref>
> </ejb>
> </enterprise-beans>
> </sun-ejb-jar>[/i]
>
> 3 - add [i]@WebServiceRef(name="EJB2Service")[/i] annotation to EJB1Service, to be specific to the class that calls EJB2Service.
>
> Now services communicate through Java EE SE (according to Glassfish log).
>
> V.
> [Message sent by forum member 'voloda' (voloda)]
>
> http://forums.java.net/jive/thread.jspa?messageID=240112
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>