> I try to see the code but which place to pass into generic packager.
> I have this question because i don't know call it from jpos.
>
> I read the manual , this example code is :
It is probably worth you getting the latest release of this document?
>
> import org.jpos.iso.ISOPackager;
> import org.jpos.iso.packager.ISO87BPackager;
>
> from my understand that it it used java file .
> Would you give me a code for using xml file ?
The jpos-ee components will allow you to specify the configuration file
directly:-
Section 13.1.9 :-
<mux name="mux" logger="qsp" realm="mux" connect="yes">
<property name="tracenofield" value="11" />
<channel name="channel"
class="org.jpos.iso.channel.CSChannel"
packager="org.jpos.iso.packager.GenericPackager"
packager-config="cfg/newspec.xml"
logger="qsp" realm="channel">
<property name="host" value="192.168.0.1" />
<property name="port" value="8000" />
</channel>
<request-listener
class="org.jpos.apps.qsp.RequestDispatcher"
logger="qsp" realm="dispatcher">
<property name="prefix" value="my.company.jpos.Handler_" />
<property name="timeout" value="60000" />
</request-listener>
</mux>
But to use it from code (Example 3.4 in the current version of the guide:-
Example 3.4.
import org.jpos.iso.ISOPackager;
import org.jpos.iso.packager.GenericPackager;
import org.jpos.iso.packager.ISO87BPackager;
.
.
.
ISOPackager p = new GenericPackager ("newspec.xml");
>
> I am not good in java but try to code it .
Perhaps jpos-ee is a better option for you. It will depend on what you
are trying to implement, but with jpos-ee you can certainly write less code.
--
Mark
> Our implementation is that
> I code a client send to POS channel ( we use OPENWAY solution from Russion)
> :
> + balance inquiry
> ............
> or
> make a gateway that receive iso 8583 and use my oracle function to return
> value through this gateway.
>
> Is it okie to use jpos-ee ?
I would think so, but I can't really offer guidance against the
description given, sorry.
--
Mark
> Would you help me to explain ? It makes me confused
Define your newspec.xml file,
create a ISOPackager via :-
ISOPackager newspecpackager = new GenericPackager ("newspec.xml");
and then use this ISOPackager where needed...
ISOChannel channel = new YourChannel("localhost", 8000, newspecpackager);
or
ISOMsg m = new ISOMsg();
m.setPackager(newspecpackager);
--
Mark
GenericPackager packager = new GenericPackager("src/main/resources/basic.xml");
GenericPackager packager = new GenericPackager(javaObject reference);
can we do any such things? If possible please help me out with an example.
--
--
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 post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/21f75a65-7c93-4b1e-96f9-a5679135ad51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hi Digambar the xml approach is easier, but if you prefer to create the packager pure java, you have to extend ISOBasePackager, hte whloe role of generic packager is to load an xml packager definition file.
You can see chapter 4 of jpos programmer's guide to see some examples better yet a good explanation, a whole read to that doc is recommendable for every jpos developer at least once.
Hope this point you in the right direction.
Andrés
--
Hi Digambar the xml approach is easier, but if you prefer to create the packager pure java, you have to extend ISOBasePackager, hte whloe role of generic packager is to load an xml packager definition file.
You can see chapter 4 of jpos programmer's guide to see some examples better yet a good explanation, a whole read to that doc is recommendable for every jpos developer at least once.
Hope this point you in the right direction.
Transactility, Inc. | skype: alcarraz1976 | @andresalcarraz
--
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-...@googlegroups.com.