Skip to content

Instantly share code, notes, and snippets.

@sachin-handiekar
Created November 3, 2011 21:38
Show Gist options
  • Save sachin-handiekar/1337859 to your computer and use it in GitHub Desktop.
Save sachin-handiekar/1337859 to your computer and use it in GitHub Desktop.
A custom Oracle AQ QueueConnectionFactory for Spring JMS
package com.sachinhandiekar.oracle.aq;
import javax.jms.ConnectionFactory;
import javax.sql.DataSource;
public class OracleAQQueueConnectionFactory {
private DataSource dataSource;
public ConnectionFactory createConnectionFactory() throws Exception {
return oracle.jms.AQjmsFactory.getQueueConnectionFactory(dataSource);
}
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment