Tomasz
Tomasz

Reputation: 1040

Spring JMS: Connection Factory for unknown provider

Maybe it is a extreme newbie question, but:

I'm about to implement sending a message to a queue. The problem is, all I know is that it is a JMS Queue, but no idea, which implementation (it is just called ESB).

So now I have to have a connectionFactory bean, and all examples I saw use ActiveMqConnectionFactory. Is there any generic factory/implementation? JMS is a standard, so I should not be bound to some specific factory implementation, right?

Upvotes: 0

Views: 1046

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121552

Correct. What you need is javax.jms.ConnectionFactory and javax.jms.Destination. However, as you say it is ESB, there should some connection properties to the server, e.g. JNDI, or some service-locator to connect to the bus and call appropriate service.

Actually not enough info, what you have in hands regarding that ESB

Upvotes: 0

Related Questions