> new NCCChannel(server,port,packager,header) but some channels are not
> supported and I'm using BASE24TCPChannel which is also not supported.
> is it same with ISOMessage.setHeader() or what is the difference .
Yeah, it can be a bit confusing; just like this sentence is.
The header on the Channel would be the place to specify one that is
fixed for the life of the channel.
The ISOMsg could be given a header, but especially when the header
varies for each message.
If you have a header that never varies, you can hope your chosen Channel
takes a header in on it's constructor (or modify it to).
The BaseChannel class checks for a specific ISOMsg.header and use it, if
not it will use the Channel.header - if one is present.
BaseChannel.setOverrideHeader(true) could be used to reverse the
precedence ISOMsg.header has over Channel.header.
--
Mark
You should get the programmers guide - honestly.
>
> Before sending a message through a channel is it necessary to add
> packager and pack the message or what is the purpose.
An ISOMsg needs a packager if it is going through a Channel.
The Channel will be calling the ISOMsg.pack() method you see, which in
turn will call it's Packager.pack() method to gather the raw bytes for
the Channel to send over the network.
--
Mark
How?
Share your code and actual output?
Ask a smart question for a change please.
--
Mark
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5c7fcd14-1d2f-4402-bb7f-9be605ac335an%40googlegroups.com.