We use embedded jetty that runs in the same process as the switch. Jetty is part of jpos ee.
Once you have the request, you just have to put it on your transaction managers queue to process it and place the response in a queue that your web request handler waits on.
-chhil
--
--
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/2a79d75f-14f0-4e7c-b0bc-7b14f6ca9b4c%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.
Remember your web.xml
needs something like this:
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>your.package.name</param-value>
</init-param>
So that Jersey gets to scan your files for annotations.
--
--
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/de12ab45-907c-4b59-93dd-a39ab65e0797%40googlegroups.com.
Remember your
web.xml
needs something like this:<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.packages</param-name> <param-value>your.package.name</param-value> </init-param>
So that Jersey gets to scan your files for annotations.
On Tue, Jan 31, 2017 at 11:30 AM, Anirudh Singh <anirudhsi...@gmail.com> wrote:
Hi,
Thanks for responding.
My jetty work fine and i have a SOAP web service running on it which works fine.
However, will i have to publish this rest service by adding a participant in the existing transaction manager ?
eg -
<participant class="com.test.RestSupportTest" logger="Q2">
<property name="checkpoint" value="restService"/>
</participant>
--
--
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.
ResourceConfig visaResourceConfig = getResourceConfig();
ServletHolder visaServletHolder = new ServletHolder(
new ServletContainer(visaResourceConfig));
contextHandler.addServlet(visaServletHolder, "/rest/rewards/*");
private ResourceConfig getResourceConfig() {
// manually injecting dependencies to Jersey resource classes
return new ResourceConfig()
.register(new StatementCreditSvc(visaRewardsTxnMgr,
new int[] { visaRewardPort },visaRewardsTimeOut))
.register(new AuthenticationFilter(log))
.register(new CustomLoggingFilter(log));
}
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/b3e7ed1e-5fc7-4ba1-86d1-36faaac88b00%40googlegroups.com.
However, i cant publish the service on the embedded jetty.