Package org.exolab.jms.persistence

Examples of org.exolab.jms.persistence.DatabaseService$State


    public OfflineConnection(Component parent, Configuration config)
            throws OfflineConnectionException {
        try {
            if (_instance == null) {
                _parent = parent;
                _database = new DatabaseService(config);
                _database.start();

                DatabaseConfiguration dbconfig =
                        config.getDatabaseConfiguration();
View Full Code Here


     */
    protected void init() throws JMSException {
        JmsDestination queue = getDestination();

        List handles;
        DatabaseService service = null;
        try {
            service = DatabaseService.getInstance();
            Connection connection = service.getConnection();
            service.getAdapter().removeExpiredMessageHandles(connection,
                    queue.getName());
            handles = service.getAdapter().getMessageHandles(connection, queue,
                    queue.getName());
        } catch (PersistenceException exception) {
            _log.error(exception, exception);
            try {
                if (service != null) {
                    service.rollback();
                }
            } catch (PersistenceException error) {
                _log.error(error, error);
            }
            throw new JMSException(exception.getMessage());
View Full Code Here

    public DataLoader(Configuration config) throws ServiceException {
        DBTool tool = new DBTool(config);
        tool.drop();
        tool.create();

        _service = new DatabaseService(config);
        _service.start();
        _adapter = _service.getAdapter();
        _connection = _service.getConnection();
        _topic1.setPersistent(true);
        _queue1.setPersistent(true);
View Full Code Here

TOP

Related Classes of org.exolab.jms.persistence.DatabaseService$State

Copyright © 2018 www.massapicom. 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.