Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Data Services
Viewing all articles
Browse latest Browse all 58696

could not find MessageClient for clientId in pushMessageToClients

$
0
0

Hello everybody. I was stuck with unpleasent problem using LCDS 2.5.1 and theirs messaging service. My aim is sending real time messages to particular client which already subscribed to the defined destination within java code. I have following situation:

 

at first here is my messaging-config.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service" class="flex.messaging.services.MessageService">
    <adapters>
        <adapter-definition id="messagingAdapter"
            class="com.thomsonreuters.gip.messaging.impl.MessagingAdapterImpl" />
    </adapters>
    <destination id="realTimeMessaging">
        <adapter ref="messagingAdapter" />
        <channels>
            <channel ref="channel-rtmp" />
        </channels>
    </destination>
</service>

 

i am already know id of client consumer and pass it like input argument (Set clientIds)

actual sending performing in following method:

 

    protected void sendMessageToClients(Object msgBody, Set clientIds) {
        log.debug("send message to clients [ids = " + clientIds + ", message = " + msgBody + "]");

        // obtain message service by means of message broker
        MessageBroker messageBroker = MessageBroker.getMessageBroker(null);
        MessageService messageService = (MessageService) messageBroker.getService("message-service");

 

        // create async message with provided message body

        AsyncMessage message = createMessage(msgBody);

 

        // There I can sure that my client id (clientIds) present in message service subscribers id
        System.out.println(messageService.getSubscriberIds(message, true)); // this statement prints client id in wich i want to send message

        // Now push message to the clients (actualy one client)
        messageService.pushMessageToClients(clientIds, message, false);
    }

 

and realy this code doese nothing, message is not recieved by expected user and in logs of lcds a can see following line:

 

[LCDS]02/19/2010 15:29:59.567 [DEBUG] [Service.Message] Warning: could not find MessageClient for clientId in pushMessageToClients: [F88813EC-AC0A-EF4D-136CAE2F50EC44EB]

 

But id F88813EC-AC0A-EF4D-136CAE2F50EC44EB was already printed by this statement System.out.println(messageService.getSubscriberIds(message, true));

 

 

What I have missed? Or where I should look to resolve this issue?

Please help me


Viewing all articles
Browse latest Browse all 58696

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>