Swing Application as server to host web services - java

I have swing application. Basically I have used "floreant pos" and have customized based on my requirement. Now I want to the same operation what I do from my swing application but in the form of Rest web service.
When I start my swing application, there must be web services available to access from mobile app.
I need to use same predefined methods for the web services.
Simply it's a application as a server.
Above are the requirements, not sure how I can achieve it. Moreover, I need some details of "floreant pos" plugin architecture that they have released in 1.4 version so can anyone help on plugin architecture understanding of "floreant pos"..
Website :- http://floreant.org/
Wiki :- http://wiki.floreantpos.org/
I have been stuck for a long time. Please provide me some solution.
Thanks in advance

Related

Can I implement codeless Application Insights for Java app services on Azure?

My goal is to to enable application insights for our java 8 app services on Windows. I'd like to implement codeless application insights if possible, but I'm uncertain whether this is currently supported for Java app services.
When I visit any documentation page regarding code-based application insights for Java, I am recommended to use the new Java 3.0 agent for Application Insights, which supports codeless monitoring.
However, the table on this page indicates that this is not yet supported for Java app services. But further down the same page it says: "The portal integration for monitoring of Java applications on App Service on Windows is currently unavailable, however, you can add Application Insights Java 3.0 standalone agent to your application without any code changes before deploying the apps to App Service. Application Insights Java 3.0 agent is generally available."
It's not clear to me what is meant with "portal integration" here. I have tried to implement the 3.0 agent using this documentation, and so far it works from my local machine, but not (yet) when deployed to the app service. So my question is whether I'm doing something wrong or that it isn't supported currently.
Thanks
Answer is posted here https://github.com/microsoft/ApplicationInsights-Java/issues/1615
All you need to do:
Enable application insights for the app service and specify an app insights instance
Add this application setting; XDT_MicrosoftApplicationInsights_Java -> 1
I think what mentioned in the doc about codeless application insights is like this:
After deploying my springboot app to azure web app (windows, java 8, standard S1), we can enable application insights by turn the button to 'enable' in the screenshot above. And even I didn't add app insights sdk in my code, I can still get trace and other information.
=============================UPDATE================================
I found after adding these three settings in the configuration, the application insights will also automatically collect traces from the program. Weird!

Set up web services based environment (advice/tips to start)

I am a bit lost because it's my first time assuming this role for a project.
We are making a software which consists in an app developed in Phonegap (for making a service oriented architecture, to make multiplatform easier).
The Phonegap app (and also the admin web) will be consuming constantly web services (every functionality is a service), and is my task to set up and environment to publish the API with the different services. I have heard about JAX-RS and also Spring MVC (I prefer this last option, because the good integration with Tomcat, and knowledge on the framework).
I have more or less clear the architecture (Tomcat+Spring+WebServices), but I am not sure how to start, because of the integration with the mobile app. I obviously want to develop with Java in the server side.
Any advice to start or related?
Thanks too much to all.
I would suggest you go for Apache CXF support for Rest Service.You can deploy the same in a tomcat server.I will suggest you to read the following URLs for better understanding:
http://www.dreamsyssoft.com/blog/blog.php?/archives/7-Simple-JAX-RS-Web-Service-in-Java-with-Spring-and-CXF.html
http://cxf.apache.org/docs/restful-services.html
Hope this helps.

JavaFX application to expose Webservice

I am new to Web service, and have a JavaFX desktop application running client-side.
I am planning to create an Android application that will call the web service exposed by the desktop application. Any suggestions on how to do this? Tutorial links would be helpful.
I know you are new to webservices, but please go through some documentations first ! You may find a nice tutorial here
A short introduction to Web Services
Just to give you a brief idea on what is wrong with your question. Javafx Desktop application and an android application are both basically clients (who consume web servcies).
You need to have a Server (who exposes web services) hosting a web application, so that these clients can use it. Your webapplication build in java, php, asp etc. The language doesn't matter in case of webservices !

Java Web Apps virtual host

I have just became a partner of a company that has a site developed in JAVA. As part of the agreement they allow me to create a section on their site (so I can take benefit of their traffic), but the development of this section needs to be as less intrusive as possible.
So ideally I would like to implement an independant web application in JAVA (with same layout) with a separate database that runs in the same application server. And in the application server to make a mapping like this:
All the traffic that comes to www.domain.com/MY_FOLDER
its served by my web application, all the rest should be served by my partners site.
I have no experience in JAVA but I found that in php this can be done, so I was wondering if it can be done also in JAVA.
About the application server I dont know yet which one they are using but I guess that are using "resing server" (by caucho: http://www.caucho.com/).
I would really appreciate if you can give me any ideas of how I can achieve this.
Thanks in advance,
Juan
Only one application can listen at a given socket at one time, so you need to have the existing server forward "your" requests to your web application, if it is not Java capable in itself.
The way to do that is not standardized so you will have to talk to the server administrator.
The easiest way to start from scratch with a Java Web Application is in the Netbeans bundle with Glassfish.

How to build a web based chat application similar to gmail using java at backend logic

Hii,
I want to built a web based chat using j2ee at backend logic.i want to implement the similar way the gmail do,so that performance of application doesnr degrade.please suggest what type of architecture shoul i follow.load of application would be high.
Use what Google used: GWT. They spent years on making it fast and easy to use.
The Jetty web container has a demo chat application which uses Ajax as the gmail chat does and which is not too complicated to learn.
It appears somebody has a Jetty running on http://64.164.6.244:9090/test/chat/chat.html, so you can see what it looks like before downloading and running it yourself.

Categories