Tryin to develop a jca connector



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

.



Relevant Pages

  • Re: ADO Connect to SQL
    ... building my where clause in FIGURE 2 so the SPROC concatenates the 5:30 AM ... > Here are some examples of connection strings and code to open recordsets ... >> sample code of how I get a recordset from backend. ... >> I'd like to know if there is a way with ADO to open a recordset on a SQL ...
    (microsoft.public.access.formscoding)
  • Re: Making a Bluetooth BNEP connection from Windows XP SP2
    ... >> Thanks for the sample code!, this was exactly what I was looking for. ... > this PAN programmatically, e.g. you give the BT address to a connect function and no UI is needed. ... > First of all you have to check if the IPv6 driver is bound to the PAN connection. ... As I know you can't bind IPv6 to a dial up connection ...
    (microsoft.public.win32.programmer.networks)
  • Re: Server Conntion State Problem
    ... > and connection with server breaks (it's not lost actually but the ser ... > connection still not braked). ... > not listen and neither replies for some clients but same time work ... would be to provide complete sample code to demonstrate the problem and ...
    (comp.lang.java.programmer)
  • Re: (vb2005) I need your help for using "Rasapi32.dll"
    ... a vb6 sample code that are supposed to do all the things I ... know the UserName of the active connection. ... What kinds of programming skills should I have to get such libraries to ...
    (microsoft.public.dotnet.languages.vb)