RE: ActiveMQ custom plugin

2018-03-05 Thread Tim Bain
Thanks in Advance Regards, Bharat Gupta -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 2 februari 2018 14:29 To: ActiveMQ Users Subject: RE: ActiveMQ custom plugin OK, great. In that case you would probably want to make a custom p

RE: ActiveMQ custom plugin

2018-03-05 Thread Gupta Bharat
il.com] On Behalf Of Tim Bain Sent: den 2 februari 2018 14:29 To: ActiveMQ Users Subject: RE: ActiveMQ custom plugin OK, great. In that case you would probably want to make a custom processor in Camel that transforms the message however you need it to, and insert the processor in the route before

RE: ActiveMQ custom plugin

2018-02-02 Thread Tim Bain
rom: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 2 februari 2018 07:06 To: ActiveMQ Users Subject: RE: ActiveMQ custom plugin Let's go back to basics. Are you using 5.x or Artemis? You say you're routing messages from ActiveMQ to IBM MQ. How is that being don

RE: ActiveMQ custom plugin

2018-02-02 Thread Gupta Bharat
.@scania.com -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 2 februari 2018 07:06 To: ActiveMQ Users Subject: RE: ActiveMQ custom plugin Let's go back to basics. Are you using 5.x or Artemis? You say you're routing message

RE: ActiveMQ custom plugin

2018-02-01 Thread Tim Bain
eMQ to publish it on Topic Demo instead of message with jwtToken value. I Hope I am able to explain you better :) Regards, Bharat Gupta -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 1 februari 2018 15:02 To: ActiveMQ Users Cc:

Re: ActiveMQ custom plugin

2018-02-01 Thread Bruce Snyder
t;:"grte","attachments":[]}} > > > I need *Demo* to be added in headers and remove jwtToken from message. I > removed it. But what method I can use in ActiveMQ to publish it on Topic > Demo instead of message with jwtToken value. > > I Hope I am able to explain

RE: ActiveMQ custom plugin

2018-02-01 Thread Gupta Bharat
from message. I removed it. But what method I can use in ActiveMQ to publish it on Topic Demo instead of message with jwtToken value. I Hope I am able to explain you better :) Regards, Bharat Gupta -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of

RE: ActiveMQ custom plugin

2018-02-01 Thread Tim Bain
> >> I am validating the message by validating the jwt token. I don’t want >> jwtToken field in message once I have validate it and used following to >> remove it: >> >> for (JsonNode jsonNode : jsonNodeRoot) { >> if (jsonNode instanceof ObjectNod

RE: ActiveMQ custom plugin

2018-02-01 Thread Tim Bain
sonNode instanceof ObjectNode) { >ObjectNode o = (ObjectNode) jsonNode; >o.remove("jwtToken"); > >} > } > > But how to publish a message on topic once I have done the following > checks on it? What method I can use

RE: ActiveMQ custom plugin

2018-02-01 Thread Gupta Bharat
can use here? Also I wish to add certain attributes in the message header and then publish on the topic how I can do that also? Thank You in Advance Regards, Bharat Gupta -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 2 januari 2018 06

Re: ActiveMQ custom plugin

2018-01-01 Thread Tim Bain
>> know method on which we can call that Plugin. >> >> Also do we have to use Artemis here to achieve this? >> >> Thanks In Advance >> >> Regards, >> Bharat Gupta >> Development & Support | Platform Technician, IXCB | Scania IT >> Mobile:

Re: ActiveMQ custom plugin

2017-12-13 Thread Tim Bain
t; Mobile: +46700869007, +91-9718483802 > bharat.gu...@scania.com<mailto:bharat.gu...@scania.com> > > -Original Message----- > From: tbai...@gmail.com<mailto:tbai...@gmail.com> [mailto: > tbai...@gmail.com] On Behalf Of Tim Bain > Sent: Tuesday, December 5, 2017 7

Re: ActiveMQ custom plugin

2017-12-12 Thread Gupta Bharat
Users mailto:users@activemq.apache.org>> Cc: users-ow...@activemq.apache.org<mailto:users-ow...@activemq.apache.org> Subject: RE: ActiveMQ custom plugin I'd suggest that you store your cache of known credentials in your plugin. I'm not sure that you'd have access to the web sess

RE: ActiveMQ custom plugin

2017-12-12 Thread Tim Bain
at.gu...@scania.com > > -Original Message- > From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain > Sent: Tuesday, December 5, 2017 7:29 PM > To: ActiveMQ Users > Cc: users-ow...@activemq.apache.org > Subject: RE: ActiveMQ custom plugin > >

RE: ActiveMQ custom plugin

2017-12-12 Thread Gupta Bharat
: RE: ActiveMQ custom plugin I'd suggest that you store your cache of known credentials in your plugin. I'm not sure that you'd have access to the web session from a plugin, because that's MQTT-specific, so I think your best bet would be to store it in a Map (better: a Guava cache,

RE: ActiveMQ custom plugin

2017-12-05 Thread Tim Bain
time user > sends me message on activemq using mqtt or web socket I need to check the > message header with the users stored in contextsession or from some object. > If user is present then we validate else we don’t. > > > Regards, > Bharat Gupta > Development & Support | Pla

RE: ActiveMQ custom plugin

2017-12-05 Thread Gupta Bharat
Bharat Gupta Development & Support | Platform Technician, IXCB | Scania IT Mobile: +46700869007, +91-9718483802 bharat.gu...@scania.com -Original Message- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: den 29 november 2017 04:20 To: ActiveMQ Users Cc: use

RE: ActiveMQ custom plugin

2017-11-28 Thread Tim Bain
(); System.out.println("messageText = " + messageText); } } catch (JMSException e) { //Handle the exception appropriately } } Regards, Bharat Gupta Development & Support | Platform Tech

RE: ActiveMQ custom plugin

2017-11-28 Thread Gupta Bharat
} > > if(logger.isInfoEnabled()){ > logger.info("This is info > : " + parameter); > } > > logger.warn("This is warn : &

Re: ActiveMQ custom plugin

2017-11-26 Thread Tim Bain
is warn : " + parameter); > logger.error("This is error : " + > parameter); > logger.fatal("This is fatal : " + > parameter); > > } > > public Broker instal

RE: ActiveMQ custom plugin

2017-11-26 Thread Gupta Bharat
} } The above are two classes I have implemented for my custom plugin. Regards, Bharat Gupta Development & Support | Platform Technician, IXCB | Scania IT Mobile: +46700869007, +91-9718483802 bharat.gu...@scania.com<mailto:bharat.gu...@scania.com> From: tbai...@gm

RE: ActiveMQ custom plugin

2017-11-25 Thread Tim Bain
sage- From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain Sent: Friday, November 24, 2017 7:19 PM To: ActiveMQ Users Cc: users-ow...@activemq.apache.org Subject: RE: ActiveMQ custom plugin 1. Your send() method needs to call super.send() after doing your custom work,

RE: ActiveMQ custom plugin

2017-11-24 Thread Gupta Bharat
Sent: Friday, November 24, 2017 7:19 PM To: ActiveMQ Users Cc: users-ow...@activemq.apache.org Subject: RE: ActiveMQ custom plugin 1. Your send() method needs to call super.send() after doing your custom work, otherwise the message will never be sent to the real Broker object. Please review the

RE: ActiveMQ custom plugin

2017-11-24 Thread Tim Bain
inal Message- > From: tbai...@gmail.com [mailto:tbai...@gmail.com] On Behalf Of Tim Bain > Sent: Friday, November 24, 2017 7:15 PM > To: ActiveMQ Users > Cc: users-ow...@activemq.apache.org > Subject: Re: ActiveMQ custom plugin > > As I said in your other thread, you would d

RE: ActiveMQ custom plugin

2017-11-24 Thread Gupta Bharat
Cc: users-ow...@activemq.apache.org Subject: Re: ActiveMQ custom plugin As I said in your other thread, you would do that by implementing code in the send() method of your subclass of BrokerFilter, which you would create and return in your installPlugin() method. Tim On Nov 24, 2017 3:51 AM, "Gupta Bha

Re: ActiveMQ custom plugin

2017-11-24 Thread Tim Bain
As I said in your other thread, you would do that by implementing code in the send() method of your subclass of BrokerFilter, which you would create and return in your installPlugin() method. Tim On Nov 24, 2017 3:51 AM, "Gupta Bharat" wrote: Hello, I have a scenario as follows: 1. I h

ActiveMQ custom plugin

2017-11-24 Thread Gupta Bharat
Hello, I have a scenario as follows: 1. I have Custom Plugins that decrypts the data and validates it. 2. I am getting Encrypted data (token) from user that need to be decrypted on custom plugin. 3. Client is accessing the broker using mqtt protocol Need Solution for the fo