Tryin to develop a jca connector
- From: Cacho <xleyba@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 08:20:55 -0000
Hi
I'´ve a package that allow applications connect to an IBM host using
sockets and 3270 telnet protocol.
I want to isolate and standarize such layer using JCA to run it as a
resource adapter in an application server.
I'm new to jca and reading specification is drivin me a little bit
confused. I' ve "googled" for sample code but the few I found are
simple db resource adapters implementations so I wonder if some one
could point me to a non db jca samples... or guides/books about this
matter.
I've found this sample code:
http://java.sun.com/developer/technicalArticles/J2EE/connectorclient/resourceadapter.html
but the article is similar to those I've read but I'm still confused.
I know I need to wrap my EIS connector with my resource adapter but
what I couldn´t see clear is where should I do it.
I supposed that it should be in the lower layer, the connection
implementation, but all the sample codes I saw make and instance of
this class but recommend to put the EIS code in the managedconnection
class.
I've a simple class called CICSSocket that make the connection with
EIS and with two methods read and write to allow those operation the
EIS throw sockets and a open method to open the socket.
If make an instance of CICSSocket in the Connection class constructor,
it will be a wrapper but I'll be returning a Connection instance, not
a CICSSocket instance, so how the AS or the client will call
CICSSockets methods ? How the AS could pass parameters to CICSSocket
to make the connection ?
What happen if I do the above in the ManagedConnection class as I saw
in various samples ? How will it work to wrap my class ?
So, I've a clear map of all but I really don't understand how all
components interact and how to do it and couldn´t found real samples
about it.
Could somebody please send me a simple sample code or explanation to
make me see the light ?
Thanks in advance
C
.
- Prev by Date: Oracle JDeveloper: Good, bad or indifferent
- Next by Date: Re: Using mandatory libraries (custom class loading vs. expanding libraries)
- Previous by thread: Oracle JDeveloper: Good, bad or indifferent
- Next by thread: Add certificate to request
- Index(es):
Relevant Pages
|