jPOS Server in-out

jPOS Server in-out HI!! i’m back, finally! hehe Hi, everybody! Its been a while from my last post. I almost forgot that i have this blog. 😀 So, in this post i will share about jPOS Server in-out, have you experienced a case where you as a server need to initiate request? it could be network management message. This post is related topic with my previous post about jPOS Client Receive Request From Remote Server We are lucky, jPOS can handle this case. all we need to do is to

Continue reading

How to Configure Basic Auth Spring RestTemplate

Hi, its been a while since my last post. there are some project that taking more time, so i’m not updating this blog until now, some friends contact me asking about my post, i try my best to reply them. How to Configure Basic Auth Spring RestTemplate. Today, i will share about How to Configure Basic Auth on Spring RestTemplate. Spring ResTemplate is very useful class to consuming any rest api, by default its not using any Authentication Method. The example of Basic Auth is something like this: Authorization:Basic ZXllc29jY2VyOmV5ZXNvY2NlcjIwMTc=

Continue reading

Create Custom jPOS ISO8583 Packager

It’s been a long time since my last post, because some freelance project and current company projects. Today someone ask me about how to create custom jPOS ISO8583 packager for financial transaction. On this post, i wanna share about create custom jPOS ISO8583 packager using java class instead for xml. Creating custom packager is pretty easy, all we need to do is just extending ISOBasePackager abstract class, override the fld[] and creating constructor. for example packager bellow:

Continue reading

Receiving Http Request using jPOS

Today i wanna share about Receiving Http Request using jPOS. when we talk about http request, its mean that we can use restful or soap Service. In this post, we will use Restful service as example. Mostly when we use restful service, we use JSON as data format. First, jPOS is TCP based framework. its not possible to receive http request, but it’s possible if we can integrate jPOS with Servlet container like jetty. Jetty will open connection to receive http/s request, and then we can manipulate the data, wether

Continue reading

Passing Parameter With PrettyFaces

Today i want to share about Passing Parameter With PrettyFaces or sending parameter on Java Server Faces that use Primefaces and Prettyfaces library. sometimes, we need to pass parameter to the url of our jsf Page. there are three simple steps to do this approach. we need to configure url mapping on pretty-config.xml file, and pass parameter to the button in xhtml page. first, we need to add url mapping on pretty-config file. <url -mapping id= "newsForm"> <pattern value= "/newsForm/#{ id : newsAdmin.newsId }"></pattern> <view -id value= "/pages/admin/target/newsForm.jsf"></view> </url> and

Continue reading

jPOS Client Asynchronous Request

Today, i want to share about jPOS Client Asynchronous Request. When we look at MUX interface there are two overloading request(ISOMsg, timeout) and request(ISOMsg, timeout, ISORequestListener, handback) method for synchronous and asynchronous messaging. usually, i’am using request(ISOMsg, timeout) method for sending request to server. But when i look at MUX source for fun, i realize that there are asynchronous way to send request. So in this post i will share about jPOS Client Asynchronous Request. You can see the different with my old post about jPOS Client Receive Response to

Continue reading