KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > providers > ejb > EjbMessageReceiver


1 /*
2  * $Id: EjbMessageReceiver.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.ejb;
12
13 import org.apache.commons.logging.Log;
14 import org.apache.commons.logging.LogFactory;
15 import org.mule.providers.rmi.RmiMessageReceiver;
16 import org.mule.umo.UMOComponent;
17 import org.mule.umo.endpoint.UMOEndpoint;
18 import org.mule.umo.lifecycle.InitialisationException;
19 import org.mule.umo.provider.UMOConnector;
20
21 /**
22  * Will repeatedly call a method on an EJB object. If the method takes parameters A
23  * List of objects can be specified on the endpoint called
24  * <code>methodArgumentsList</code>, If this property is ommitted it is assumed
25  * that the method takes no parameters
26  */

27
28 public class EjbMessageReceiver extends RmiMessageReceiver
29 {
30     protected transient Log logger = LogFactory.getLog(EjbMessageReceiver.class);
31
32     public EjbMessageReceiver(UMOConnector connector,
33                               UMOComponent component,
34                               UMOEndpoint endpoint,
35                               Long JavaDoc frequency) throws InitialisationException
36     {
37         super(connector, component, endpoint, frequency);
38
39         this.connector = (EjbConnector)connector;
40     }
41 }
42
Popular Tags