JPOS-EE / ClientSimulator and GenericPackager

373 views
Skip to first unread message

JP

unread,
Jun 14, 2005, 7:09:26 AM6/14/05
to jpos-...@googlegroups.com
Hi All,

I'm trying to build a simple client test case based on the
clientsumilator module using VAPChannel and GenericPackager.

A recent post on this list (How to test Visa using jOS-EE May 12) -
suggested "to use base1.xml in the channel - see
10_clientsimulator_channel.xml".

However I'm not sure of the correct syntax to use. Based on the
GenericPackager constructor I feel I should be able to define
10_clientsimulator_channel.xml as

<?xml version="1.0" ?>

<channel-adaptor name='clientsimulator-adaptor'
class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
<channel class="org.jpos.iso.channel.VAPChannel" logger="Q2"
packager="org.jpos.iso.packager.GenericPackager('/base1.xml')">


<property name="host" value="127.0.0.1" />
<property name="port" value="10000" />
</channel>
<in>clientsimulator-send</in>
<out>clientsimulator-receive</out>
<reconnect-delay>10000</reconnect-delay>
</channel-adaptor>

However this results in errors when executed (The unmodified
clientsimulator example build works fine).
Can anyone point me in the right direction?

Many Thanks in advance

JP

Alejandro Revilla

unread,
Jun 14, 2005, 7:24:35 AM6/14/05
to jpos-...@googlegroups.com
> <channel-adaptor name='clientsimulator-adaptor'
> class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
> <channel class="org.jpos.iso.channel.VAPChannel" logger="Q2"
> packager="org.jpos.iso.packager.GenericPackager('/base1.xml')">
>
> <property name="host" value="127.0.0.1" />
> <property name="port" value="10000" />
> </channel>
> <in>clientsimulator-send</in>
> <out>clientsimulator-receive</out>
> <reconnect-delay>10000</reconnect-delay>
> </channel-adaptor>
>
You want to use something like this:

<channel-adaptor name='clientsimulator-adaptor'
class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
<channel class="org.jpos.iso.channel.VAPChannel"
logger="Q2" packager="org.jpos.iso.packager.GenericPackager">

<property name="host" value="127.0.0.1"/>
<property name="port" value="10000" />
<property name="packager-config" value="cfg/base1.xml" />
</channel>
<in>clientsimulator-send</in>
<out>clientsimulator-receive</out>
<reconnect-delay>10000</reconnect-delay>
</channel-adaptor>

The 'packager-config' property is used by GenericPackager in order to
get its configuration.


JP

unread,
Jun 14, 2005, 7:44:06 AM6/14/05
to jpos-...@googlegroups.com
Whoa - thanks for the speedy response - but (there always a but ;-) I
now get

<log realm="org.jpos.q2.iso.ChannelAdaptor" at="Tue Jun 14 11:44:49 BST
2005.789"> <warn>
error starting service
<iso-exception>
org.jpos.core.ConfigurationException: org.jpos.iso.ISOException:
java.net.MalformedURLException: no protocol:
(java.net.MalformedURLException: no protocol: )
(org.jpos.iso.ISOException: java.net.MalformedURLException: no
protocol: (java.net.MalformedURLException: no protocol: ))
<iso-exception>
org.jpos.iso.ISOException: java.net.MalformedURLException: no
protocol: (java.net.MalformedURLException: no protocol
: )
<iso-exception>
java.net.MalformedURLException: no protocol:
<nested-exception>
java.net.MalformedURLException: no protocol:
at java.net.URL.<init>(URL.java:537)
...
...
...


JP

Alejandro Revilla

unread,
Jun 14, 2005, 7:45:23 AM6/14/05
to jpos-...@googlegroups.com
>
> Whoa - thanks for the speedy response - but (there always a but ;-) I
> now get
>
Do you have a build/cfg directory with 'base1.xml' file in there?
What about genericpackager.dtd ?

JP

unread,
Jun 14, 2005, 8:02:17 AM6/14/05
to jpos-...@googlegroups.com
Opps - sorry!

yes I had the base1.xml - but forgot the dtd

I also should have read the error message a bit more closely before
posting!
Just a bit eager I guess.

Thanks for your help - great work

Reply all
Reply to author
Forward
0 new messages