[jboss-user] [EJB 3.0] - Re: Ejb3.0 jndi lookup problem

Wolfgang Knauf do-not-reply at jboss.com
Wed Sep 15 06:07:51 EDT 2010


Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] created the discussion

"Re: Ejb3.0 jndi lookup problem"

To view the discussion, visit: http://community.jboss.org/message/561628#561628

--------------------------------------------------------------
Hi Santhosh,

it seems I forgot an important piece of configuration ;-): you need a "j2ee.clientName" property.
Take a look at this:  http://community.jboss.org/docs/DOC-10071 http://community.jboss.org/wiki/J2EEClient

When initializing the properties, you have to add this one:
        Properties props = new Properties();
        ...
        props.setProperty("j2ee.clientName", "MyClientName");

And you have to add a file "jboss-client.xml" to your client app (in "META-INF"):
<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss-client PUBLIC
        "-//JBoss//DTD Application Client 4.2//EN"
        " http://www.jboss.org/j2ee/dtd/jboss-client_4_2.dtd http://www.jboss.org/j2ee/dtd/jboss-client_4_2.dtd">
    <jboss-client>
        <jndi-name>MyClientName</jndi-name>
    </jboss-client>

Hope this helps

Wolfgang
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/561628#561628]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100915/e79b90cb/attachment.html 


More information about the jboss-user mailing list