Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing classes in other JVM

 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

need some help people...
I've an application deployed in tomcat and some java services on the same m/c. Now I want that java service should be able to invoke the classes running in the application deployed in tomcat. Note they both are runnning in different JVM's.

Any suggestions...

Thanks
Ajju
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI would be one way of doing it. Since you have Tomcat running already, you might also look into web services.
[ October 21, 2005: Message edited by: Ulf Dittmer ]
 
Ajju Chawla
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,
thanx for uor reply...I was wondering can i use JNDI to access those classes in the tomcat. The idea is that classes outside tomcat will call the JNDI service of tomcat and than those tomcat classes can be invoked.

what do u think as Iam not sure that tomcat provides such a JNDI service..

Thanks
Ajju
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI, as its name implies, is a naming and directory service, not a remote access service. You can use it in your app to look up a service that connects to a remote Tomcat, but you still need to implement that service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic