Elizabeth,
First, my apologies for jumping  in to  the middle of a discussion. But...
How far have you gone into writing this adapter?
I have experimented using BMP and was successful  at creating  a bean but I found that is was unwieldy and was not really reusable (not the kind of code I like to use).
I have also tried using the External JNDI namespace but found that it lacks the robustness that I require.
I have been using a CustomMBean that wraps up the netscape.ldap.util.ConnectionPool  for pooling in my JBoss 2.4.X server but I have found that it does not fit well with JBoss 3.X.
I need this type of adapter and would be interested in helping to create, or creating such an apdapter for the JBoss user community.
Thanks,
Keene

Elizabeth Barham wrote:
Hi David,

Thank you for this information.

David Jencks <[EMAIL PROTECTED]> writes:

  
I don't know much about LDAP or the nature of connections to it.
    

It's similar to a database but it's more specified for reading and not
writing. It also has a tree-like organization but with a flat
namespace.

  
If you can find something that looks somewhat like a jdbc driver (at least
fetches data via an sql dialect) you can wrap it up as a jca adapter and
use cmp directly.

Otherwise you will have to write such a thing, use bmp, or write a major
extension of the cmp engine (I did an example, its possible but not easy).

Consider writing a jca adapter if at least some of these hold:

-connections to the LDAP server take significant time to set up and use
significant resources.
    

Yes.

  
-you need to provide security information on the connection
    

Yes.

  
-you need to do work within transactions.
    

Not really. From what I understand, all LDAP actions are guaranteed to
be atomic.

  
The resource issue is probably the most significant.  If you decide
to write an adapter the jboss jca framework will handle pooling,
transactions, and security for you.
    

  
Although there are several pieces and layers of indirection to make
them a little confusing, adapters are not hard to write, and there
are several open source examples to crib from.  The jboss Local jdbc
adapter is a reasonable place to start
(connector/src/main/org/jboss/resource/adapter/jdbc/local).  (I do
not recommend the xa adapter as an example). There is also the
Firebird jca-jdbc driver (sourceforge) and Sun has a couple "black
box" samples somewhere.
    

  
The jboss jca forum is the best place to discuss jca if you decide to go
that way.
    

I'm looking into writing a connector for it.

Thank you, Elizabeth


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
  

Reply via email to