Wednesday, 8 June 2016

EMS messaging Models


Ans) we have 3 messaging models
  1. Point-to-Point (Queues)
  2. Publish Subscribe (Topics)
  3. Multicast (Topics)
Point-to-Point (Queues)



Publish Subscribe (Topics)





Multicast (Topics)

Monday, 6 June 2016

BW-JMS-100015/100039 Activation error with process starter [TEST.process]
caused by: Could not create queue message receiver.[Destination=Queue[qsample1], Selector=null]
caused by: javax.jms.InvalidDestinationException: Not allowed to create destination



Ans) It can be just an error on username and password or the user does not have permissions to create queues/topics.

Below are the steps to give permissions to the user to create destinations dynamically in TIBCO Designer during run time:
1.Start TIBCO EMS Server.
2.Login to TIBCO EMS Administrator Tool using admin user.
3.Once connected then run below command to check available Queues/topics.
show queues/topics

4.You can see that there is no queue/topic available with the name '>'
5.Create one topic with below command.
create queue >
create topic >

6.Now Try to connect your dynamic topic using your code you should be able to connect to EMS Environment and can create dynamic topic.

BW-JMS-100005 process initialization failed for TEST.process
caused by: Initialization error in [TEST.process/JMS Queue Requestor]
caused by: Could not create connection with JMS server.[   Queue Connection Factory = QueueConnectionFactory
   JNDI Context URL = tibjmsnaming://localhost:7222
   JNDI Context Factory = com.tibco.tibjms.naming.TibjmsInitialContextFactory
]
caused by: javax.naming.NameNotFoundException: Name not found: 'QueueConnectionFactory'





Ans)
If you are using Tibco JMS for the first time, you need to create GenericConnectionFactory , QueueConnectionFactory and TopicConnectionFactory in EMS Administrative Tool. Make sure you add special character ">" in your ems queues.conf and topic.conf files.


Command to create Generic:


create factory GenericConnectionFactory generic URL=tcp://7222


Command to create Queue:


create factory QueueConnectionFactory queue URL=tcp://7222


Command to create Topic:


create factory TopicConnectionFactory topic URL=tcp://7222