I'm busy with the network management messages (001/030/161/162 - logon/echo/keys). On the one side I would be pushing a key to a client that is connected to a IsoServer whilst on the other side I will be receiving a key on a channel-adapter published by a server to which I connected using a channel-adapter/mux.Targeting the server side for which I need to create a key first:- I should be able to create & receive echo's (every 5min)- I will receive logon requests (on reconnect)- I will receive key-exchange requests / 161- I must send a new key at 24hour intervals.
Targetting the client side for which I will receive a key:- I need to submit a logon on a specific channel once that channel reconnects- I need to request a key every 24hours- I will receive a new key at random intervals- Echos need to be responded to.
For the server side where I have a client connecting to me, what will be the best approach?
I have read that a logon manager seems to be the way to go when connecting to a 3rd party (example below). What I do not understand is how the components are glued together, The logon manager xml contains elements corresponding to the Mux, however it does not show when/how these elements are used. When will the LogonManager xml be called? When a channel is reconnected at the Mux, how will the Mux know it needs to call doEcho() or doSignon() or pass the trigger to the LogonManager xml ?
--
--
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 "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
The problem here is now how does one detect that all the channels dropped and reconnected whilst you were sleeping and you need to do a logon? The isConnected() call to the mux would return true as everything is now connected (again).
Thank you very much for the example. It turned out perfect (and I learned that Mastercard is now more ASCII friendly (I'm used to Mastercard being all EBCDIC)).
Just a side question, Mastercard has the option where you request a key(162 I think - 0800 request to Mastercard) and eventually they then provide you with a key (161 - a new 0800 request from Mastercard). I tested out a scenario and it looks like should I add a request-listener to the mux, it will be triggered when a fresh request from Mastercard arrives and not when a reply comes back or when a request to mastercard is submitted. Am I correct in saying this?
If so, it would mean that I merely need to add more"fat" to the logon-manager code to cater for requests from Mastercard relating to network management.
Thanks for the assistance & patience, I appreciate it.
public class LogonManager extends QBeanSupport implements Observer {
BaseChannel channel1;
@Override
protected void startService() {
try {
channel1 = (BaseChannel)NameRegistrar.get("channel.channel1");
channel1.addObserver(this);
//Add this observer to other channels as well (including server channel)
} catch (NotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
@Override
public void update(Observable o, Object arg) {
// TODO Auto-generated method stub
doSomething(); //Based on Observable and arg
}
}
1.Wont the expression sessionId.equals (sp.rdp (LOGON+readyKey)) be always false considering sessionId = sp.rd (readyKey, 60000) ? Or I am missing something here?
2.
--
--
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/848f2593-82f4-477d-924a-f5001e788dd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.