KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > jms > JMSConnectionRemote


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.jms;
8
9 import java.rmi.Remote JavaDoc;
10 import java.rmi.RemoteException JavaDoc;
11 import javax.jms.JMSException JavaDoc;
12
13 import org.jfox.jms.message.JMSMessage;
14
15 /**
16  * client connection is a remote object
17  * <p/>
18  * so server call call back when client receive message async
19  *
20  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
21  */

22
23 public interface JMSConnectionRemote extends Remote JavaDoc {
24
25     /**
26      * the callback method when client receive message async
27      *
28      * @param msg
29      */

30     void onMessage(String JavaDoc sessionId, String JavaDoc consumerId, JMSMessage msg) throws RemoteException JavaDoc, JMSException JavaDoc;
31
32 }
33
Popular Tags