Hi,
i need help about a jndi lookup problem in j2ee environment.
In an ear archive there is the client that try to contact a stateless
session bean packet with the local interface only. All is functioning in
a classic architecture: a weblogic 9.2 server. The problem arise when
the ear is deployed in a clustered environment. The lookup throw a
lookup not found exception.
This is an excerpt from the code:
client code:
Context ttx = new InitialContext();
ProducerLocalHome ejbHome = (ProducerLocalHome)
ctx.lookup("ejb/producerLocal");
ejb descriptor:
<enterprise-beans>
<session>
<description><![CDATA[Description for
AmonProducer]]></description>
<ejb-name>AmonProducer</ejb-name>
<home>amon.ml.interfaces.AmonProducerHome</home>
<remote>amon.ml.interfaces.AmonProducer</remote>
<local-home>amon.ml.interfaces.AmonProducerLocalHome</local-home>
<local>amon.ml.interfaces.AmonProducerLocal</local>
<ejb-class>amon.ml.ejb.AmonProducerSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
e il weblogic-ejb-jar.xml:
<weblogic-enterprise-bean>
<ejb-name>AmonProducer</ejb-name>
<stateless-session-descriptor>
</stateless-session-descriptor>
<reference-descriptor>
</reference-descriptor>
<jndi-name>ejb/AmonProducer</jndi-name>
<local-jndi-name>AmonProducerLocal</local-jndi-name>
</weblogic-enterprise-bean>
Thanks in advance,
Carlo
--
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG