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
Related
I planned to use jBoss to deploy, manage and monitor playframework applications, but from https://github.com/play2war/play2-war-plugin/wiki/ConfigurationLoggingJBoss7, I found jBoss and playframework doesn't play very well together.
From the official documentation, it only says Apache or Nginx can be used for HTTP server, but no application server is mentioned there. Does anyone have ideas about what would be a suiable application server for Playframework deployment? How about Apache Tomcat or GlassFish?
You don't need any application server to run a Play 2.x application. The application can run stand alone, it internally uses Netty to handle the sockets, Akka to handle the concurrency etc.
Usually Apache or Nginx are used in front of a Play application to offload serving of static resources, HTTPS handling (both can be done directly in the application itself) and above all to allow public access to multiple applications on the same IP and port under different paths.
In Play 1.0 you could build to a war to run in a container like you describe. This feature was removed in Play 2.0 to promote the embedded Netty server as the main way to deploy applications. Now you need the play2war to achieve this functionality.
Scenario:
I want to add messaging feature to an eclipse plugin and a web application. Clients are eclipse users, and web application users. Whenever a client posts a message to the server with a specific topic, the web application users browsing that topic should immediately be aware of the incoming message.
What are the current java technologies that handle this scenario? I am searching a clean API, solution.
PS. The system has already spring dependencies, the server is Tomcat 7
You can use XMPP via Smack on the Eclipse client and use an existing web based chat client, or browser friendly XMPP client library for your web interface.
Since you are posting to a topic, I would suggest using either the multi user chat or pubsub extensions of XMPP.
You might want to have a look at the Eclipse Communication Framework: http://www.eclipse.org/ecf/
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
I want to run a standalone java application on a remote server. It would not be accessible to clients, but would do background calculations and interact with a database and Secure Socket connection to a third party site. It would also interact with a php site.
Do I have to deploy this with JSP, or can I write a standalone application? If so, how would I deploy a standalone java application (jar file) on a remote server? I understand that I must have them install a jvm on the server (not a problem) but then how would I deploy it (if possible). Would I start it with a command line?
I know I have much to learn, but I am not sure how I would access the command line on a remote server. Through the cPanel?
Thanks.
First of all, you'll want to set up some firewall rules to allow access to that server. I'm hoping that you don't expose that server naked to the Internet.
If all you need is database access exposed on the Internet, I don't see why it can't be a secured web app deployed on a servlet/JSP engine and accessed via a web server. You can leverage basic auth for security, JDBC access to the database from the server, and servlets as controllers to accept requests in a nice REST API.
It'll save you the complications of sockets and inventing your own protocol (use HTTP), starting and stopping the application (now it's just a web server/servlet engine), and deployment (send a WAR file).
Does it really must be a 'standalone' application? I think that in your case the best match would be to use Spring container to load your application within some server (tomcat?) and expose services via standard controllers - with Spring you only have to add some annotations on services methods actually.
Then, your php site can interact with these controllers using for example ajax requests.
If your application is written already, you can easily transform it to run within Spring container. It's very non-invasive and promotes usage of POJOs.
I am totally new to java/GlassFish deployment. I am using solr for the search functions of my rails app. i can able to set the mater password for the domain from the shell. It was fine. It greets with authentication screen when i tried to launch GlassFish portal.
But i could't find how to set the permissions for my deployed solr war instance. Can someone help me how to do this?
There are a number of tutorials that outline what you need to do to secure a web app deployed onto GlassFish.
This is a tutorial on developing a secure a web app that you are creating in NetBeans for deployment onto GlassFish.
This is chapter from the Java EE 6 Tutorial describes how to secure access to a web app.