users@glassfish.java.net

Configuring JNDI name for .rar within an .ear?

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jun 2010 08:34:43 PDT

I have a spec-compliant .rar file (connector specification 1.5).

It's in an .ear file.

I have an EJB in a .jar file inside the .ear file as well. It has a @Resource field into which I would like to have the user connection factory injected.

How do I (a) specify what name in JNDI the resource adapter is available under, and (b) refer to it in my annotation?

This feels like something that should be blindingly obvious in either the JCA specification, the Java EE specification or both, but I must be looking right past it.

Thanks,
Laird
[Message sent by forum member 'ljnelson']

http://forums.java.net/jive/thread.jspa?messageID=475164