Thanks Christopher for JMX option but it is taking more time.
Use case :
I have two tomcat servers (s1 and s2). I will call a method in s1 server from
external source. On the method invocation s1 contacts s2 and passes on the
information (example some in-memory data stored for the s1 is passed on to s2).
If I use JMX, it is takes time to connect to server1 and fetch the information
and then connects to server2 and update the information.
What I am looking for is to create light service and expose to some port (let
say 8100). Now if I call this service on s1 (from outside) the s1 should
connect the s2 and pass on the information.
Kindly provide me some suggestion on how I can do this.
Thanks & Regards,
On February 19, 2017 at 8:50:46 AM, Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
On 2/18/17 8:12 PM, Daga, Harshit wrote:
> I want to add a custom service/module as part of the tomcat server
> which should start as part of tomcat startup.
> Service : I want to expose a service as part of tomcat startup
> which can store all the active sessions for the application
> running on the server and when I call this service via RMI or HTTP
> (can expose anyhow) I get this information. This service will be
> used by other tomcat servers to know the information. Usage :
> tomcat_1 calls tomcat_2 (on a specific port at which service is
> exposed) for the given end point, let say, getListOfSessions and
> this will return the list.
> I want to know suggestion for implementing/exposing/configuring
> such a service/module.
> PS : I want to do this as part of tomcat service to keep changes
> transparent of application.
Why not just use the existing JMX beans to get that information? I
don't think you have to write anything new.
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-END PGP SIGNATURE-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org