Welcome Guest Search | Active Topics | Members | Log In | Register

.GetDestinationManager in WO.NET 5+ Options · View
shainefisher
Posted: Thursday, July 25, 2013 1:33:04 AM
Rank: Newbie Coder
Groups: Member

Joined: 7/25/2013
Posts: 1
Points: 3
Location: UK
I am currently looking at creating a client to client chat system and was looking at Publisher-Subscriber dynamic destinations solution in the manual. Sadly this sample does not work as the line:

ORBConfig.GetInstance().GetDataServices().GetDestinationManager().AddDestination( name, destination );

throws an error as GetDestinationManager is not available in the 5.x weborb.dl. It is however available in the 4.x dll but when i create the project using that version it throws an error after deploy. So I have 2 questions really, how do I do this in v 5.x? Or, what is a better solution for making a client to client chat system using weborb in Flex 4.7?

using System;

using Weborb.Config;
using Weborb.Messaging.PubSub;
using Weborb.Messaging.PubSub.Memory;

namespace Examples.Weborb
{
public class DynamicDestinationFactory
{
public static bool CreateMessagingDestination(String name)
{
MessagingDestination destination = new MessagingDestination( name );
MessagingServiceHandler serviceHandler = new MessagingServiceHandler();
serviceHandler.setStoragePolicy( typeof( MemoryStoragePolicy ).FullName );
serviceHandler.Initialize( destination );
destination.SetServiceHandler( serviceHandler );
ORBConfig.GetInstance().GetDataServices().GetDestinationManager().AddDestination( name, destination );

// the following code is needed only to show the destination in the Management Console
destination.ChannelName = "my-polling-amf";
FlexMessagingServiceConfig messagingConfig = FlexMessagingServiceConfig.Instance;
messagingConfig.FlexMessagingDestinations[ name ] = FlexMessagingDestination.getDestinationScope( destination );
return true;
}
}
}



Thanks, Shaine
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v4.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.072 seconds.