Difference between revisions of "Java"

From Open Rail Data Wiki
Jump to navigation Jump to search
m (categorisation)
m (Redirected to new Java examples page)
Line 1: Line 1:
==Gorizza Stomp library==
#REDIRECT [[Java_Examples]]
This code requires the [http://www.germane-software.com/software/Java/Gozirra/ Gozirra Stomp library].
private static void go() throws Exception
        final Client c = new Client(Constants.SERVER, Constants.PORT, Constants.USERNAME, Constants.PASSWORD);
        for (final String topic : Constants.TOPICS)
            System.out.println("  " + topic);
            c.subscribe("/topic/" + topic,
                    new Listener()
                        public void message(Map map, String s)
                            processMessage(map, s);
        System.out.println("done subscribing");
[[Category:Network Rail Data Feeds]]

Latest revision as of 17:54, 9 July 2013

Redirect to: