Pular para o conteúdo principal

Postagens

Mostrando postagens de agosto, 2014

JavaEE, JavaFX and RFID - Part 4: The Client

Finally! It's the last post of the series about a JavaFX application that reads a RFID tag and talks to a JEE application that is in the "cloud". Part 1: The Application Part 2: Reading RFID from Java   Part 3: REST API and Security Part 4: The Client The JavaFX application This application aims to allow the user to input data from their RFID Tag and using a high level client(JAX-RS 2), access the data somewhere, which, in our case, is in Openshift . The initial screen of our application Application Structure Basically we have FXMLs, for each FXML we have a controller that interacts with the PersonService class: Brief explanation: In model package we simply have simply Java that represent our business, in this case information about people, so we have a Person class. *.fxml files are the view part of our application. These files can be opened in SceneBuilder for edition in a visual way. You can edit the fxml files directly as well... FXMLs ...

JavaEE, JavaFX and RFID - Part 3: REST API and Security (+ Openshift)

Continuing our series of post about RFID and JavaFX, we are going to show today how to we expose the application database using a REST interface and how we secure it. Part 1: The Application Part 2: Reading RFID from Java   Part 3: REST API and Security Part 4: The Client For this part, we will use Wildfly(The JBoss community application server) and we will deploy a REST application to it that access our database.   Why REST? RESTful APIs allow us to access information in a stateless manner. It also allow us to access this information in a remote centralized way, so any application can access it. RESTful APIs also makes easy to integrate your system. In our blog post we are talking about a simple and small application, now imagine we have a big database of employees or products that we wants to integrate with a RFID system and we want to add thousands of data to our RFID system. It's much easier when the system is exposed using REST.   REST and Java R...

JavaEE, JavaFX and RFID - Part 2: Reading RFID from Java

Hello, continuing our series of posts about RFID and JavaFX, today we are going to show you how we read the RFID tag information from the receptor using Java. Remember we are using the RFID USB Starter Kit , the information of this post is specific for this kit, however, I believe most of the information applies to others RFID readers. Part 1: The Application Part 2: Reading RFID from Java   Part 3: REST API and Security Part 4: The Client The RFID reader RFID is simply an identification that will be read using a Radio Frequency. The ID is in RFID tags which can be read using a RFID Reader. My purpose is only read the tag, so we won't go deep in the writing part, we will focus on reading a RFID tag. I used the  simplest RFID Reader I could find since I was avoiding unnecessary trouble. The reader is connected by USB and we just have to connect it to a PC so we can start hearing the buzz when we approach a RFID tag to the reader. Notice that the reader a...

JavaEE, JavaFX and RFID - Part 1: The Application

Hello! Today I'm going to show how is easy to create a JavaFX application that integrates with a RFID reader . Specifically with the RFID Starter Kit . It's a complete application that reads a RFID tag and then search information about it on a remote database accessed through a REST interface . To avoid an extensive blog post, I divided it in 4 parts: Part 1: The Application Part 2: Reading RFID from Java Part 3: REST API and Security Part 4: The Client The application We will demonstrate the use of RFID with JavaFX using a simple Application where a person with  will pass a card on a RFID reader and our application will give more information about the person, or if the person is in the database. The application also allows you to register a new person, delete existing people and modify information. The app will basically work as demonstrated on the following diagram:  The Application Database The database contains person information and also the RFID r...