[jpos-users] custom channel

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] custom channel

Phamthai Thinh
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

chhil
Jpos provides multiple channels that have a length prepended ended to it. The format of the length varies. You will probably find one that supports what you need. You need to be more specific about how length is appended. You can look at AsciiChannel and NACChannel code in github and see what they do. 

-chhil. 

On Jun 8, 2017 2:01 PM, "phamthai thinh" <[hidden email]> wrote:
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefCXLkAs9%2BA5GCLKW3aYBrWUXAp_WRLHQdpBGDJcXEOeXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Phamthai Thinh
Thank chihil,
For channel with length indicate bytes it is ok but we face with server side it just send iso message data only. I try doing custom channel with -1 in length and receive streamReceive but it hang and get connection reset.

public class NOLengthChannel extends BaseChannel {
@Override
protected byte[] streamReceive() throws IOException {
byte[] bytes = IOUtils.toByteArray(serverIn);
return bytes;
}
}

Vào 17:10:09 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, chhil đã viết:
Jpos provides multiple channels that have a length prepended ended to it. The format of the length varies. You will probably find one that supports what you need. You need to be more specific about how length is appended. You can look at AsciiChannel and NACChannel code in github and see what they do. 

-chhil. 

On Jun 8, 2017 2:01 PM, "phamthai thinh" <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="gp8Uhjo3BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">phamth...@...> wrote:
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gp8Uhjo3BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gp8Uhjo3BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="gp8Uhjo3BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/be46f7d7-a8d5-4bb0-9116-17ee6012d053%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Phamthai Thinh
I tried org.jpos.iso.channel.LogChannel but get connection reset after hang


Vào 17:33:28 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, phamthai thinh đã viết:
Thank chihil,
For channel with length indicate bytes it is ok but we face with server side it just send iso message data only. I try doing custom channel with -1 in length and receive streamReceive but it hang and get connection reset.

public class NOLengthChannel extends BaseChannel {
@Override
protected byte[] streamReceive() throws IOException {
byte[] bytes = IOUtils.toByteArray(serverIn);
return bytes;
}
}

Vào 17:10:09 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, chhil đã viết:
Jpos provides multiple channels that have a length prepended ended to it. The format of the length varies. You will probably find one that supports what you need. You need to be more specific about how length is appended. You can look at AsciiChannel and NACChannel code in github and see what they do. 

-chhil. 

On Jun 8, 2017 2:01 PM, "phamthai thinh" <[hidden email]> wrote:
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: [hidden email]
---
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 [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Alejandro Revilla
PADChannel is probably your friend or at least a good starting point. 


On Thu, Jun 8, 2017 at 07:55 phamthai thinh <[hidden email]> wrote:
I tried org.jpos.iso.channel.LogChannel but get connection reset after hang


Vào 17:33:28 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, phamthai thinh đã viết:
Thank chihil,
For channel with length indicate bytes it is ok but we face with server side it just send iso message data only. I try doing custom channel with -1 in length and receive streamReceive but it hang and get connection reset.

public class NOLengthChannel extends BaseChannel {
@Override
protected byte[] streamReceive() throws IOException {
byte[] bytes = IOUtils.toByteArray(serverIn);
return bytes;
}
}

Vào 17:10:09 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, chhil đã viết:
Jpos provides multiple channels that have a length prepended ended to it. The format of the length varies. You will probably find one that supports what you need. You need to be more specific about how length is appended. You can look at AsciiChannel and NACChannel code in github and see what they do. 

-chhil. 

On Jun 8, 2017 2:01 PM, "phamthai thinh" <[hidden email]> wrote:
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3D%3D0%2BwG%3DxmCy_phhrZ0BTxrL8K-0xu62J_w3rNdiFSpUeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Phamthai Thinh
Thank Alejandro. One more question bitmap in HEX format what type of field we be use to unpack bitmap.
Thanks

Vào 18:20:05 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, Alejandro Revilla đã viết:
PADChannel is probably your friend or at least a good starting point. 


On Thu, Jun 8, 2017 at 07:55 phamthai thinh <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="T28hlgs7BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">phamth...@...> wrote:
I tried org.jpos.iso.channel.LogChannel but get connection reset after hang


Vào 17:33:28 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, phamthai thinh đã viết:
Thank chihil,
For channel with length indicate bytes it is ok but we face with server side it just send iso message data only. I try doing custom channel with -1 in length and receive streamReceive but it hang and get connection reset.

public class NOLengthChannel extends BaseChannel {
@Override
protected byte[] streamReceive() throws IOException {
byte[] bytes = IOUtils.toByteArray(serverIn);
return bytes;
}
}

Vào 17:10:09 UTC+7 Thứ Năm, ngày 08 tháng 6 năm 2017, chhil đã viết:
Jpos provides multiple channels that have a length prepended ended to it. The format of the length varies. You will probably find one that supports what you need. You need to be more specific about how length is appended. You can look at AsciiChannel and NACChannel code in github and see what they do. 

-chhil. 

On Jun 8, 2017 2:01 PM, "phamthai thinh" <[hidden email]> wrote:
Hi all,
I have a spec about channel without bytes indicate length of message. How i can configure or customise chaneel to make jPOS work with this server.
Thanks

--
--
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: [hidden email]
---
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 [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/7313067b-5441-4b86-932e-b9a82f0f77ec%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T28hlgs7BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T28hlgs7BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="T28hlgs7BgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/e5d55fc5-5059-479a-b578-4d7b443259f4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
--
--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a47f1407-2804-47da-b9f7-952eec23bb3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Alejandro Revilla
In my experience, this question is sometimes flawed. When you mean "bitmap in hex format", do you refer to the bitmap coming in 32 ASCII characters representing the hex value (provided you have a primary and secondary bitmap) or in 16 bytes?

If it's the latter, then you just get to "see" the bitmap in hex, but it's actually binary. You can use IFB_BITMAP.

If it's the former, you wan to go with IFA_BITMAP.



--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DnHxROKkxn%2Bc43CW-7TJ54kjFV2_cYXCD39pC2SsAonjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] custom channel

Phamthai Thinh
Thank @apr. I understand

Vào 01:09:29 UTC+7 Thứ Sáu, ngày 09 tháng 6 năm 2017, Alejandro Revilla đã viết:
In my experience, this question is sometimes flawed. When you mean "bitmap in hex format", do you refer to the bitmap coming in 32 ASCII characters representing the hex value (provided you have a primary and secondary bitmap) or in 16 bytes?

If it's the latter, then you just get to "see" the bitmap in hex, but it's actually binary. You can use IFB_BITMAP.

If it's the former, you wan to go with IFA_BITMAP.

--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f808b697-0386-4366-b2c7-85843e89a188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...