At 11:11 22/3/01 -0800, John H. Lee wrote:
>
>I have a need to establish outbound connections and manage/dispatch them in
>a way similar to the way
>ConnectionHandler/ConnectionHandlerFactory/ConnectionManager handles inbound
>connections.
>
>Would others find this useful? (or have I overlooked some existing
>functionality in Cornerstone?)
What you are looking for is
org.apache.cornerstone.services.sockets.SocketManager sm = ..;
Socket s = sm.getSocketFactory("plain").createSocket( address, port );
You have to place an entry in conf file
<client-sockets>
<factory name="plain"
class="org.apache.cornerstone.blocks.sockets.DefaultSocketFactory" />
</client-sockets>
So in theory you just need to add an extra entry to conf file and create a
class that implements
org.apache.cornerstone.services.sockets.SocketFactory
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]