MessageBroker.getMessageBroker(null) getting null pointer Exception

Posted by Shital on Stack Overflow See other posts from Stack Overflow or by Shital
Published on 2010-06-12T10:16:53Z Indexed on 2010/06/12 10:23 UTC
Read the original article Hit count: 245

Filed under:

I am creating Dynamic Destinations

MessageBroker broker = MessageBroker.getMessageBroker(null);

        MessageService service = (MessageService) broker.getService("message-service");
        MessageDestination destination = (MessageDestination) service.createDestination("Group1");

        if (service.isStarted()) {
            destination.start();
        }

But I am getting Null Pointer Exception MessageBroker broker = MessageBroker.getMessageBroker(null);

Can Anyone Help Me

© Stack Overflow or respective owner

Related posts about flex