java - 2 Tomcat Instances - Communication between 2 applications -
i have 1 webserver 2 instances of tomcat running. on each tomcat instance have multiple web apps or web services.
what best way call function (or trigger event parameters) webapp of first tomcat server on webapp running on second tomcat server. if it's example call using url parameters call should secure , not accessible outside server.
i've read getting servlet context possible on different tomcat instances? im thinking possible webapps running in same instance.
i dont want use corba, rmi or soap because bit oversized problem ... im thinking :)
code examples welcome. thank you!
the servletcontext
valid within same container , can't shared between 2 jvms. simplest method you're asking use variety of rpc between 2 containers, , rmi doesn't seem particular overkill. other usual approach simple http web service (note lowercase "s") invokes logic in receiving container.
Comments
Post a Comment