On Sat, 21 Jul 2001, Jim Archer wrote:

> Hi All...
> 
> I have a functional need to keep a persistent network connection (via a TCP 
> socket) to another machine. I would like to do this from a session bean if 
> possible, but I really need to avoid the overhead of opening and closing 
> the connection each time I need to talk to that other computer.
> 
> SInce I have no control over when a session bean is passivated, I think I 
> may have no control over this. Is there a way I can do this?
> 
> If not, I would appreciate any suggestions for an alternative method of 
> doing this.


It appears that the solution to every other problem is a custom MBean, so
I'll suggest using a custom MBean ;). 

Furthermore, I'm by no means an expert on the connector doodah, but isn't
this pretty much what it's for? Couldn't you write a custom connector and
access the other machine through that resource?

Depending on the nature of the other system I suppose the session bean
could communicate through a JMS queue, but that depends on the manner of
communication. The receiving end of the queue could be a proxy running in
another JVM and doing all the necessary networking stuff.


Cheers



-----------------------------------------------------------------------
Per Lewau ([EMAIL PROTECTED]) 

"Why waste time learning, when ignorance is instantaneous?"
                                                - Hobbes


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to