Examples of AQOracleSession


Examples of oracle.AQ.AQOracleSession

    private List<String> getSubscribers(DestinationConfig destination)
            throws AQException, SQLException, JMSException {
        Connection conn = session.getDBConnection();
        List<String> list = new ArrayList<String>();
        AQSession aqSession = new AQOracleSession(conn);
        AQQueue queue = aqSession.getQueue(conn.getMetaData().getUserName(),
                destination.getName());
        if (queue != null) {
            AQAgent[] subscribers = queue.getSubscribers();
            if (subscribers != null) {
                for (int index = 0; index < subscribers.length; index++) {
                    list.add(subscribers[index].getName());
                }
            }
        }
        queue.close();
        aqSession.close();
        return list;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.