aspose file tools*
The moose likes Distributed Java and the fly likes IIOP Glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "IIOP Glassfish" Watch "IIOP Glassfish" New topic
Author

IIOP Glassfish

Alessandro Gentile
Greenhorn

Joined: Jul 27, 2010
Posts: 12

I've got two different instances of GlassFish (3.1.2) on two different jvms on two different nodes in a LAN. From an EJB I'm calling a remote EJB.
I bound, through glassfish admin console, orb-listener-1 to the Network address on both machines. Firewalls disabled

Here's the code:
ic = new InitialContext();
BankService bankservice = (BankService) ic.lookup("java:comp/env/ejb/BankServiceBean");

Here's the descriptor(glassfish-ejb-jar.xml):
<ejb-ref>
<ejb-ref-name>BankServiceBean</ejb-ref-name>
<jndi-name>corbaname:iiop@192.168.0.4:3700#java:global/ServerEAR/ServerEjb/BankServiceBean</jndi-name>
</ejb-ref>
I tried also with <jndi-name>corbaname:iiop@192.168.0.4:3700#ServerEAR/ServerEjb/BankServiceBean</jndi-name>


Here's the error I get:
WARNING: This bean [CallEjbBean] has no ejb reference by the name of [BankServiceBean]
SEVERE: DPL8006: get/add descriptor failure : ejb-ref TO BankServiceBean
WARNING: DPL8007: Unsupported deployment descriptors element jndi-name value corbaname:iiop@192.168.0.4:3700#java:global/ServerEAR/ServerEjb/BankServiceBean
SEVERE: javax.naming.NamingException: Lookup failed for 'java:comp/env/ejb/BankServiceBean' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/BankServiceBean]

Where did I go wrong???

Any suggestion highly appreciated

Regards
Alessandro


OCMJEA/SCEA 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IIOP Glassfish