KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > oracle > jms > OracleJmsMessageReceiver


1 /*
2  * $Id: OracleJmsMessageReceiver.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
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.apache.commons.logging.Log;
14 import org.apache.commons.logging.LogFactory;
15 import org.mule.providers.jms.JmsConnector;
16 import org.mule.providers.jms.TransactedJmsMessageReceiver;
17 import org.mule.umo.UMOComponent;
18 import org.mule.umo.endpoint.UMOEndpoint;
19 import org.mule.umo.lifecycle.InitialisationException;
20 import org.mule.umo.provider.UMOConnector;
21
22 /**
23  * @author <a HREF="mailto:carlson@hotpop.com">Travis Carlson</a>
24  */

25 public class OracleJmsMessageReceiver extends TransactedJmsMessageReceiver
26 {
27
28     public OracleJmsMessageReceiver(UMOConnector connector, UMOComponent component, UMOEndpoint endpoint)
29         throws InitialisationException
30     {
31         super(connector, component, endpoint);
32     }
33
34     /**
35      * Save a copy of the endpoint's properties within the OracleJmsSupport object.
36      *
37      * @see OracleJmsSupport#endpointProperties
38      */

39     protected void createConsumer() throws Exception JavaDoc
40     {
41         ((OracleJmsSupport)((JmsConnector)getConnector()).getJmsSupport()).setEndpointProperties(endpoint.getProperties());
42         super.createConsumer();
43     }
44
45     public void poll() throws Exception JavaDoc
46     {
47         log.trace("Polling...");
48         super.poll();
49     }
50
51     private static Log log = LogFactory.getLog(OracleJmsMessageReceiver.class);
52 }
53
Popular Tags