--
--
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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <vadj...@gmail.com> wrote:
Hi,
I have created one sample jposserver application which will listen on port. I like to start this application using bin/q2 -cli command line utility.
Can you please help me about this? how can I start it and monitor the process using bin/q2 command line?
Thanks,
Amit
--
--
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.
I have created one sample jposserver application which will listen on port
<?xml version="1.0" ?>
<server name="my-server" class="org.jpos.q2.iso.QServer" logger="Q2">
<attr name="port" type="java.lang.Integer"> listening port number</attr>
<channel name="my.channel"
class="org.jpos.iso.channel.NACChannel"
packager="org.jpos.iso.packager.GenericPackager" logger="Q2">
<property name="packager-config" value="cfg/my_packager_file.xml" />
<property name="timeout" value="1000000" />
<request-listener class="my.request.listener.implementation.class" logger="Q2" realm="incoming-request-listener">
</request-listener>
</server>
public boolean process (ISOSource source, ISOMsg m)
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/8eb6fc08-27fa-459c-b63e-b711c925e465%40googlegroups.com.
I am not aware if there is an explicit way.
Everything under your deploy folder is run under one JVM, q2 instantiates all your components.
The channel has counters for requests responses.
If you deploy the system monitor beam you will get the counters displayed or you can may be do it via cli.
You can get components from the nameregistrar and use the getter methods to get counts too.
-chhil
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/5fc77ebf-d639-44af-8d85-bbf7aa0eedba%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefC4eAo-Vabnc_yoE1QDS41zVpZzidrCTakBv-t%3D69hCzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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/5fc77ebf-d639-44af-8d85-bbf7aa0eedba%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: 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 view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefC4eAo-Vabnc_yoE1QDS41zVpZzidrCTakBv-t%3D69hCzw%40mail.gmail.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: sa...@jpos.org
---
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/sAT8S3_QjYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3Dkz0GWx20bApNSOq7QE0yzfO03uC43JQEUq1jR2vkzMiw%40mail.gmail.com.
There are many ways to start and stop services from the command line. The easiest way is to start Q2 as a service (by calling bin/start
) and then rename the service descriptors in the deploy directory from .xml to .off to turn them off, or from .off to .xml to turn them back on. (.off is an arbitrary file extension, anything not xml
would take the same effect).
If you want to start Q2 interactively using q2 --cli
, then you can go to the deploy
subsystem by typing deploy
. (type tab
to see available commands). You can list
services and enable/disable
them. You can run q2 --cli
in the foreground, or you can run q2 --ssh
and then “ssh” to your running Q2 to run those commands.
Please note that when you run q2 --cli
the default deploy directory is actually deploy-cli
. You can override that by also using the --deployDir
switch. Try q2 --help
to see
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAGbmbPVk%3Dwz-pUW_HfFQNsBQcn61-1omj%3DoCCA8fGQ%3DgLGJnaA%40mail.gmail.com.