[jboss-dev-forums] [JBoss AS Development] - Re: Naming over Remoting 3
david.lloyd@jboss.com
do-not-reply at jboss.com
Mon Nov 23 18:04:09 EST 2009
"ron.sigal at jboss.com" wrote : point.connect()? I.e., keep a repository of reusable connections, keyed on URI and OptionMap?
It seems inevitable that we'll need a connection pooling mechanism, but maybe it'd be better to do by name (e.g. a named index into a predefined connection configuration map), so you could, for example, have:
| Connection c = pool.getConnection("foobar");
|
Then if the named connection is configured but not connected, it would be connected; otherwise if it's already connected, the existing connection is returned.
This way you may have multiple, identical connections with different names, if that is desired.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267175#4267175
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267175
More information about the jboss-dev-forums
mailing list