Search code examples
wso2jmswso2-cep

Unable to create JMS Receiver in WSO2 CEP


I am using WSO2 CEP v4.1.0. I have already created 1 JMS receiver and it works fine, And then I try to add another JMS receiver, Then one of error message alert was given by CEP, but no any carbon console messages were printed in console. Is this a bug of WSO2 CEP?

Error message screen cap is given below

enter image description here

Steps to reproduce the problem -

1.Create new JMS receiver with the following details (Above image with error message shows the filled data.)

  • Input Event Adapter Type -JMS
  • Topic/Queue Name - param3
  • JNDI Initial Context Factory Class - org.wso2.andes.jndi.PropertiesFileInitialContextFactory
  • Connection Factory JNDI Name- TopicConnectionFactory
  • JMS connection username - admin
  • JMS connection password - admin
  • JNDI Provider URL - repository/conf/jndi.properties
  • Destination Type - topic

2.Create another receiver with same details with different topic name

  • Topic/Queue Name - param4

3.jndi property that is used for both is

# register some connection factories
# connectionfactory.[jndiname] = [ConnectionURL]
connectionfactory.TopicConnectionFactory=amqp://admin:admin@clientid/carbon?brokerlist='tcp://localhost:5672'

# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]

# register some topics in JNDI using the form
# topic.[jndiName] = [physicalName]
topic.param1 = param1
topic.param2 = param2
topic.param3 = param3
topic.param4 = param4

4.Advanced property mapping has been done by according to the properties.


Solution

  • Saveendra,

    It is not an issue with JMS receiver or no of jms receivers.. It is an issue with MAP custom mapping where it does not allow to save a custom mapping without a default value.. It is an UI issue..

    I have fixed that issue now in this commit (and fix will be there in next release).. For the moment, add an appropriate default value for the custom mapping and continue (or deploy the event receiver through file system or use the edit UI)