Package org.atmosphere.plugin.rmi.test.org.atmoshere.cpr

Examples of org.atmosphere.plugin.rmi.test.org.atmoshere.cpr.DefaultBroadcasterFactoryForTest


        final Registry registry = LocateRegistry.createRegistry(4001);
        registry.bind(RMIBroadcastService.class.getSimpleName() + "/RMITopic", service);

        // Create broadcaster
        final AtmosphereConfig config = new AtmosphereFramework().getAtmosphereConfig();
        final DefaultBroadcasterFactory factory = new DefaultBroadcasterFactoryForTest(DefaultBroadcaster.class, "NEVER", config);
        config.framework().setBroadcasterFactory(factory);
        final Broadcaster broadcaster = factory.get(DefaultBroadcaster.class, "RMITopic");
        broadcaster.getBroadcasterConfig().addFilter(new RMIFilter());

        // Expect to receive the message in localhost:4001
        broadcaster.broadcast("Use RMI");
View Full Code Here

TOP

Related Classes of org.atmosphere.plugin.rmi.test.org.atmoshere.cpr.DefaultBroadcasterFactoryForTest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.