tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomaz <tomaz.majerh...@arnes.si>
Subject Re: tomcat6 lookup for remote EJB on glassfish
Date Thu, 10 May 2012 06:54:48 GMT
Dne 9.5.2012 15:48, piše Pid *:
> On 9 May 2012, at 09:12, tomaz <tomaz.majerhold@arnes.si> wrote:
> 
>> I'm struggling to get remote EJB from lookup, but with no success, is it posible
to this in Apache Tomcat/6.0.18?
>>
>> When I'm using standalone client I get it but inside web application I can't get
it work.
>>
>> My web code:
>> --------------------
>>
>> Properties props = new Properties();
>> props.setProperty("org.omg.CORBA.ORBInitialHost", "jalovec.arnes.si");
>> props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
>> final InitialContext ic = new InitialContext(props);
>>
>> CalculatorApi calcEJBCli = (CalculatorApi) ic.lookup("java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi");
>>
>>
>> My pom dependency for web appl:
>> ---------------------
>> <dependency>
>>           <groupId>org.glassfish.extras</groupId>
>>           <artifactId>glassfish-embedded-web</artifactId>
>>           <version>3.1-b32</version>
>> </dependency>
>>
>>
>> My EJB 3.1 on glassfish 3.1:
>> ----------------------------
>> @Stateless(mappedName="CalculatorEJB", name="Calculator")
>>
>>
>> Glassfish info for my EJB:
>> --------------------------
>> Portable JNDI names for EJB Calculator : [java:global/Calculator-ejb/Calculator!si.arnes.ejb.local.CalculatorLocalApi,
>> java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi]
>>
>> Glassfish-specific (Non-portable) JNDI names for EJB Calculator : [CalculatorEJB#si.arnes.ejb.remote.CalculatorRemoteApi,
CalculatorEJB]
>>
>>
>> Error:
>> ----------
>> Name global is not bound in this Context
>>
>>
>> What I'm doing wrong?
> 
> Trying to deploy an EJB / Glassfish app to Tomcat (which is not an EJB
> container).
> 
> 
> p
> 
>>
>>
>> Regards, Tomaz
>>
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

Yes it is true, but if you put some jar's in tomcat/lib it could work, so what I did is tu
put this jars in a tomcat lib:

javax.ejb.jar
ejb-container.jar
deployment-common.jar
dol.jar
glassfish-corba-csiv2-idl.jar
glassfish-corba-codegen.jar
ssl-impl.jar
security.jar
ejb.security.jar
management-api.jar
gmbal-api-only.jar
gmbal.jar
glassfish-corba-asm.jar
glassfish-corba-newtimer.jar
glassfish-corba-orbgeneric.jar
bean-validator.jar
config-types.jar
kernel.jar
config.jar
config-api.jar
glassfish-corba-omgapi.jar
glassfish-corba-orb.jar
orb-connector.jar
orb-enabler.jar
orb-iiop.jar
glassfish-api.jar
auto-depends.jar
hk2-core.jar
internal-api.jar
common-util.jar
glassfish-corba-internal-api.jar
glassfish-naming.jar


Regards, Tomaz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message