Which is better: PooledConnectionFactory or CachingConnectionFactory?

From here: The difference between the PooledConnectionFactory and the CachingConnectionFactory is a difference in implementation. Below are some of the characteristics that differ between them: Although both the PooledConnectionFactory and the CachingConnectionFactory state that they each pool connections, sessions and producers, the PooledConnectionFactory does not actually create a cache of multiple producers. It simply uses … Read more

Which JMS implementation do you use? [closed]

Before delving into JMS, consider AMQP as well – might be a new standard. JMS providers I worked with (in varying degrees): TIBCO EMS – very quick and robust, good API support, Java friendly, native C API exists. Best commercial choice I’ve used. Websphere MQ (and its JMS implementation) – so, so. Pub/sub not exactly … Read more

How does RabbitMQ compare to Mule

Mule is an ESB (Enterprise Service Bus). RabbitMQ is a message broker. An ESB provides added layers atop of a message broker such as routing, transformations and business process management. It is a mediator between applications, integrating Web Services, REST endpoints, database connections, email and ftp servers – you name it. It is a high-level … Read more

When to use JMS and when to use REST? [closed]

Always use REST. It is the most modern, advanced and scalable integration approach available today. Load balancing a REST based service is achieved simply with hardware or software HTTP load balancer and can be considered just as free as load balancing in JMS. MOM (Message Oriented Middleware) doesn’t scale easily (but may scale big enough … Read more

What is the right Maven dependency for javax.jms.* classes?

In ActiveMQ as well as some other projects like Qpid JMS we pull in the JMS spec classes from Apache Geronimo JARs, the 1.1 APIs are available in this dependency: <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>1.1.1</version> </dependency> For JMS 2 APIs you’d need to use a different dependency, for instance <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_2.0_spec</artifactId> <version>1.0-alpha-2</version> </dependency> These are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)