View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.jms.config;
8   
9   import org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser;
10  import org.mule.transport.jms.JmsConnector;
11  
12  import javax.jms.Session;
13  
14  public class JmsConnectorDefinitionParser  extends MuleOrphanDefinitionParser
15  {
16  
17      public JmsConnectorDefinitionParser()
18      {
19          this(JmsConnector.class);
20      }
21  
22      public JmsConnectorDefinitionParser(Class clazz)
23      {
24          super(clazz, true);
25          addMapping("acknowledgementMode",
26              "AUTO_ACKNOWLEDGE=" + Session.AUTO_ACKNOWLEDGE + "," +
27              "CLIENT_ACKNOWLEDGE=" + Session.CLIENT_ACKNOWLEDGE + "," +
28              "DUPS_OK_ACKNOWLEDGE=" + Session.DUPS_OK_ACKNOWLEDGE);
29      }
30      
31  }