Look at AddDataTest:
| JChannel c=new JChannel(properties);
| Map m=new HashMap();
| m.put("additional_data", new byte[]{'b', 'e', 'l', 'a'});
| c.down(new Event(Event.CONFIG, m));
| c.connect("bla");
| IpAddress addr=(IpAddress)c.getLocalAddress();
| System.out.println("address is " + addr);
| assertNotNull(addr.getAdditionalData());
| assertEquals(addr.getAdditionalData()[0], 'b');
|
IpAddress.getAdditionalData() returns a byte[] buffer, that you can use
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895438#3895438
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895438
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user