Facing issue with implementing jpos-gateway locally

220 views
Skip to first unread message

ruchira...@capitalone.com

unread,
Oct 18, 2018, 1:46:52 PM10/18/18
to jPOS Users
I am trying to set jpos gateway locally using xml server.I am using this guide as reference:


Instead of using  jPOS' auto-responder  I am trying to use my localhost for  the same purpose but I am getting mux not connected error in my q2.log whenever I try to telnet to xml server and send a sample 0800 message.

Please help

here are my configuration files.

1)50_xml_server.xml

<server class="org.jpos.q2.iso.QServer" logger="Q2" name="xml-server-8000" realm="xml-server-8000">
        <attr name="port" type="java.lang.Integer">8000</attr>
        <channel class="org.jpos.iso.channel.XMLChannel" packager="org.jpos.iso.packager.XMLPackager" type="server" logger="Q2" realm="xml-server-8000">
                <property name="timeout" value="180000"/>
        </channel>
        <request-listener class="org.jpos.iso.IncomingListener" logger="Q2" realm="incoming-request-listener">
                <property name="queue" value="TXNMGR"/>
                <property name="ctx.DESTINATION" value="visaMux"/>
        </request-listener>
</server>


2)10-channel_jpos.xml

<channel-adaptor name="jpos-channel" class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2">
        <channel class="org.jpos.iso.channel.XMLChannel" packager="org.jpos.iso.packager.XMLPackager" realm="jpos-channel-channel">
                <property name="host" value="127.0.0.1"/>
                <property name="port" value="10000"/>
        </channel>
        <in>pos-send</in>
        <out>pos-receive</out>
        <reconnect-delay>5000</reconnect-delay>
</channel-adaptor>


3)20_mux_jpos.xml


___________________ | ~/jpos/jpos-2.1.1-SNAPSHOT/deploy @ 186590cb8453 (ose373)
<mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="visaMux">
    <in>pos-receive</in>
    <out>pos-send</out>
    <ready>jpos-channel.ready</ready>
   <unhandled>incomm-unhandled</unhandled> `
</mux>
~


Thanks,
Ruchira


The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

Alejandro Revilla

unread,
Oct 18, 2018, 1:51:24 PM10/18/18
to jPOS Users
Do you have a server listening to port 10000 on your  localhost?


Ruchira Biyani

unread,
Oct 18, 2018, 1:54:31 PM10/18/18
to jpos-...@googlegroups.com
Does I need to make a new xml server configuration file?


On Thu, Oct 18, 2018 at 1:51 PM Alejandro Revilla <a...@jpos.org> wrote:
Do you have a server listening to port 10000 on your  localhost?


--
--
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/CAAgSK%3Dkmj3aSGCQp45SEj76hpwWxWtCQvpP3fcpLj%3DtLa917UQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

ruchira...@capitalone.com

unread,
Oct 18, 2018, 2:10:51 PM10/18/18
to jPOS Users
Also if you look at my configuration files I am using a channel adaptor listening on port 10000 of a localhost.How do  connect it to a server on port 10000


On Thursday, October 18, 2018 at 1:54:31 PM UTC-4, Ruchira Biyani wrote:
Does I need to make a new xml server configuration file?


On Thu, Oct 18, 2018 at 1:51 PM Alejandro Revilla <a...@jpos.org> wrote:
Do you have a server listening to port 10000 on your  localhost?


--
--
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+unsubscribe@googlegroups.com.

Alejandro Revilla

unread,
Oct 18, 2018, 2:37:38 PM10/18/18
to jPOS Users
The channel adaptor doesn't LISTEN TO port 10000, it connects to localhost on port 10000, it's a client, not a server.

Take a look at http://jpos.org/doc/jPOS-EE.pdf - you need to deploy a server simulator.



ruchira...@capitalone.com

unread,
Oct 18, 2018, 2:54:43 PM10/18/18
to jPOS Users
Do I just need to add 05_serversimulator.xml) and "cfg/serversimulator.bsh"


On Thursday, October 18, 2018 at 2:37:38 PM UTC-4, Alejandro Revilla wrote:
The channel adaptor doesn't LISTEN TO port 10000, it connects to localhost on port 10000, it's a client, not a server.

Take a look at http://jpos.org/doc/jPOS-EE.pdf - you need to deploy a server simulator.



On Thu, Oct 18, 2018 at 3:10 PM, ruchira.biyani via jPOS Users <jpos-...@googlegroups.com> wrote:
Also if you look at my configuration files I am using a channel adaptor listening on port 10000 of a localhost.How do  connect it to a server on port 10000


On Thursday, October 18, 2018 at 1:54:31 PM UTC-4, Ruchira Biyani wrote:
Does I need to make a new xml server configuration file?


On Thu, Oct 18, 2018 at 1:51 PM Alejandro Revilla <a...@jpos.org> wrote:
Do you have a server listening to port 10000 on your  localhost?


--
--
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.


The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.



The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.

--
--
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.

Alejandro Revilla

unread,
Oct 18, 2018, 2:57:39 PM10/18/18
to jPOS Users
Correct.



To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

Ruchira Biyani

unread,
Oct 18, 2018, 3:03:52 PM10/18/18
to jpos-...@googlegroups.com
IT worked Yay...

Correct.



--
--
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 a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/U9jkvL_kKvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sandile

unread,
Oct 24, 2018, 9:55:49 AM10/24/18
to jPOS Users
Hi
Can some please assist me with how to get CVK A/B on a specific card.
Reply all
Reply to author
Forward
0 new messages