OK, I was able to get it to work on my side, with some small changes. client:
Mac OS, GlassFish 4.0 trunk build latest server: Oracle Linux, GlassFish
3.1.1 The output when running your test, in client server.log, showing the
result from remote server:
[#|2012-04-07T23:03:56.681-0400|INFO|44.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=16;_ThreadName=Thread-2;|@@@@@@@@@@@@@@@@@@@@@@@@@@|#]
[#|2012-04-07T23:03:57.139-0400|INFO|44.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=16;_ThreadName=Thread-2;|@@@@@@@@@@@@@@@@@@@@@@@@@@Hello,
nome.|#] 2 files were changed in client side app: ejb-jar.xml and
glassfish-ejb-jar.xml: <?xml version="1.0" encoding="UTF-8"?> <ejb-jar
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:ejb="
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd" version="3.1">
<display-name>HelloClientEjb </display-name> <enterprise-beans> <session>
<ejb-name>HelloClientBean</ejb-name>
<transaction-type>Bean</transaction-type> </session> </enterprise-beans>
</ejb-jar> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-ejb-jar
PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 EJB 3.1//EN"
"
http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd"> <glassfish-ejb-jar>
<enterprise-beans> <ejb> <ejb-name>HelloClientBean</ejb-name>
<jndi-name>HelloClientBean</jndi-name> <ejb-ref>
<ejb-ref-name>HelloServiceBean</ejb-ref-name>
<jndi-name>corbaname:iiop:adc6140215.us.oracle.com:3700#HelloServiceBean</jndi-name>
</ejb-ref> </ejb> </enterprise-beans> </glassfish-ejb-jar> The changes to
glassfish-ejb-jar.xml is the same as I mentioned in my previous reply. Once
you apply the above changes, this app should work as well in your
environment. -Cheng
--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/884788