Re: I want to include a base24tcp channel

91 views
Skip to first unread message
Message has been deleted

murtuza chhil

unread,
May 17, 2022, 1:06:17 AM5/17/22
to jPOS Users

Which jmeter plugin are you using for ISO Messages?
We use https://github.com/tilln/jmeter-iso8583 , this one uses jpos in the plugin so the channel and packagers used in the plugin are identical to the ones you use in stanalone jpos.

Go through the tuorials at https://jpos.org/doc/tutorials/

This one tells you how to configure a server and client with channels and packagers and has a running projects.

http://jpos.org/doc/tutorials/jpos-gateway.pdf

You can plugin your channels and packager references like

<channel class="org.jpos.iso.channel.BASE24TCPChannel" logger="Q2" realm="channel-1"
       packager="org.jpos.iso.packager.GenericPackager">       
  <property name="packager-config" value="cfg/test-packager.xml" />

You will need to place the packager in the appropriate path.

https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/iso/channel/BASE24TCPChannel.java

The channel adds a 2-byte length header and adds a trailer byte.

-chhil

On Monday, May 16, 2022 at 9:20:11 PM UTC+5:30 omar.h...@leanovia.com wrote:
Hello , I'm making a java configuration that allows me to send an iso message to a neapay server . I succeeded to send the message to the server but there's a problem with it , there are several numbers at the beginning of the message that makes the whole message structure wrong . 
I used the iso plugin in jmeter ( using the test packager xml and the base24tcpchannel ) and it worked fine , now I'm trying to send the same message , using the same packager and channel to compare and see if I can get the same result .
I managed to implement the same packager , now I want to know how to use the base24tcpchannel as well . 






Here's part of the code I'm using to send a message : 


public static void IsoMessage() throws Exception {

InputStream is = new FileInputStream("/Users/mohammedmohsinabbas/Downloads/test-packager.xml")
GenericPackager packager = new GenericPackager(is);
Socket clientSocket = new Socket("192.168.100.5", 9009);

ISOMsg isoMsg = new ISOMsg("0800");
isoMsg.setPackager(packager);
//isoMsg.setPackager(packager);
isoMsg.set(3, "000010"); //3: n6 : Processing Code
isoMsg.set(4, "12999"); // 4: n12: Amount Transaction
isoMsg.set(7, "1206041200"); // 7: n10: Transmission Date & Time

isoMsg.set(11, "768956"); // 11: n6 : System Trace audit number
isoMsg.set(41, "12340301"); // 41: Card acceptor terminal identification
isoMsg.set(49, "950"); // 49: Currency Code, transaction




Reply all
Reply to author
Forward
0 new messages