Access web based java application on different systems? - java

Hi i have created a web based application using struts2,spring and ibatis. I am using Apache tomcat server to host it on my computer and using msql as datasource.
I am able to use application on my computer browser.
But the requirement is to make this web based application to be accessible on more than one system using the browser.
Can you guys please guide me as how i can do that.As i am new to web based applications

Related

Single sign on Java and NodeJs (Share single session object between Java and Nodejs)

I developed two application. One application developed by using Java(Spring MVC and Spring Security) and another application developed by using NodeJs.
I would like to integrate NodeJs application in Java application(Spring framwork application) . I would like to access(Call) the NodeJs application after login into Java application.
I checked in forum but I am not get in clear view.
E.g) My situation is, I have one hyperlink in Java (Hyperlink will show after login) and call NodeJs application if user click on that hyperlink.
Can you please give the some examples and ideas for integrating NodeJs and Java applicaton and also for sharing session between Java and NodeJs application?
You can just put your web apps behind proxy server to avoid the CORS problem and for sharing the session you would use Redis DB.
After it you will need just to check session expiration on your NodeJs app.

Web Server for existing Java application

I have an existing Java application running on a linux box that monitors the state of relays and network information. This is a stand-alone device currently.
What I would like to further develop is a web server for the device to remotely monitor, configure, and control the device via an Ethernet connection. To achieve this, I need some way to interface between the web server, which could be configured as enabled/disabled, and the master device, which is always running.
Is there a good way to do this? I have looked at apache w/ tomcat and similar web servers but not sure if this is what I need. The key here is that the web server needs to be able to access the existing java application without interfering with its always running services.
You either develop a webapp, use your Java application's API inside the webapp, and deploy this webapp inside a web container. Or you can do the reverse and embed a web server inside your application (see here for documentation to embed Jetty).
If you want to keep the webapp and the original application in two separate JVMs, you'll need some wey to communicate between both, like sockets, RMI, or even files, but it will be more complex.
You might want to take a look at JMX http://docs.oracle.com/javase/tutorial/jmx/overview/index.html

Clarification on How to access the Java+ Xml application in PHP based web portal

I Require a clarification on one Technical Implementation to check its feasible or not.
I have one VPS server which has a Java Environment and I have one more dedicated server which doesnot have a Java Environment where i have built my PHP based web application,
In the VPS environment I am planning to implement the XML based application using the Observer pattern with java and DOM Parsers and make that application available at say for example
123.124.125.65/XML_Works/Sample,xml file
Now My doubt is that: 1)is it possbile to access this application in dedicated Server where the java environment is not there.
2)if yes, then is it possible to access that java + XML application in IFrame in PHP based web portal.
1) No JVM = no java running on that machine
2) The most common solution I saw (and am using) is to externalize the java functionality you want as a web service or servlet and package it as a .war
Then use some web container such as tomcat to load that war and use a connector to connect calls to tomcat to your PHP server.
So the configuration I use is, Java as war, Tomcat as web container, Apache as PHP server and mod_jk connector for communication between servers.
Note that the mod_jk connector also supports other web servers.

Java application on windows server possibility?

I'd like to know if it is possible to have this application (neo4j) running on windows server 2008 alongside an asp.net mvc application. Reason for this, I need to access the graph database (neo4j) which provides a RESTful service from my mvc application. How would I go about setting up this architecture?
According to the website you linked to the application is self-contained (no Tomcat etc required). So just installing the Windows package and following the instructions here (for starting the service) should suffice.

jboss client-server app. concurrent user

I have a client-server application. Client app. is a swing application. Server app. is ejb3 based Java EE application and working on JBoss AS 4.2.1.GA. Client and server are communicating with RMI. I want to monitor, how many user is using the application and active clients that are requesting information from server. Is there any monitoring tool in JBoss AS i can use, for example by using web/jmx console etc.
Thanks,
Deger
Simplest solution is to install the Embedded JOPR solution, it means copy a file on the deploy directory and configure JMX security if needed.
More info:
Quick and dirt page with installation guide
Main page of the project

Categories