Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > jndi problem in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1279 of 1372
Post > Topic >>

jndi problem into clustered environment

by "carlo" <x.biker@[EMAIL PROTECTED] > Feb 1, 2007 at 10:29 AM

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
 




 1 Posts in Topic:
jndi problem into clustered environment
"carlo" <x.b  2007-02-01 10:29:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:25:19 CDT 2008.