tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Vishwanathan <vdeepak_jobs_internsh...@yahoo.com>
Subject Re: Urgent Requirement
Date Wed, 28 Apr 2004 19:07:27 GMT
Hi everyone,
 
Thank you very much for the responses. 
 
The scenario is like I want to write a class that can be remotely invoked using JMS / RMI
technology. This class will be solely responsible for fetching the data from the database,
with connection pooling capabilities.
 
Any component that needs data from the database connects to the above mentioned class.
 
If I were to write such a Java class (component), is there any popular open source project
package designed specifically to facilitate such a class.
 
The constraint is that package should be free for redistribution.
 
Thanks
Deepak 
 
 
 


Peter Lin <tcw00lfel@yahoo.com> wrote:

I believe the features you're looking for are available on EJB containers. For example, weblogic
can manage a pool of connections and front end webservers can use that pool. 

when you say "can these two communicate" what exactly is the goal? Filip's recommendations
are good in general, but the learning curve may be steep if you've never use RMI or aren't
familiar with RPC.

based on what you said, it sounds like you have some objects that contain shared data. If
that is the case, make sure caching the data on both servers absolutely isn't an option before
using EJB's. If caching the objects locally is sufficient, it will save you the cost of learning
EJB's. 

peter lin


Filip Hanik - Dev wrote:
several different ways, but this is not a tomcat related question

1. HTTP, set up a servlet/jsp on one server, and object on machine two can invoke the servlet,
then the servlet can invoke the
object on machine one.

2. RMI, read up on RMI

3. Straight TCP, but you probably dont want to do this :)


----- Original Message -----
From: "Deepak Vishwanathan" 
To: 
Sent: Wednesday, April 28, 2004 11:33 AM
Subject: Urgent Requirement


I have 2 machines. Both of them have Tomcat running. There is a java object in the first Tomcat
environment and a java object in the
second Tomcat environment(different machines). Can these 2 java objects communicate using
Tomcat framework?

Is there a way to configure this?

The second java object uses connection pooling capability of Tomcat.

Any early response will be highly appreciated.

Regards,
Deepak





---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 
		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message