Hi,
My team is working in a project where a request(ISO 8583) need to be send via JPOS server to the backend (Remote Host as per official doc) via SOAP api.
We have implemented our system as follows:
We implemented a ISOListner in a middleware (spring boot project) where it converts the incoming ISO message to SOAP request.
Is it possible/advisable to embed the middleware code to JPOS server itself?
If possible , what is the right place to put our translation logic ? Is it the ChannelAdaptor or TransactionManager?
Few blogs suggest that we can put all logic to TransactionManager or ChannelAdaptor. If it is true then do we need mux and channel at all? Or our architecture is ok to proceed further?
Thanks,
Moz
public int prepare (long id, Serializable o) {Context ctx = (Context) o;String url = getURL (ctx);HttpPost post = new HttpPost(url);StringEntity entity = new StringEntity(ctx.getString(JSON_REQUEST.name()), ContentType.create("application/json", Consts.UTF_8));post.setEntity(entity);try {client.execute(post, response -> {int sc = response.getStatusLine().getStatusCode();if (sc == HttpStatus.SC_CREATED || sc == HttpStatus.SC_OK)ctx.put (JSON_RESPONSE.name(), EntityUtils.toString(response.getEntity()));ctx.resume();return null;});return PREPARED | PAUSE | NO_JOIN | READONLY;} catch (IOException e) {warn (e);}return ABORTED;}
--
--
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/6158c710-b9d1-457d-a2f7-209a955ed8e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3D%3DxDwZ_WBhtM4Aad0dNpKrgx2aVM7mvQSUk_asyqHeqyw%40mail.gmail.com.
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/6158c710-b9d1-457d-a2f7-209a955ed8e0%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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3D%3DxDwZ_WBhtM4Aad0dNpKrgx2aVM7mvQSUk_asyqHeqyw%40mail.gmail.com.
--
--
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/CA%2BmF82%2B0nVJjj32ArrURmnrf7hWEHYH9ehGk21Nzfjcg6C%2BUXQ%40mail.gmail.com.
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/6158c710-b9d1-457d-a2f7-209a955ed8e0%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/CAAgSK%3D%3DxDwZ_WBhtM4Aad0dNpKrgx2aVM7mvQSUk_asyqHeqyw%40mail.gmail.com.
--
--
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/CA%2BmF82%2B0nVJjj32ArrURmnrf7hWEHYH9ehGk21Nzfjcg6C%2BUXQ%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 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/CAPazefDK5P0yZ%2B49jv9mruosHF4Tk0zZBGxS3SHLunmq5OhVSQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-...@googlegroups.com.
@apr, I'm doing similar to you by hitting a REST server with Retrofit 2 in async mode and resume the context in the HTTP callback. I couldn't figure out how to abort the participant in the HTTP callback when I got the error response from the server. Let say I check if the HTTP response code is 400 or 422 from the server, I want to the participant to return ABORTED instead of just resuming the context with PREPARED.
@apr, I'm doing similar to you by hitting a REST server with Retrofit 2 in async mode and resume the context in the HTTP callback. I couldn't figure out how to abort the participant in the HTTP callback when I got the error response from the server. Let say I check if the HTTP response code is 400 or 422 from the server, I want to the participant to return ABORTED instead of just resuming the context with PREPARED.