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