users@glassfish.java.net

RE: JNDI Lookup from domain2 in domain1

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 1 Jun 2011 10:57:16 -0400

the first thing you'll need is to config and deploy your IIOP listener(s) in glassfish:
http://download.oracle.com/docs/cd/E19798-01/821-1751/ablty/index.html

Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> To: users_at_glassfish.java.net
> Subject: JNDI Lookup from domain2 in domain1
> From: forums_at_java.net
> Date: Wed, 1 Jun 2011 06:00:29 -0500
>
> Hi community,
>
> I have an EJB project with a singleton "TransformService" in domain1 of my
> GlassFish Server 3.1 b43. Running with the standard config: IIOP on 3700.
>
> And a webapplication in domain2 of the same server. In this web-application I
> try to lookup for the ejb "TransformService" on domain1 to get its
> RemoteInterface, but without success.
>
> The only thing that I changed in the properties of the InitialContext in the
> webapp is setting:
>
>
>
> props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
>
>
>
> So that the loockup takes place in domain1 and not in domain2 which has IIOP
> on port 6037.
>
> When the lookup happens I get an exception, with the core:
>
>
>
> Root exception is org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side
> stack trace---------- org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0
> completed: No
> com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:421)
> at
> com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:443)
> at
> com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:612)
> at
> com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:612)
> at
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:333)
> at
> com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:196)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990)
> at
> com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539)
> at
> com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
> at
> com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
> ----------END server-side stack trace---------- vmcid: 0x0 minor code: 0
> completed: No
>
>
>
> What am I doing wrong? can anybody help? Do I have to use the secured port
> for IIOP? if yes, please tell me how.
>
> Oh, and putting both apps in domain1 makes the lookup work normally, I get
> the RemoteInterface and can call the mothods of the ejb.
>
> Thanks in advance!
>
> Regards
>
>
> --
>
> [Message sent by forum member 'MohamzJava']
>
> View Post: http://forums.java.net/node/808049
>
>