users@glassfish.java.net

Re: iiop and ssl

From: <forums_at_java.net>
Date: Wed, 4 Apr 2012 22:18:24 -0500 (CDT)

Hi, Alessandro, (now I have escaped all the xml tags) Looks like your xml
snippets are not displayed correctly. But from what I can gather so far, you
will need to declare a ejb-ref in your caller ejb-jar, with either
ejb-jar.xml, or @EJB annotation. For example, with ejb-jar.xml, since you are
using lookup: <?xml version="1.0" encoding="UTF-8"?> <ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"> <enterprise-beans>
<session> <ejb-name>CallEjbBean</ejb-name> <ejb-ref>
<ejb-ref-name>ejb/BankServiceBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type> <remote>xx.xx.xx.xx.BankService</remote>
</ejb-ref> </session> </enterprise-beans> </ejb-jar> Then in your
glassfish-ejb-jar.xml, map this ejb-ref to its global jndi name: <ejb-ref>
<ejb-ref-name>ejb/BankServiceBean</ejb-ref-name>
<jndi-name>corbaname:iiop_at_192.168.0.4:3700#xx.xx.xx.BankService</jndi-name>
</ejb-ref> The xx.xx... part is the global jndi name of your target EJB, you
can find it in the target host's server.log after deploying it. The
configuration could be simpler when using annotations. If you still see
problems, pls post your test app. -Cheng

--
[Message sent by forum member 'cf126330']
View Post: http://forums.java.net/node/884788