On Wed, 2004-02-04 at 09:24, [EMAIL PROTECTED] wrote:
> Hi all,
> 
> I'm trying to develop a JCA connector for Lotus Domino which can be
> used in JBoss. (Which will be public available).
> My first goal is to develop the connector without CCI support. I just
> want JBoss to pool my connections.
> 
> Lotus delivers a (native) library which can be used to connect to
> Domino using Java. 
> 
> To set up a simple connection to Domino you could code something like
> this:
> 
> import lotus.domino.Session;
> import lotus.domino.NotesSession;
>  ....
> Session s = new NotesSession("myhostname", "myusername",
> "mypassword");
> ....
> 
> This Session object is a what I believe is the equivalent of
> Connection instance.
> 
> My question however is. Where in the JCA classes / interfaces should I
> actualy create this Session object. 

ManagedConnectionFactory.createManagedConnection()

> And how can I obtain it then from my beans?
> 

You don't. You wrap it in a connection implementation.
Whatever you choose as the connectionfactory interface is bound into
jndi.

> I'm realy stuck on this. As I cannot find any simple example which
> more or less tries to do the same. 
> 

This is probably too simple, in that it doesn't work.
Or at least it works enough for us to test the error handling
in the jboss connection manager.
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosstest/src/main/org/jboss/test/jca/adapter/

You will find a more complete example in the jboss admin docs
(chapter 7)

Are JBoss's real resource adapters too complicated for you?
One is for jdbc, the other for jms
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/

Regards,
Adrian

> Maybe you guys can help?
> 
> 
> Regards,
> 
> Harm de Laat
> Informatiefabriek
> The Netherlands
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to