CVS update: JGroups/src/org/jgroups/protocols STOMP.java
"Bela Ban" <[email protected]> Sat, 30 Oct 2010 11:07:02 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/10/30 11:07:02
Modified: src/org/jgroups/protocols Tag: Branch_JGroups_2_10
STOMP.java
Log:
added endpoint_addr
Revision Changes Path
No revision
No revision
1.23.2.3 +5 -2 JGroups/src/org/jgroups/protocols/STOMP.java
Index: STOMP.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/STOMP.java,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -u -r1.23.2.2 -r1.23.2.3
--- STOMP.java 30 Oct 2010 09:42:21 -0000 1.23.2.2
+++ STOMP.java 30 Oct 2010 11:07:02 -0000 1.23.2.3
@@ -26,7 +26,7 @@
* todo: add PING to test health of client connections
* <p/>
* @author Bela Ban
- * @version $Id: STOMP.java,v 1.23.2.2 2010/10/30 09:42:21 belaban Exp $
+ * @version $Id: STOMP.java,v 1.23.2.3 2010/10/30 11:07:02 belaban Exp $
* @since 2.11
*/
@MBean(description="Server side STOPM protocol, STOMP clients can connect to it")
@@ -42,6 +42,9 @@
systemProperty={Global.STOMP_BIND_ADDR},writable=false)
protected InetAddress bind_addr=null;
+ @Property(description="If set, then endpoint will be set to this address",systemProperty=Global.STOMP_ENDPOINT_ADDR)
+ protected String endpoint_addr;
+
@Property(description="Port on which the STOMP protocol listens for requests",writable=false)
protected int port=8787;
@@ -107,7 +110,7 @@
acceptor.start();
}
- endpoint=getAddress();
+ endpoint=endpoint_addr != null? endpoint_addr : getAddress();
}
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev