puntodeacceso | 24 Apr 21:14

Cant make my packager log

Hi, i need some help with this; dont know whats wrong with my channel 
configuration:

   <channel name="my.channel"
          class="org.jpos.iso.channel.ASCIIChannel"
          packager="org.jpos.iso.packager.ISO87APackager"
          timeout="10000"
          type="client" connect="no" logger="traffic" realm="myreal"
          packager-logger="traffic" packager-realm="debug">

But the packager doesn´t generate any log output.
Thanks in advance

Juan Pablo

------------------------------------

Alejandro Revilla | 24 Apr 22:56

Re: Cant make my packager log

packager-logger and packager-realm have to be properties instead of
attributes as in:

 <property name="packager-logger" value="traffic" />
 <property name="packager-realm" value="debug" />

You want those inside your channel configuration.

timeout=10000 sounds weird to me there, you'll get lots of disconnects.

On Thu, Apr 24, 2008 at 07:16:13PM -0000, puntodeacceso wrote:
> Hi, i need some help with this; dont know whats wrong with my channel 
> configuration:
> 
>    <channel name="my.channel"
>           class="org.jpos.iso.channel.ASCIIChannel"
>           packager="org.jpos.iso.packager.ISO87APackager"
>           timeout="10000"
>           type="client" connect="no" logger="traffic" realm="myreal"
>           packager-logger="traffic" packager-realm="debug">
> 
> But the packager doesn´t generate any log output.
> Thanks in advance
> 
> Juan Pablo
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
(Continue reading)

puntodeacceso | 25 Apr 14:52

Re: Cant make my packager log

Alejandro, thanks for replying so fast. But after making that change,
im still having the problem.
What else could it be?
About the timeOut, im not getting any disconnect, why do you say so?

--- In jpos-dev@..., Alejandro Revilla <apr@...> wrote:
>
> packager-logger and packager-realm have to be properties instead of
> attributes as in:
> 
>  <property name="packager-logger" value="traffic" />
>  <property name="packager-realm" value="debug" />
> 
> You want those inside your channel configuration.
> 
> timeout=10000 sounds weird to me there, you'll get lots of disconnects.
> 
> 
> On Thu, Apr 24, 2008 at 07:16:13PM -0000, puntodeacceso wrote:
> > Hi, i need some help with this; dont know whats wrong with my channel 
> > configuration:
> > 
> >    <channel name="my.channel"
> >           class="org.jpos.iso.channel.ASCIIChannel"
> >           packager="org.jpos.iso.packager.ISO87APackager"
> >           timeout="10000"
> >           type="client" connect="no" logger="traffic" realm="myreal"
> >           packager-logger="traffic" packager-realm="debug">
> > 
> > But the packager doesn´t generate any log output.
(Continue reading)

Alejandro Revilla | 26 Apr 02:41

Re: Re: Cant make my packager log

>
> Alejandro, thanks for replying so fast. But after making that change,
> im still having the problem.
>
Can you show us the full xml configuration? 

>
> About the timeOut, im not getting any disconnect, why do you say so?
> 
I think that the problem is that the ChannelAdaptor doesn't honor the
timeout attribute in the channel element, you need to use a property for
that, so it's basically ignoring your timeout.

------------------------------------

puntodeacceso | 28 Apr 16:37

Re: Cant make my packager log

Yes, of course. Ive removed the timeout, but still but no luck.
This is the last version after the modifications.

<my-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">^M
   <channel name="my.channel"^M
          class="org.jpos.iso.channel.ASCIIChannel"^M
          packager="org.jpos.iso.packager.ISO87APackager"^M
          type="client" connect="no" logger="traffic" realm="10000">^M 
   <property name="host" value="127.0.0.1" />^M
   <property name="port" value="10000" />^M
   <property name="packager-logger" value="traffic" />
   <property name="packager-realm" value="debug" />
   <filter class="org.jpos.iso.filter.MacroFilter" direction="both">^M
    <!-- property name="unset" value="43 52 102 127" /-->^M
    <property name="valid" value="0 2 3 4 7 11 12 13 22 24 25 35 37 38
39 41 42 45 48 49 60 61 62" /
>^M
   </filter>^M
  </channel>  ^M
 <in>send</in>^M
 <out>receive</out>^M
 <reconnect-delay>30000</reconnect-delay>
</my-adaptor>^M

--- In jpos-dev@..., Alejandro Revilla <apr@...> wrote:
>
> >
> > Alejandro, thanks for replying so fast. But after making that change,
> > im still having the problem.
> >
(Continue reading)

Alejandro Revilla | 28 Apr 18:55

Re: Re: Cant make my packager log

Oh, thing is the packager-logger stuff is only supported by the
GenericPackager, and you're using ISO87APackager.

You can use GenericPackager with the iso87ascii.xml which is basically
the same as ISO87APackager.

You'll have to add:

  <property name="packager-config" value="path/to/your/iso87ascii.xml" />

Make sure to copy genericpackager.dtd to the same directory where you
place iso87ascii.xml

You can get a copy of iso87ascii.xml in modules/jpos/cfg/packager

Make sure you have defined a logger called 'traffic', otherwise, you may
want to use Q2 as the packager-logger name.

On Mon, Apr 28, 2008 at 02:37:22PM -0000, puntodeacceso wrote:
> Yes, of course. Ive removed the timeout, but still but no luck.
> This is the last version after the modifications.
> 
> <my-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">^M
>    <channel name="my.channel"^M
>           class="org.jpos.iso.channel.ASCIIChannel"^M
>           packager="org.jpos.iso.packager.ISO87APackager"^M
>           type="client" connect="no" logger="traffic" realm="10000">^M 
>    <property name="host" value="127.0.0.1" />^M
>    <property name="port" value="10000" />^M
>    <property name="packager-logger" value="traffic" />
(Continue reading)

puntodeacceso | 28 Apr 20:39

Re: Cant make my packager log

It Works!, thanks for your help

--- In jpos-dev@..., Alejandro Revilla <apr@...> wrote:
>
> Oh, thing is the packager-logger stuff is only supported by the
> GenericPackager, and you're using ISO87APackager.
> 
> You can use GenericPackager with the iso87ascii.xml which is basically
> the same as ISO87APackager.
> 
> You'll have to add:
> 
>   <property name="packager-config"
value="path/to/your/iso87ascii.xml" />
> 
> Make sure to copy genericpackager.dtd to the same directory where you
> place iso87ascii.xml
> 
> You can get a copy of iso87ascii.xml in modules/jpos/cfg/packager
> 
> Make sure you have defined a logger called 'traffic', otherwise, you may
> want to use Q2 as the packager-logger name.
> 
> 
> On Mon, Apr 28, 2008 at 02:37:22PM -0000, puntodeacceso wrote:
> > Yes, of course. Ive removed the timeout, but still but no luck.
> > This is the last version after the modifications.
> > 
> > <my-adaptor class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">^M
> >    <channel name="my.channel"^M
(Continue reading)


Gmane