1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.backsource.amsterdam.service.protocol;
21
22 import org.backsource.amsterdam.service.ServiceMessage;
23 import org.backsource.amsterdam.service.ServiceException;
24
25 /***
26 Minimum interface a RECProtocolHandler must support.
27
28 The basic logic is that the ProtocolHandlerFactory is responsible for making
29 one or more RECProtocolHandlers available to the service calling into the amsterdam chain. This might be done be registering the handler in JNDI and letting the caller look it up and call, or by the factory sharing a service which holds a reference to the handler.
30 *
31 * @author <a href="mailto:pra@mogul.com">Peter Antman</a>
32 * @version $Revision: 1.1.1.1 $
33 */
34
35 public interface RECProtocolHandler extends ProtocolHandler {
36 /***
37 * Send a service message down the chain.
38 *
39 * The object invoking this method has NO responisbility to treat stuff like the container invoker, InvokerWorker and Worker queues. It is up to the protocol handler in question to do this sort of things.
40 *
41 * A good behaving handler should set the context classloader to that of
42 * the service.
43 */
44 public void onMessage(ServiceMessage message) throws ServiceException;
45
46 /***
47 * Each handler should have a unique name (much like an url for a getter).
48 */
49 public String getName();
50
51 }