<html><body>Hi,<div><br></div><div>I guess you would need a JCA resource adapter (RAR) for LDAP/JNDI, like the ones Java EE and JBoss AS have for JDBC, JMS and JavaMail. If you do find (or write) one, please tell the list.</div><div><br></div><div><br></div><div>[]s, Fernando Lozano</div><div><br><blockquote style="border-left: solid 2px #000000; margin-left: 5px; padding-left: 5px">---- Original Message ----<br><b>From</b>: borfnorton22 borfnorton22 &lt;do-not-reply@jboss.com&gt;<br><b>To</b>: "User development" &lt;jboss-user@lists.jboss.org&gt;<br><b>Sent</b>: Ter, Mai 24, 2011, 16:25 PM<br><b>Subject</b>: [jboss-user] [JNDI and Naming] - LDAP connection management<br><br>



<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>

<td>

<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; wmx_background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a onclick="return checkLinkHref(this.href);" target="_blank" href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>

</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    LDAP connection management
</h3>
<span style="margin-bottom: 10px;">
    created by <a onclick="return checkLinkHref(this.href);" target="_blank" href="http://community.jboss.org/people/borfnorton22">borfnorton22 borfnorton22</a> in <i>JNDI and Naming</i> - <a onclick="return checkLinkHref(this.href);" target="_blank" href="http://community.jboss.org/message/606808#606808">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; wmx_background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p>We have an application which makes use of LDAP connections to an external LDAP server for various operation.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</p><p>This application resides in two different datacenters in different parts of the world (A and B) and each (A and B) should be connecting to different LDAP datasources (i.e. A connects to LDAP-A, and B connects to LDAP-B)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</p><p>The application runs on Jboss 6 and the code that needs the LDAP connections is simply in an stateless EJB</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</p><p>We would like the Jboss servers in A and B to have a way to provide the LDAP connections, similar to how we wire in actual @Resource jboss -DS.xml defined DataSources. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&nbsp;</p><p>Is this possible (container managed ldap connections)? Or is there a way for the container to store ldap connection config info (i.e. the hostname, credentials) that the EJB can have injected and create the JNDI connection on its own?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a onclick="return checkLinkHref(this.href);" target="_blank" href="http://community.jboss.org/message/606808#606808">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in JNDI and Naming at <a onclick="return checkLinkHref(this.href);" target="_blank" href="http://community.jboss.org/choose-container!input.jspa?contentType=1&amp;containerType=14&amp;container=2083">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>


</blockquote></div></body></html>