[jpos-users] start jposserver using q2 command line cli

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[jpos-users] start jposserver using q2 command line cli

Amit Vadje
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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

chhil

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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/CAPazefA768eBfOtz4b2Cas220p4VS6BBXiRu9aLT-iWshPE4rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

Amit Vadje
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

<a href="https://github.com/jpos/jPOS/blob/master/doc/src/asciidoc/ch07/running.adoc" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fblob%2Fmaster%2Fdoc%2Fsrc%2Fasciidoc%2Fch07%2Frunning.adoc\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUqIJJ-opRGyXnkQa3QszX4PmvIw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fblob%2Fmaster%2Fdoc%2Fsrc%2Fasciidoc%2Fch07%2Frunning.adoc\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUqIJJ-opRGyXnkQa3QszX4PmvIw&#39;;return true;">https://github.com/jpos/jPOS/blob/master/doc/src/asciidoc/ch07/running.adoc

-chhil

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DKoq4UovCAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vadj...@...> 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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DKoq4UovCAAJ" 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="DKoq4UovCAAJ" 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="DKoq4UovCAAJ" 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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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/8eb6fc08-27fa-459c-b63e-b711c925e465%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

chhil
In reply to this post by chhil

I have created one sample jposserver application which will listen on port


It needs to be a qbean with an xml descriptor.

e.g.

<?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>
When Q2 is run, it checks the deploy folder for xml file, reads them and instantiates objects.
In the above case, it will start a tcp server listening on a port specified in the configuration.
You give it a channel class that knows how to handle any headers (things like length/tpdu etc) preceding your ISOMsg. It reads and extracts the raw  ISOMsg data , uses the packager configured in the xml to to unpack the message into an ISOMsg object  and gives it to your class that implements ISORequestListener ibterface. There you do whatever you want to with message in the

public boolean process (ISOSource source, ISOMsg m)

and use the source to respond back.

-chhil

On Fri, Apr 14, 2017 at 8:32 AM, chhil <[hidden email]> wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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/CAPazefAny%3DidFiQFpWV0%2Bw%2BEzf2oq%3D0kuM%2BTxOY3ogT0vnYR8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

chhil
In reply to this post by Amit Vadje


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil

On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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 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.

--
--
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/8eb6fc08-27fa-459c-b63e-b711c925e465%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/CAPazefC0kepBjQu%2B4gQCJ1p3vgLW3WqODjXVqkbh8j-xJkqxJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

Amit Vadje
Hi Chhil,

Thanks a lot for this information. So there is no way to start explicitly using command line.

If we have 2 separate qbean and those are deployed using xml. So how many JVM processes will be running for it? will it be only one jvm process which is actual jpos process or 2 different jvm process? How will it be monitor respective to how many request has been processed and pending to process?


Thanks,
Amit

On Friday, 14 April 2017 11:32:56 UTC+5:30, chhil wrote:


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
<a href="https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Ftree%2Fmaster%2Fjpos%2Fsrc%2Fmain%2Fjava%2Forg%2Fjpos%2Fq2%2Fcli%2Fdeploy\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEyttEOskODKesb_NEKvuSFOCqGog&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Ftree%2Fmaster%2Fjpos%2Fsrc%2Fmain%2Fjava%2Forg%2Fjpos%2Fq2%2Fcli%2Fdeploy\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEyttEOskODKesb_NEKvuSFOCqGog&#39;;return true;">https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil

On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="1txTsh45CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vadj...@...> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

<a href="https://github.com/jpos/jPOS/blob/master/doc/src/asciidoc/ch07/running.adoc" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fblob%2Fmaster%2Fdoc%2Fsrc%2Fasciidoc%2Fch07%2Frunning.adoc\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUqIJJ-opRGyXnkQa3QszX4PmvIw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpos%2FjPOS%2Fblob%2Fmaster%2Fdoc%2Fsrc%2Fasciidoc%2Fch07%2Frunning.adoc\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUqIJJ-opRGyXnkQa3QszX4PmvIw&#39;;return true;">https://github.com/jpos/jPOS/blob/master/doc/src/asciidoc/ch07/running.adoc

-chhil

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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="1txTsh45CAAJ" 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="1txTsh45CAAJ" 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="1txTsh45CAAJ" 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/8eb6fc08-27fa-459c-b63e-b711c925e465%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/8eb6fc08-27fa-459c-b63e-b711c925e465%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/8eb6fc08-27fa-459c-b63e-b711c925e465%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/8eb6fc08-27fa-459c-b63e-b711c925e465%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/5fc77ebf-d639-44af-8d85-bbf7aa0eedba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

chhil

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


On Fri, Apr 14, 2017, 12:30 PM Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for this information. So there is no way to start explicitly using command line.

If we have 2 separate qbean and those are deployed using xml. So how many JVM processes will be running for it? will it be only one jvm process which is actual jpos process or 2 different jvm process? How will it be monitor respective to how many request has been processed and pending to process?


Thanks,
Amit


On Friday, 14 April 2017 11:32:56 UTC+5:30, chhil wrote:


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil
On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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].

--
--
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/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: [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/CAPazefC4eAo-Vabnc_yoE1QDS41zVpZzidrCTakBv-t%3D69hCzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

Alejandro Revilla
There's an explicit way usin CLI and the deploy subsystem. (Type deploy from the command line)

On Fri, 14 Apr 2017 at 04:26, chhil <[hidden email]> wrote:

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


On Fri, Apr 14, 2017, 12:30 PM Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for this information. So there is no way to start explicitly using command line.

If we have 2 separate qbean and those are deployed using xml. So how many JVM processes will be running for it? will it be only one jvm process which is actual jpos process or 2 different jvm process? How will it be monitor respective to how many request has been processed and pending to process?


Thanks,
Amit


On Friday, 14 April 2017 11:32:56 UTC+5:30, chhil wrote:


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil
On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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].

--
--
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/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: [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/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: [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%3Dkz0GWx20bApNSOq7QE0yzfO03uC43JQEUq1jR2vkzMiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

Amit Vadje
Hi Alessandro, 
Can you please explain more details related to this?  As I like to start and stop jposservers using click command like "start/shutdown  server1 or start/shutdown"  server2



Thanks, 
Amit

On 14 Apr 2017 8:03 p.m., "Alejandro Revilla" <[hidden email]> wrote:
There's an explicit way usin CLI and the deploy subsystem. (Type deploy from the command line)

On Fri, 14 Apr 2017 at 04:26, chhil <[hidden email]> wrote:

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


On Fri, Apr 14, 2017, 12:30 PM Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for this information. So there is no way to start explicitly using command line.

If we have 2 separate qbean and those are deployed using xml. So how many JVM processes will be running for it? will it be only one jvm process which is actual jpos process or 2 different jvm process? How will it be monitor respective to how many request has been processed and pending to process?


Thanks,
Amit


On Friday, 14 April 2017 11:32:56 UTC+5:30, chhil wrote:


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil
On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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 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.

--
--
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].

--
--
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/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: [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].
--

--
--
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 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 [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%3Dkz0GWx20bApNSOq7QE0yzfO03uC43JQEUq1jR2vkzMiw%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: [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/CAGbmbPVk%3Dwz-pUW_HfFQNsBQcn61-1omj%3DoCCA8fGQ%3DgLGJnaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] start jposserver using q2 command line cli

Alejandro Revilla

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

​the
 available options.




On Fri, Apr 14, 2017 at 1:21 PM, Amit Vadje <[hidden email]> wrote:
Hi Alessandro, 
Can you please explain more details related to this?  As I like to start and stop jposservers using click command like "start/shutdown  server1 or start/shutdown"  server2



Thanks, 
Amit

On 14 Apr 2017 8:03 p.m., "Alejandro Revilla" <[hidden email]> wrote:
There's an explicit way usin CLI and the deploy subsystem. (Type deploy from the command line)

On Fri, 14 Apr 2017 at 04:26, chhil <[hidden email]> wrote:

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


On Fri, Apr 14, 2017, 12:30 PM Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for this information. So there is no way to start explicitly using command line.

If we have 2 separate qbean and those are deployed using xml. So how many JVM processes will be running for it? will it be only one jvm process which is actual jpos process or 2 different jvm process? How will it be monitor respective to how many request has been processed and pending to process?


Thanks,
Amit


On Friday, 14 April 2017 11:32:56 UTC+5:30, chhil wrote:


>In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"

You cant start and stop components that way or atleast I am not aware of it.
You can undeploy a xml by renaming its extension which will stop the server. This can be done using the -cli
of ENABLE and DISABLE
(
https://github.com/jpos/jPOS/tree/master/jpos/src/main/java/org/jpos/q2/cli/deploy)

-chhil
On Fri, Apr 14, 2017 at 10:35 AM, Amit Vadje <[hidden email]> wrote:
Hi Chhil,

Thanks a lot for sharing this link which is very informative.

I like to ask you that suppose I have created 2 jpos server and both will be listening on 2 different port. If i deployed .xml file in deploy directory q2 automatically reads and start those servers. In this case, how can i start explicitly start/stop those 2 servers using CLI command line eg. "q2>start server1 or q2>start server2"?


Thanks,
Amit

On Friday, 14 April 2017 08:32:51 UTC+5:30, chhil wrote:

On Thu, Apr 13, 2017 at 11:36 AM, Amit Vadje <[hidden email]> 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: [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]m.
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/fc480c34-f9c7-47b1-a3f8-aa99f25ce6a6%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]m.
To post to this group, send email to [hidden email].

--
--
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/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: [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].
--

--
--
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 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 [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%3Dkz0GWx20bApNSOq7QE0yzfO03uC43JQEUq1jR2vkzMiw%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: [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/CAGbmbPVk%3Dwz-pUW_HfFQNsBQcn61-1omj%3DoCCA8fGQ%3DgLGJnaA%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: [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%3Dm%3DC8sThxVrOJ4h0voS3gkDavYfsG_Kd%3DDxVSBLJZL1VA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.