If the host is not connected, SAF will silently wait until it gets connected again. Perhaps that's just the problem.
HiI'm having problems in getting the saf up and running. When the line outwards is up everything's fine, but if I change the host (to simulate lien lost/broken) nothing seems to happen. Not even in the logs, so I'm having a hard time figuring out what's been done wrong. I assume I've forgotten/overlooked something, so suggestions are highly appreciated:)Below is my code, pretty basic:protected void storeAndForwardMessage(ISOMsg msg) throws NotFoundException, ISOException{MUX saf = QMUX.getMUX("unox-saf");saf.request(msg, config.getSafMuxTimeoutInMs());
}And the xml:<channel-adaptor name='unox_saf_channel'class="org.jpos.q2.iso.OneShotChannelAdaptor" logger="Gateway"><channel class="org.jpos.iso.channel.ASCIIChannel" logger="Gateway"packager="org.jpos.iso.packager.GenericPackager"><property name="packager-config" value="config/IFSF_ISO_Definition.xml" /><property name="host" value="172.23.1.10" /><property name="port" value="4043" /><property name="alternate-host" value="172.23.3.10" /><property name="alternate-port" value="4043" /><property name="timeout" value="600000" /><property name="keep-alive" value="false" /></channel><in>unox-saf-send</in><out>unox-saf-receive</out><reconnect-delay>10000</reconnect-delay></channel-adaptor><mux class="org.jpos.q2.iso.QMUX" logger="Q2" name="unox-saf"><in>unox-saf-receive</in><out>unox-saf-send</out></mux><saf name='saf' logger='saf' realm='saf' class='org.jpos.saf.SAF'><property name='space' value='jdbm:saf' /><property name='mux' value='unox-saf' /><property name='flag-retransmissions' value='no'>1220, 1420</property><property name='initial-delay' value='10000' /><property name='inter-message-delay' value='1000' /><property name='wait-for-response' value='5000' /><property name='max-retransmissions' value='1000' /><property name='expire-after' value='86400'>in seconds</property><property name='valid-response-codes' value='*' /><property name='retry-response-codes' value='907,909,911,912' /></saf>--
--
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
protected void storeAndForwardMessage(ISOMsg msg) throws NotFoundException, ISOException{MUX saf = QMUX.getMUX("unox-saf");saf.request(msg, config.getSafMuxTimeoutInMs());}
<saf name='saf' logger='saf' realm='saf' class='org.jpos.saf.SAF'>
<property name='space' value='jdbm:saf' /><property name='mux' value='unox-saf' /><property name='flag-retransmissions' value='no'>1220, 1420</property><property name='initial-delay' value='10000' /><property name='inter-message-delay' value='1000' /><property name='wait-for-response' value='5000' /><property name='max-retransmissions' value='1000' /><property name='expire-after' value='86400'>in seconds</property><property name='valid-response-codes' value='*' /><property name='retry-response-codes' value='907,909,911,912' /></saf>
It seems GIT is not in your path
Hi
Have you read the jposee guide? It seems to me that you are not following "best practices" shown in the guide. Particularly, you should not have to fiddle with jpos.jar or saf.jar.