Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to Configure Host in Channel

56 views
Skip to first unread message

Aswin Sundar

unread,
Feb 11, 2025, 4:51:55 AMFeb 11
to jPOS Users
Hi Team,
Good Afternoon

We connect to the host by using a raw channel and providing the IP address and port number in the participant (java class).
How do I connect to the host by using the channel(XML file) without mentioning the IP address and port number of the participant?

Disclaimer: This email may contain confidential, proprietary and/or privileged information belonging to Skilworth Technologies Private Limited. If you are not the intended recipient or authorized to receive it, you are strictly prohibited from using, copying, forwarding, disclosing, or taking any action based on this email or its contents. If you have received this email in error, please notify the sender immediately by replying to this email and delete it from your system. Recipient by anyone other than the intended recipient shall not be deemed a waiver of any privilege or protection. We do not represent or warrant in any way that this communication is free of malicious software or potentially damaging defects. You agree not to misuse any personally identifiable information contained in this email and shall comply with all applicable laws while handling such personally identifiable information. We expressly disclaim all liability for any actual or alleged loss, damage, or injury arising out of or resulting in any way from the receipt. Further, the Company has initiated actions for improving the environment and proactively undertakes business in accordance with industry standard Environment, Social, and Governance practices.

Aswin Sundar

unread,
Feb 11, 2025, 5:14:28 AMFeb 11
to jpos-...@googlegroups.com
Below I mentioned the code,
FYR


HostChannel.java (Participant):

RawChannel channel = new RawChannel();

channel.setHost(cfg.get("host-ip", "127.0.0.1"));
channel.setPort(cfg.getInt("port", 8080));
channel.setTimeout(10000);
channel.connect();



channel.send(b);
byte[] r = receiveData(channel);

ctx.log("Host Response Received =" + ISOUtil.hexString(r));



Best Regards,

Aswin Sundar 

Senior Software Developer

Skilworth Technologies Private Limited

New No 51, 9th Floor, “Chaitanya Exotica”, Venkatnarayana Road, T. Nagar Chennai – 600 017

W  www.bijlipay.co.in

 



--
--
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 visit https://groups.google.com/d/msgid/jpos-users/78d09b18-d3a0-4ad1-bbe9-c8b26968d5d9n%40googlegroups.com.

Andrés Alcarraz

unread,
Feb 11, 2025, 6:30:32 AMFeb 11
to jPOS Users

The question is, how do you want to set the host and port?

You can set it like "${your.prefix.port}", and similar for host.

Then you can pass it in an env variable like YOUR_PREFIX_PORT. Or with a java property -Dyour.prefix.port.



----
Enviado desde mi móvil, disculpas por la brevedad.

Sent from my cellphone, I apologize for the brevity.

Andrés Alcarraz.

Reply all
Reply to author
Forward
0 new messages