答复: JCA to Serveral HOST Connection

Charles <[email protected]> Fri, 14 Mar 2003 15:34:23 +0800
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
Thank you very much, Stefan
 
I want add connection pool feature, so I have to implement in
ManagedConnectionFactory, right?
 
 
-----邮件原件-----
发件人: A public list for J2EE Connector architecture interest.
[mailto:[email protected]] 代表 Stefan Krieger
发送时间: 2003年3月14日 14:35
收件人: [email protected]
主题: Re: JCA to Serveral HOST Connection
 
Charles, 
 
he is a list of some adapter providers:
http://java.sun.com/j2ee/connector/products.html
 
I suggest to use existing adapters for two reasons: 
1. It's not so easy to develop a resource adapter as you might think..
2. I work for a resource adapter vendor, specializied on mainframe
adapters (IMS, CICS, MQ. ;-) 
 
Performance is more influenced by the underlying middleware than by the
adapter itself.
 
Regards, 
Stefan
 
----- Original Message ----- 
From: Charles <mailto:[email protected]>  
To: [email protected] 
Sent: Friday, March 14, 2003 3:13 AM
Subject: JCA to Serveral HOST Connection
 
Hi, all:
Please help me to clarify following question:
We development a gateway framework(Let we say GWF), our aim is to
connection to different host or framework through plug in “Connection
Adapter”. In GWF client(That is out application lie in) can have an
uniform call interface. Here is sample code:
               private IGateway gw = null;
               gw = (IGateway)GatewayService.getInstance();
               EPData input = new EPData("testservice");
               input.setAttribute("account_number",account_number);
               input.setAttribute("password",password);
               EPData result = null;
               EPRecord er = null;
               try{
               result = gw.execute("testservice",input);
               //er = result.get(1);
               }catch(GatewayException e){
               e.printStackTrace();
 
1, Do we must implement SPI interface? For example implement connection,
transaction and security contracts by our self? 
  I haven’t experience on write those contract, (we using weblogic6.1)
:-)
2, What is good choice, we development connection adapter or using
existing  connection adapter/ resource Adapter? Where can we find those
adapter, it is free?
3, Our application have to talk with several host: (1)Mainframe(through
Microsoft SNA server), (2),AS/400(TCP/IP),(3)S390(TCP?IP), how to
consider performance?
 
Any comments or input will be appreciate.
Thanks in advance!
 
Charles Guo
MSN Messagrer: [email protected]