ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » get LocalEnvironment valueinside MQTTPub Connector(GitHub) ?

Post new topic  Reply to topic
 get LocalEnvironment valueinside MQTTPub Connector(GitHub) ? « View previous topic :: View next topic » 
Author Message
rkrgarlapati
PostPosted: Sat Apr 11, 2015 4:50 am    Post subject: get LocalEnvironment valueinside MQTTPub Connector(GitHub) ? Reply with quote

Newbie

Joined: 11 Apr 2015
Posts: 1

Hi,

Could you please help on this ?

Working on IIB 9.0.0.3

I have set the value in Local Environment as below (in Java Compute Node):

Code:
contact admin.getLocalEnvironment().getRootElement().createElementAsFirstChild(MbJSON.OBJECT, "Topic", "/test/topic");


I want to read this value inside
Code:
class MQTTOutputInteraction extends OutputInteraction {
   @Override
    public Properties send(Properties overrideProps, OutputRecord record) throws MbException {
      MbElement mbElement  = record.getDataLocation();
      ???// Not sure what to keep here so that i can get 'Topic' value.
 }
}


Really struggling to figure it out.

Thanks!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Apr 13, 2015 5:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The path to the element is the same when you are writing it as when you are reading it.

What, exactly, is the actual problem you are having?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » get LocalEnvironment valueinside MQTTPub Connector(GitHub) ?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.