KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.ArrayList JavaDoc;
10 import java.util.HashMap JavaDoc;
11 import java.util.List JavaDoc;
12 import javax.jms.Destination JavaDoc;
13
14 /**
15  * every destination has its own DeliveryManager
16  * DeliveryManager response store the messages, check the client alive and deliver message to it
17  *
18  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
19  */

20
21 public class Deliver {
22     private static Destination JavaDoc dest;
23
24     /**
25      * messages waiting for delivery
26      */

27     private List JavaDoc messages = new ArrayList JavaDoc();
28
29     /**
30      * messages have sent but not ackowneledge
31      */

32     private HashMap JavaDoc unacknowledgedMessages = new HashMap JavaDoc();
33
34
35     public static void main(String JavaDoc[] args) {
36
37     }
38 }
39
Popular Tags