This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
--
--
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.
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/a37f003a-53c6-4837-9e7d-ffa5a2f8c9ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<server class="org.jpos.q2.iso.QServer" name="my_jpos_server" logger="Q2" realm="my_jpos_server">
<attr name="port" type="java.lang.Integer">9999</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<attr name="minSessions" type="java.lang.Integer">0</attr>
<channel name="my_xml_Channel"
class="org.jpos.iso.channel.XMLChannel"
logger="Q2"
realm="my_xml_Channel"
packager="org.jpos.iso.packager.XMLPackager">
</channel>
<request-listener class="com.abc.jpos.server.ISOServerRequestListener">
<property name="timeout" value="10000" />
</request-listener>
</server>
public class ISOServerRequestListener implements ISORequestListener{
public boolean process(ISOSource source, ISOMsg message) {
try {
message.setResponseMTI();
System.out.println("I am here: " + message.toString());
source.send(message);
} catch (ISOException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return false;
}
}
public class StartQ2
{
public static void main( String[] args )
{
Q2 q2Server = new Q2();
q2Server.start();
}
}
java -jar myjposjar.jar
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
The term hot-deployment in Q2 is used in two situations:
The latter has a limited use though and you usually have to know what you are doing. It is not a full fledged system such as OSGi (jPOS is quite OSGi friendly, so you can use an OSGi container and deploy jPOS as a bundle. or the other way around, use the --osgi
switch to Q2 and have Q2 launch the OSGi framework.
The rationale behind adding the ability to deploy some jar in the deploy/lib and use it right away without having to bounce the system was to add the ability to hot-deploy some small fix to production, like an ISO filter until we find a good time to bounce the application.
So the rule of thumb here, if you want to write a filter, or deploy a small monitoring QBean, you can add the jar to deploy/lib. If you want something more sophisticated, with properly managed dependencies and life-cycle, go with OSGi.
Hope this helps.