Connection Management in EJB using Itegration Obejcts
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HATS > Connection Management in EJB using Itegration Obejcts




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Connection Management in EJB using Itegration Obejcts  
Anthony Schmude


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-18-06 12:45 PM

Hi there,

we finally managed to process IntegrationObject execution via a self
written bean using the HATS start sequenz described in the user manual:

Ras.initializeRas(this);
LicenseManager.getInstance();
Runtime.initRuntime(getAppName(), this);

..

integrationObject.setHPubStartPoolName(getAppName()+"/main");


But still we have some questions:

1) We have an EJB pool established. Is ist Ok to start the HATS runtime
various times?

2) How should we act on EJB removal. Do we have to stop the HATS runtime?

3) How can we manage the connections used? Are they pooled?

4) We use a stateless session bean. The HATS Bean is stateful. Why?

Thanks for help on that issues.

Cheers

Anthony





[ Post a follow-up to this message ]



    Re: Connection Management in EJB using Itegration Obejcts  
Alisa


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-06 10:45 PM

Anthony,

Regarding you questions:

1) We have an EJB pool established. Is ist Ok to start the HATS runtime
various times?

I am not sure what you mean by an EJB pool. When you say start the HATS
runtime
various times, what do you mean? For example, the "HATS EJB" keeps track of
whether
the runtime has been initialized or not. However, the HATS runtime does have
code to
ensure that it only goes through initialization once.

2) How should we act on EJB removal. Do we have to stop the HATS runtime?

No, you should not stop the HATS runtime. I might suggest running last in
chain IO(s)
if that is a possible scenario to get the connection cleanly returned to the
pool. However,
HATS runtime will attempt clean up after the "maximum busy time" for the
connection
has expired.

3) How can we manage the connections used? Are they pooled?

Please read the "Managing Connections" chapter of the HATS User's and
Administrator's Guide
to understand HATS connections, pooling, and connect and disconnect macros.
In general, I
would recommend using pooling with an associated connect and disconnect
macro to make the
Integration Object macros as short/efficient as possible.

4) We use a stateless session bean. The HATS Bean is stateful. Why?

HATS uses a stateful session bean in anticipation of having to accomplish a
task using Integration
Object chaining; a stateful session bean ensures that the EJB instance hangs
around until the EJB
client is done with the connection.

Thanks,
Alisa













[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register