01: /*
02: * $Id: EjbMessageReceiver.java 10961 2008-02-22 19:01:02Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.ejb;
12:
13: import org.mule.api.endpoint.InboundEndpoint;
14: import org.mule.api.lifecycle.CreateException;
15: import org.mule.api.service.Service;
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>methodArgumentsList</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: public EjbMessageReceiver(Connector connector, Service service,
29: InboundEndpoint endpoint, long frequency)
30: throws CreateException {
31: super (connector, service, endpoint, frequency);
32:
33: this .connector = (EjbConnector) connector;
34: }
35:
36: }
|