1 /* 2 * $Id: EjbMessageReceiver.java 10961 2008-02-22 19:01:02Z dfeist $ 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.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 29 public EjbMessageReceiver(Connector connector, 30 Service service, 31 InboundEndpoint endpoint, 32 long frequency) throws CreateException 33 { 34 super(connector, service, endpoint, frequency); 35 36 this.connector = (EjbConnector) connector; 37 } 38 39 }