Skip navigation
Currently Being Moderated

Blazeds dynamic destination

Jan 31, 2012 1:11 AM

Tags: #flex #dynamic #blazeds #destination

I'm trying to create dynamic destinations using BlazeDS. To start with I used the 'Feed' sample that comes with BlazeDS. It has a destination defined as 'feed' in messaging-config.xml. Now I commented the destination in messaging-config.xml and added the following code in Feed.java, to create dynamic destination

MessageService service = (MessageService) msgBroker.getService("message-service");
Destination destination = service.createDestination("feed");
if (service.isStarted()) {
   destination.start();
   System.out.println("Started destination....");
}

On the Java side it doesn't throw any error. But this doesn't work on the Flex side as it doesn't find the dynamically created destination.

 
Replies
  • Currently Being Moderated
    Jan 31, 2012 3:51 AM   in reply to Rakesh3211

    BlazeDS contains a sample that illustrates how the dynamic messaging destination is created and used from Flex. The sample is called runtimeconfig-messaging. You can use that as a template to get your particular destination working.

     

    Rohit

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points