Created
November 3, 2011 21:38
-
-
Save sachin-handiekar/1337859 to your computer and use it in GitHub Desktop.
A custom Oracle AQ QueueConnectionFactory for Spring JMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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