How TPDU Setting in mychannel.xml

282 views
Skip to first unread message

kesemek genit

unread,
Jun 2, 2013, 1:34:12 AM6/2/13
to jpos-...@googlegroups.com
Hi,

Newbie want ask how about setting tpdu in myserver.xml


I have sample.class   :
--------------------------------------------------------------
try {
byte abyte0[] = new byte[5];
HEXChannel hexchannel = new HEXChannel(new ISO87XPackager(), abyte0);
ThreadPool threadpool = new ThreadPool(i, j);
threadpool.setLogger(logger, "iso-server-pool");
ISOServer isoserver = new ISOServer(k, (ServerChannel) hexchannel, threadpool);
isoserver.setLogger(logger, "iso-server");
isoserver.addISORequestListener(new ISOServerListener());
(new Thread(isoserver)).start();
.....
......


and i want convert to  xml configuration :
---------------------------------------------------------------
.........
.........  
<channel name="mychannel" 
    class="org.jpos.iso.channel.HEXChannel" 
    packager="prog.test.packager.ISO87XPackager"
    logger="Q2" />
.....
.....

I already search but did not find any solution. 
How to add byte[5] to mychnannel xml?  need help.


Best regards

Mark Salter

unread,
Jun 2, 2013, 4:31:43 AM6/2/13
to jpos-...@googlegroups.com
On 02/06/2013 06:34, kesemek genit wrote:
> I already search but did not find any solution.
> How to add byte[5] to mychnannel xml? need help.
>
https://www.google.co.uk/search?q=jpos-ee+channel+header

1st link (for me) :-

http://groups.google.com/group/jpos-users/browse_thread/thread/a903962d0f95dccf?fwc=1



--
Mark

Kesemeki Genita

unread,
Jun 2, 2013, 5:57:24 AM6/2/13
to jpos-...@googlegroups.com
Hi Mark,

Many thank for the links, there is some problem same with me too :)
(I did not success find with my keyword in google  huh..)  

and I found nacchnel example in my jpos-guide.pdf  1.6.1  page.138 

I will try and will report the result.

Cheers

Alejandro Revilla

unread,
Jun 2, 2013, 9:03:24 AM6/2/13
to jpos-...@googlegroups.com

Your aByte in this case used as a second parameter to the constructor is your TPDU.


--
@apr



--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
 
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kesemeki Genita

unread,
Jun 3, 2013, 4:19:27 AM6/3/13
to jpos-...@googlegroups.com
@Alejandro : Thank you for the info.

@Mark : your links and the example is working well.

Cheers
Reply all
Reply to author
Forward
0 new messages