users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Mon, 15 Oct 2007 04:30:49 PDT

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