Open crised opened 11 years ago
Hi =) I generate Spark (from "fire spark") to be the "Telematic Server". To the project go forward will neeed the WSDL from ACME. After that we can create the ACME project and create an project to hold the shared entities. Also, the "save the xml file into disk" feature, I would not recommend that in Java EE. To accomplish that, we can: -> persist in PostgreSQL (BLOB/CLOB) -> use a NOSQL database for that (cassandra, e.g.) -> use JMS with a fire and forget (or XA but that would cause some delay) (this could be another project and even another container , e.g. camel)
Another thing I just remembered, need to draw some screens. I was thinking to use the twitter bootstrap as the default css of the project (it have a good configuration to deal with different windows and browsers). Some examples: http://twitter.github.io/bootstrap/getting-started.html#examples ( I liked the http://twitter.github.io/bootstrap/examples/fluid.html ). Another point to think in the project are the tests. I would recommend BDD, creating Units tests to tests each piece of code and good integrations tests. This would be not for Java/WS/RS but for the javascript generated as well. AngularJS is a MVW framework and due that will make more code to be on the screen that increase the risk of problem with it.If you would like a can share how we can solve that .
I have browsed the png files in the repository, I have some confutation here.
Why communicate with ACME via JAXWS/SOAP, the API is existing?
Yes On Jun 3, 2013 2:14 AM, "Hantsy Bai" notifications@github.com wrote:
I have browsed the png files in the repository, I have some confutation here.
Why communicate with ACME via JAXWS/SOAP, the API is existing?
— Reply to this email directly or view it on GitHubhttps://github.com/crised/server-android/issues/1#issuecomment-18823529 .
Hantsy though about making telematic server continuously fetching timestamp value provided of ACME Server, whenever ACME Server has a new entity it should update it's timestamp, so telematic fetches ACME server.
We're using this entity: https://github.com/crised/server-android/blob/master/applications/spark/src/main/java/com/telematic/spark/rest/MemberREST.java
e.g.: {"id":0,"name":"John Smith","email":"john.smith@mailinator.com","phoneNumber":"2125551212"}
ACME Server
Make deployment that:
Publish JAX-WS.
Makes an object annotated with JAXB, similar to the link bellow. Publish it into a Web Service. Use WSDL, make common simple assumptions. Only Java EE 6, use CDI.
Telematic Server
In this server, consume the web service. Annotate into an @Entity class, then persist the class into a DB, then save the xml file into disk.
Also make a RESTful service to publish the same data. JSON is needed here.
SOAPUI tool preferred to see soap message.
The optimal idea is to use the same class, that consumes the web service, @Entity, and generate RESTful resource.