Re: OpenJMS default ConnectionFactory override

Tim Anderson <[email protected]> Tue, 16 Oct 2007 14:35:08 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
duckbill wrote:
> Hello.
>
> Is it possible for me to extend the default ConnectionFactory implementation
> provided by OpenJMS, and use that as my ConnectionFactory? If so, how?
>
> Thanks in advance,
> Jukka
>   
Not easily. In 0.7.7, the ConnectionFactory implementation is 
org.exolab.jms.client.JmsConnectionFactory.
Instances of this class get populated and bound in JNDI by 
org.exolab.jms.server.net.RemoteServerConnector.

You can either:
. extend JmsConnectionFactory and use it directly (i.e don't bind it in 
JNDI)
. extend RemoteServerConnector to bind your custom ConnectionFactory 
implementation and change
  org/exolab/jms/config/connectors.xml to refer to your new 
RemoteServerConnector implementation.

-Ti,m

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/