Coder Social home page Coder Social logo

siddhi-io / siddhi-io-jms Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 25.0 1.5 MB

Extension that used to receive and publish events via JMS Message

Home Page: https://siddhi-io.github.io/siddhi-io-jms/

License: Apache License 2.0

Java 100.00%
extension io jms message-broker message-queue messaging siddhi topic

siddhi-io-jms's People

Contributors

ajanthy avatar anugayan avatar chathurikaa avatar dilini-muthumala avatar dnwick avatar gimantha avatar gokul avatar grainier avatar kalaiyarasiganeshalingam avatar ksdperera avatar lakshanss avatar maheshika avatar mayuravaani avatar minudika avatar mohanvive avatar nisalaniroshana avatar niveathika avatar pcnfernando avatar rolandhewage avatar rukshiw avatar sajithshn avatar senthuran16 avatar suhothayan avatar sujanan avatar swsachith avatar tishan89 avatar wso2-jenkins-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

siddhi-io-jms's Issues

Map type "keyvalue" not working properly.

Description:
There is an issue when sending the events with mapping type "keyvalue" where the event key values are not mapping into siddhi event.

Steps to reproduce:

Steps:

  1. Setting up the JMS server and put the client jars.
  2. Deploy the siddhi app 1 and 2.
  3. Simulate the 'inMemoryStream', adn got the following ERROR message:
[2017-12-15 05:54:29,028] ERROR {org.wso2.extension.siddhi.map.keyvalue.sourcemapper.KeyValueSourceMapper} - Stream "SweetProductionStream" has an attribute named "name", but the received event {} does not has a value for that attribute. Hence dropping the message.

App1: source the JMS messages from the ActiveMQ server.

@App:name('ReceiveJMSInJsonFormat')
@source(type='jms',@map(type='keyvalue'),
factory.initial='org.apache.activemq.jndi.ActiveMQInitialContextFactory',
provider.url='tcp://localhost:61616',destination='SP_JMS_TEST', connection.factory.type='topic', 
connection.factory.jndi.name='TopicConnectionFactory',transport.jms.SubscriptionDurable='true',
transport.jms.DurableSubscriberClientID='wso2SPclient1')
define stream SweetProductionStream(name string, amount double);

from SweetProductionStream#log("Event: ")
insert into IgnoreOutputStream;

App2: simulate the stream and publish message into ActiveMQ server.

@App:name("SiddhiApp")
@app:description("Description of the plan")
@source(type='inMemory' , topic='option_value')
define stream inMemoryStream (name string, amount double);
@sink(type='jms',factory.initial='org.apache.activemq.jndi.ActiveMQInitialContextFactory', 
provider.url='tcp://localhost:61616',destination='SP_JMS_TEST', connection.factory.type='topic', connection.factory.jndi.name='TopicConnectionFactory', 
@map(type='keyvalue')) 
define stream jmsClientStream (name string, amount double);
from inMemoryStream
select name, amount
insert into jmsClientStream;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.