View Javadoc

1   /*
2    * $Id: OracleJmsMessageReceiver.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.providers.oracle.jms;
12  
13  import org.mule.providers.jms.JmsConnector;
14  import org.mule.providers.jms.XaTransactedJmsMessageReceiver;
15  import org.mule.umo.UMOComponent;
16  import org.mule.umo.endpoint.UMOEndpoint;
17  import org.mule.umo.lifecycle.InitialisationException;
18  import org.mule.umo.provider.UMOConnector;
19  
20  import org.apache.commons.logging.Log;
21  import org.apache.commons.logging.LogFactory;
22  
23  public class OracleJmsMessageReceiver extends XaTransactedJmsMessageReceiver
24  {
25  
26      public OracleJmsMessageReceiver(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint)
27          throws InitialisationException
28      {
29          super(connector, component, endpoint);
30      }
31  
32      /**
33       * Save a copy of the endpoint's properties within the OracleJmsSupport object.
34       * 
35       * @see OracleJmsSupport#endpointProperties
36       */
37      protected void createConsumer() throws Exception
38      {
39          ((OracleJmsSupport)((JmsConnector)getConnector()).getJmsSupport()).setEndpointProperties(endpoint.getProperties());
40          super.createConsumer();
41      }
42  
43      public void poll() throws Exception
44      {
45          log.trace("Polling...");
46          super.poll();
47      }
48  
49      private static Log log = LogFactory.getLog(OracleJmsMessageReceiver.class);
50  }