How To configure QSP for Several different messages

View: New views
2 Messages — Rating Filter:   Alert me  

How To configure QSP for Several different messages

by prafullp2002 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I am new to JPos. I am building an application which interacts with an
ISO8583 based server.

I read how to use QSP to configure a project and I found it very
useful. I created a dummy QSP configuration for testing. Just
providing you the channel tag which I configured there

        <channel name="xmlchannel" class="org.jpos.iso.channel.LoopbackChannel"
                packager="org.jpos.iso.packager.ISO87APackager" type="client"
                connect="no" logger="mylogger" realm="channel">
                <property name="host" value="127.0.0.1" />
                <property name="port" value="8001" />
                <filter class="org.jpos.iso.filter.MacroFilter"
                        direction="outgoing">
                        <property name="sequencer" value="sequencer" />
                        <property name="srcid" value="123456" />
                        <property name="valid" value="0 3 7 11 32 41" />
                        <property name="unset" value="42" />
                </filter><!--
                <filter class="org.jpos.iso.filter.XSLTFilter"
                        direction="incoming">
                        <property name="xsltfile" value="incoming-filter.xsl" />
                        <property name="reread" value="no" />
                </filter>
        --></channel>


Now my question is this configuration seems to be valid for one type
of message. But I may have several messages to be exchanged.

Do I need to add several such channel configuration tag per message
which I want to send? or is there any other elegant way of doing it.

Please suggest. Please let me know if I am not clear with my doubt.


Re: How To configure QSP for Several different messages

by Alejandro Revilla :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I read how to use QSP to configure a project and I found it very
> useful. I created a dummy QSP configuration for testing. Just
> providing you the channel tag which I configured there
>
> <channel name="xmlchannel" class="org.jpos.iso.channel.LoopbackChannel"
> packager="org.jpos.iso.packager.ISO87APackager" type="client"
> connect="no" logger="mylogger" realm="channel">
> <property name="host" value="127.0.0.1" />
> <property name="port" value="8001" />
> <filter class="org.jpos.iso.filter.MacroFilter"
> direction="outgoing">
> <property name="sequencer" value="sequencer" />
> <property name="srcid" value="123456" />
> <property name="valid" value="0 3 7 11 32 41" />
> <property name="unset" value="42" />
> </filter><!--
> <filter class="org.jpos.iso.filter.XSLTFilter"
> direction="incoming">
> <property name="xsltfile" value="incoming-filter.xsl" />
> <property name="reread" value="no" />
> </filter>
> --></channel>
>
>
> Now my question is this configuration seems to be valid for one type
> of message. But I may have several messages to be exchanged.
>
You usually need to implement your own ISORequestListener.
If you are starting with a new application, we strongly recommend you to
use Q2 (QSP version 2) instead of QSP.

You can pick some examples from jPOS-EE's clientsimulator and
serversimulator.

You can get jPOS-EE via subversion. Instructions are provided here:
http://jposee.googlecode.com

LightInTheBox - Buy quality products at wholesale price