Unix Technical Forum

remote instances, and their tcp connections

This is a discussion on remote instances, and their tcp connections within the Informix forums, part of the Database Server Software category; --> One of my systems / business analysts asked me the following question: They run a Java program, which connects ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 08:13 AM
Dirk Moolman
 
Posts: n/a
Default remote instances, and their tcp connections



One of my systems / business analysts asked me the following question:


They run a Java program, which connects to Informix via JDBC. This
session calls a stored procedure, which in turn does a select on another
remote Informix instance.

This select will obviously create a tcp connection to that remote
instance from the local instance. When is this remote tcp connection
terminated ? Does it stay open the entire time the session is active ?

And (2), if this same session does multiple remote queries, will it use
the same (open?) tcp connection repeatedly ?

Hope my question is clear enough ...






Dirk Moolman
Database and Unix Administrator
MXGROUP



"People demand freedom of speech as a compensation for the freedom of
thought which they seldom use."
-Kierkegaard


sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:13 AM
Art S. Kagel
 
Posts: n/a
Default Re: remote instances, and their tcp connections

Dirk Moolman wrote:
> One of my systems / business analysts asked me the following question:
>
>
> They run a Java program, which connects to Informix via JDBC. This
> session calls a stored procedure, which in turn does a select on another
> remote Informix instance.
>
> This select will obviously create a tcp connection to that remote
> instance from the local instance. When is this remote tcp connection
> terminated ? Does it stay open the entire time the session is active ?
>
> And (2), if this same session does multiple remote queries, will it use
> the same (open?) tcp connection repeatedly ?
>
> Hope my question is clear enough ...


The connection is transient and exists only for the single query. If you
will be accessing a remote server frequently in a session, and do not need
to join to local tables, it is far faster to open a second direct connection
to the remote server in you application and run a version of the stored
procedure locally there. That connection will remain open as long as you
don't close it.

Art S. Kagel

> Dirk Moolman
> Database and Unix Administrator
> MXGROUP

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com