commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin.Cr...@ubsw.com
Subject RE: cvs commit: jakarta-commons-sandbox/messenger/src/java/org/apac he/commons/messenger MessengerDigester.java
Date Tue, 13 Nov 2001 13:03:14 GMT

Ah. I see you have added a SetProperties rule :-)

C.

> -----Original Message-----
> From: jstrachan 
> Sent: 13 November 2001 12:46
> To: jakarta-commons-sandbox-cvs
> Cc: jstrachan
> Subject: cvs commit:
> jakarta-commons-sandbox/messenger/src/java/org/apache/commons/
> messenger
> MessengerDigester.java
> 
> 
> jstrachan    01/11/13 04:46:10
> 
>   Modified:    messenger/src/java/org/apache/commons/messenger
>                         MessengerDigester.java
>   Log:
>   Added digester support for custom ConnectionFactory implemetnations
>   
>   Revision  Changes    Path
>   1.4       +10 -2     
> jakarta-commons-sandbox/messenger/src/java/org/apache/commons/
> messenger/MessengerDigester.java
>   
>   Index: MessengerDigester.java
>   ===================================================================
>   RCS file: 
> /home/cvs/jakarta-commons-sandbox/messenger/src/java/org/apach
e/commons/messenger/MessengerDigester.java,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- MessengerDigester.java	2001/11/13 09:42:27	1.3
>   +++ MessengerDigester.java	2001/11/13 12:46:10	1.4
>   @@ -5,7 +5,7 @@
>     * version 1.1, a copy of which has been included with 
> this distribution in
>     * the LICENSE file.
>     * 
>   - * $Id: MessengerDigester.java,v 1.3 2001/11/13 09:42:27 
> jstrachan Exp $
>   + * $Id: MessengerDigester.java,v 1.4 2001/11/13 12:46:10 
> jstrachan Exp $
>     */
>    package org.apache.commons.messenger;
>    
>   @@ -15,7 +15,7 @@
>      * that JMS Messengers can be created from an XML config file.</p>
>      *
>      * @author <a href="mailto:jstrachan@apache.org">James 
> Strachan</a>
>   -  * @version $Revision: 1.3 $
>   +  * @version $Revision: 1.4 $
>      */
>    public class MessengerDigester extends Digester {
>    
>   @@ -23,6 +23,7 @@
>        private String messengerManagerClass = 
> "org.apache.commons.messenger.MessengerManager";
>        private String messengerClass = 
> "org.apache.commons.messenger.DefaultMessenger";
>        private String sessionFactory = 
> "org.apache.commons.messenger.SessionFactory";
>   +    private String connectionFactory = 
> "org.apache.commons.messenger.DummyConnectionFactory";
>        private String jndiSessionFactory = 
> "org.apache.commons.messenger.JNDISessionFactory";
>    
>        
>   @@ -54,12 +55,19 @@
>            );        
>            
>            addObjectCreate( "manager/messenger/factory", 
> sessionFactory, "className" );
>   +        addSetProperties( "manager/messenger/factory" );
>            addSetNext( "manager/messenger/factory", 
> "setSessionFactory",
>               "org.apache.commons.messenger.SessionFactory"
>            );
>            addCallMethod( 
> "manager/messenger/factory/property", "addProperty", 2);
>            addCallParam( 
> "manager/messenger/factory/property/name", 0 );
>            addCallParam( 
> "manager/messenger/factory/property/value", 1 );
>   +        
>   +        addObjectCreate( 
> "manager/messenger/factory/connectionFactory", 
> connectionFactory, "className" );
>   +        addSetProperties( 
> "manager/messenger/factory/connectionFactory" );
>   +        addSetNext( 
> "manager/messenger/factory/connectionFactory", "setConnectionFactory",
>   +           "javax.jms.ConnectionFactory"
>   +        );
>    
>            
>            addObjectCreate( "manager/messenger/jndi", 
> jndiSessionFactory, "className" );
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   
<mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: 
<mailto:commons-dev-help@jakarta.apache.org>



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message