How to send Echo message in JPOS BaseTCPChannel to keep network active

516 views
Skip to first unread message

Ramanath Pai

unread,
Sep 27, 2009, 6:11:50 AM9/27/09
to jpos-...@googlegroups.com
Hi Guys,

I am working with JPOS BaseTCPChannel to send and receive ISO message with ATM Switch.
As i have firewall in between ..some how connection is getting idle in between firewalls when is there is no exchange of ISO messages.

So i want to incorporate the ISO  Echo requests in between say for every 5-10 minutes.
Please suggest the way to implement this in the existing structure.

NOTE: I am using ISOChannel with ISOMux. in my infrastructure.

-Ramanath Pai

Alejandro Revilla

unread,
Sep 27, 2009, 12:11:44 PM9/27/09
to jpos-...@googlegroups.com
If you are using Q2 you can just deploy a Q2 Service (we call them 'QBeans') that can locate your channel or mux (using the NameRegistrar) and regularly send 0800 messages. If you are using the ChannelAdaptor, you don't even need to locate the MUX using the NameRegistrar, you can just send the ISOMsg over the Space-based ChannelAdaptor's '<in>' queue.

Ramanath Pai

unread,
Sep 27, 2009, 1:43:40 PM9/27/09
to jpos-...@googlegroups.com
I am using Base24TCPChannel.. so i think it belongs to ChannelAdapter..
Please correct me if i am wrong...

I guess MUX will take care of queuing all the requests internally.
Then what is this Space - based Channel Adaptor's '<in>' queue.

I am quite new to this kind of implementation.

-Ramanath Pai


Alejandro Revilla

unread,
Sep 27, 2009, 6:33:25 PM9/27/09
to jpos-...@googlegroups.com
Are you using Q2 or manually creating and configuring your stuff (such as Base24TCPChannel) ?


Ramanath Pai

unread,
Sep 27, 2009, 11:44:40 PM9/27/09
to jpos-...@googlegroups.com

Manually creating and configuring ...
Ex: ISOChannel of the type Base24TCPChannel
and then applying it to simple ISOMux

Alejandro Revilla

unread,
Sep 28, 2009, 8:19:14 AM9/28/09
to jpos-...@googlegroups.com
Ok, then you can spawn a simple Thread and send 0800s over that channel or mux every couple of minutes.

Ramanath Pai

unread,
Oct 6, 2009, 12:08:33 PM10/6/09
to jpos-...@googlegroups.com
Can you tell me how to configure the thread on Mux so that it will send the 0800 message for every 5 to 10 mins

-Ramanath Pai


Heru Nurasid

unread,
Oct 7, 2009, 12:51:08 AM10/7/09
to jpos-...@googlegroups.com
Are you a new developer java ?. Could you imagine to make delay every 5 to 10 mins with java programing ?. If ok, the problem was solved.
 
++ Heru ++

--- On Tue, 10/6/09, Ramanath Pai <pai.ra...@gmail.com> wrote:

chhil

unread,
Oct 7, 2009, 3:16:45 AM10/7/09
to jpos-...@googlegroups.com
Try Andys website --->http://bit.ly/lIyYF

-chhil

Alejandro Revilla

unread,
Oct 7, 2009, 12:19:13 PM10/7/09
to jpos-...@googlegroups.com
You don't configure the thread on Mux, you create a new Thread that in turns grabs a reference to the Mux using the NameRegistrar and do the needful.

Reply all
Reply to author
Forward
0 new messages