View Javadoc

1   /*
2    * $Id: EjbMessageReceiver.java 19191 2010-08-25 21:05:23Z tcarlson $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.transport.ejb;
12  
13  import org.mule.api.construct.FlowConstruct;
14  import org.mule.api.endpoint.InboundEndpoint;
15  import org.mule.api.lifecycle.CreateException;
16  import org.mule.api.transport.Connector;
17  import org.mule.transport.rmi.RmiMessageReceiver;
18  
19  /**
20   * Will repeatedly call a method on an EJB object. If the method takes parameters A
21   * List of objects can be specified on the endpoint called
22   * <code>methodArgumentTypes</code>, If this property is ommitted it is assumed
23   * that the method takes no parameters
24   */
25  
26  public class EjbMessageReceiver extends RmiMessageReceiver
27  {
28  
29      public EjbMessageReceiver(Connector connector,
30                                FlowConstruct flowConstruct,
31                                InboundEndpoint endpoint,
32                                long frequency) throws CreateException
33      {
34          super(connector, flowConstruct, endpoint, frequency);
35  
36          this.connector = (EjbConnector) connector;
37      }
38  
39  }