Sin categoría

Programming a Payment Method with NFC on Android (Second Tutorial Android Application)

In this tutorial, we are going to create our pilot android application and we are going read our Mifare tags.

To test my application  I got a nexus tablet to read Mifare tags.nexus7.jpg

We are going to create the android application using Android Studio. For this date, I upgrade the Android OS to 5.1 in my tablet.

I am going to all my application ArmletPaymentPilot.new project.PNG

Continue reading

Sin categoría

Programming a Payment Method with NFC on Android (First Tutorial Some basic information)

In this tutorial, I am going to show you how to create a payment method using an Android device with NFC.

In my case, I am going to use Mifare Classic 1K Card to make the tutorial. The bracelet that we already have uses Mifare Classic 1K Tag.

I have to develop an application who reads the identification and send it to a web soap web service.

The Microservice Architecture

As we can see in the image below, the bracelet is going to be read for the Android App and send the ID and the amount of the payment to the REST Payment Service who is going to transform the JSON format to a SOAP format and send it to the Bank Payment Service.

The REST service is going to follow the Microservice and the Hexagonal Architecture. Which is going to have his own database. To read more about this Architectures you can follow the next links hexagonal-architecture and introduction-to-microservices.

brazalete.PNG

Continue reading

Sin categoría

Exception occured when binding was invoked. Exception occured during invocation of JCA binding

Exception occured when binding was invoked. Exception occured during invocation of JCA binding: “JCA Binding execute of Reference operation ‘dbaGetReservationIDByReservationNumber’ failed due to: Could not create/access the TopLink Session. This session is used to connect to the datastore. Caused by Exception [EclipseLink-7060] (Eclipse Persistence Services – 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [jdbc/soa/data]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve ‘jdbc.soa.data’. Resolved ‘jdbc.soa’; remaining name ‘data’. You may need to configure the connection settings in the deployment descriptor (i.e. DbAdapter.rar#META-INF/weblogic-ra.xml) and restart the server. This exception is considered not retriable, likely due to a modelling mistake. “. The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part  name=”detail><detail> Exception Description: Cannot acquire data source [jdbc/soa/data]. Internal Exception: javax.naming.NameNotFoundException: Unable to resolve ‘jdbc.soa.data’. Resolved ‘jdbc.soa’; remaining name ‘tswdata’</detail>