亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? offlineconnection.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
            System.err.println("Failed to get message count for " + topic +
                " b/c " + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return count;
    }

    // implementation of AbstractAdminConnection.getQueueMessageCount
    public int getQueueMessageCount(String queue) {
        int count = -1;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            count = DatabaseService.getAdapter().getQueueMessageCount(
                connection, queue);
            connection.commit();
        } catch (PersistenceException exception) {
            System.err.println("Failed to get message count for " + queue +
                " b/c " + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return count;
    }

    // implementation of AbstractAdminConnection.durableConsumerExists
    public boolean durableConsumerExists(String name) {
        boolean result = false;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            result = DatabaseService.getAdapter().durableConsumerExists(
                connection, name);
            connection.commit();
        } catch (PersistenceException exception) {
            System.err.println("Failed on consumer exists for " + name +
                " b/c " + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return result;
    }

    // implementation of AbstractAdminConnection.getDurableConsumers
    public Enumeration getDurableConsumers(String topic) {
        Enumeration result = null;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            result = DatabaseService.getAdapter().getDurableConsumers(
                connection, topic);
            connection.commit();
        } catch (PersistenceException exception) {
            System.err.println("Failed on getDurableConsumers for " + topic +
                " b/c " + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return result;
    }

    // implementation of AbstractAdminConnection.removeDestination
    public boolean removeDestination(String destination) {
        boolean result = false;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            DatabaseService.getAdapter().removeDestination(connection,
                destination);
            if (_context == null) {
                // connect to the JNDI server and get a reference to
                // root context
                Hashtable props = new Hashtable();
                props.put(Context.INITIAL_CONTEXT_FACTORY,
                    "org.exolab.jms.jndi.intravm.IntravmJndiServer");
                _context = new InitialContext(props);
            }
            _context.unbind(destination);
            connection.commit();
            result = true;
        } catch (PersistenceException exception) {
            System.err.println("Failed on getDurableConsumers for " +
                destination + " b/c " + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (javax.naming.NamingException err) {
            System.err.println("Failed to removeDestination " + destination +
                " b/c" + err.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return result;
    }

    // implementation of AbstractAdminConnection.purgeMessages
    public int purgeMessages() {
        return DatabaseService.getAdapter().purgeMessages();
    }

    // implementation of AbstractAdminConnection.stopServer
    public void stopServer() {
        JOptionPane.showMessageDialog
            (_parent, "Not available in offline mode",
                "Shutdown Error", JOptionPane.ERROR_MESSAGE);
    }

    // implementation of AbstractAdminConnection.addUser
    public boolean addUser(String username, String password) {
        Connection connection = null;
        boolean success = false;

        try {
            connection = DatabaseService.getConnection();

            DatabaseService.getAdapter().addUser(connection,
                new User(username, password));
            connection.commit();
            success = true;
        } catch (PersistenceException exception) {
            System.err.println("Failed to add user " + username +
                exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return success;
    }

    // implementation of AbstractAdminConnection.changePassord
    public boolean changePassword(String username, String password) {
        Connection connection = null;
        boolean success = false;

        try {
            connection = DatabaseService.getConnection();

            DatabaseService.getAdapter().updateUser(connection,
                new User(username, password));
            connection.commit();
            success = true;
        } catch (PersistenceException exception) {
            System.err.println("Failed to add user " + username +
                exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return success;
    }

    // implementation of AbstractAdminConnection.removeUser
    public boolean removeUser(String username) {
        boolean result = false;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            DatabaseService.getAdapter().removeUser(connection,
                new User(username, null));
            connection.commit();
            result = true;
        } catch (PersistenceException exception) {
            System.err.println("Failed on remove user for " +
                username + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return result;
    }

    // implementation of AbstractAdminConnection.getAllUsers
    public Enumeration getAllUsers() {
        Enumeration result = null;
        Connection connection = null;

        try {
            connection = DatabaseService.getConnection();

            result = DatabaseService.getAdapter().getAllUsers(
                connection);
            connection.commit();
        } catch (PersistenceException exception) {
            System.err.println("Failed on getAllUsers "
                + exception.toString());
            try {
                connection.rollback();
            } catch (Exception nested) {
                // ignore
            }
        } catch (Exception exception) {
            // ignore for the moment
        } finally {
            if (connection != null) {
                try {
                    connection.close();
                } catch (Exception nested) {
                    // ignore
                }
            }
        }

        return result;
    }
} //-- OfflineConnection

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产高清在线| 一区二区视频免费在线观看| 亚洲特级片在线| 麻豆精品视频在线观看免费| 99久久99久久精品国产片果冻| 日韩一级欧美一级| 一区二区三区中文字幕精品精品 | 日韩欧美一二三| 一区二区三区在线观看欧美| 国产成人自拍网| 日韩欧美国产系列| 日韩高清在线一区| 欧美最新大片在线看| 亚洲色欲色欲www| 高清不卡一区二区| www激情久久| 久久激情综合网| 日韩一区二区在线看| 亚洲成人免费在线| 欧美日韩一区二区欧美激情| 亚洲在线视频一区| 99精品欧美一区二区三区小说| 久久亚洲影视婷婷| 国产高清在线精品| 久久久精品免费网站| 国产在线精品一区在线观看麻豆| 91麻豆精品国产91久久久| 亚洲超碰精品一区二区| 欧美日韩小视频| 日韩精品成人一区二区在线| 欧美久久久久中文字幕| 婷婷国产v国产偷v亚洲高清| 欧美色图12p| 亚洲3atv精品一区二区三区| 欧美久久一二三四区| 日韩国产欧美三级| 欧美白人最猛性xxxxx69交| 久久99国产精品久久| 337p粉嫩大胆色噜噜噜噜亚洲| 久久国产生活片100| 欧美成人aa大片| 国产精品影视在线| 国产精品美女一区二区在线观看| av亚洲精华国产精华精| 一区二区三区波多野结衣在线观看| 91极品视觉盛宴| 午夜精品视频一区| 久久综合视频网| 成人午夜av电影| 亚洲欧美一区二区三区久本道91| 欧美日韩亚洲不卡| 麻豆久久久久久| 国产精品网友自拍| 欧洲一区在线电影| 激情综合五月天| 国产精品嫩草影院com| 欧日韩精品视频| 国产电影精品久久禁18| 洋洋成人永久网站入口| 日韩欧美在线123| 成人黄色777网| 香蕉成人啪国产精品视频综合网| 日韩美女天天操| 成人av网站在线| 日韩在线一二三区| 中文字幕精品一区二区精品绿巨人| 在线视频中文字幕一区二区| 久久66热re国产| 一区二区三区四区在线免费观看| 欧美一区二区三区电影| 成人av电影免费观看| 亚洲成av人影院| 国产精品免费久久久久| 日本伦理一区二区| 亚洲国产视频一区| 激情文学综合网| 成人免费精品视频| 国产精品视频观看| 3d动漫精品啪啪1区2区免费| 国产aⅴ综合色| 亚洲小少妇裸体bbw| 精品一二三四区| 中文字幕一区二区三中文字幕| 色视频欧美一区二区三区| 久久99久国产精品黄毛片色诱| 亚洲精品老司机| 国产亚洲一区字幕| 日韩精品一区二区三区中文不卡 | 亚洲欧美激情一区二区| 精品国产乱码久久久久久蜜臀| 色呦呦国产精品| 成人免费高清视频在线观看| 人禽交欧美网站| 亚洲一级二级在线| 国产精品每日更新在线播放网址| 日韩午夜中文字幕| 欧美日韩一区精品| 91麻豆国产精品久久| 成人中文字幕电影| 国产资源在线一区| 久久99久久久久久久久久久| 亚洲电影第三页| 亚洲激情自拍视频| 亚洲精品欧美综合四区| 日韩美女精品在线| 国产精品久久久久桃色tv| 国产嫩草影院久久久久| 国产三级精品视频| 久久九九久久九九| 国产三级欧美三级| 亚洲精品一区二区三区精华液| 91精品中文字幕一区二区三区| 在线观看一区日韩| 欧美无人高清视频在线观看| 国产成人aaa| 国产精品一区专区| 国产98色在线|日韩| 国产 欧美在线| 成人综合在线观看| 99re免费视频精品全部| 国产91精品一区二区麻豆亚洲| 国产精品综合二区| 成人丝袜18视频在线观看| 成人免费看黄yyy456| 一本大道综合伊人精品热热| 精品免费99久久| 久久久久青草大香线综合精品| 久久综合九色综合欧美98| 久久久精品综合| 国产精品国产精品国产专区不蜜| 亚洲人精品午夜| 亚洲国产精品尤物yw在线观看| 天天色天天爱天天射综合| 蜜臀久久久99精品久久久久久| 激情综合亚洲精品| 99这里只有精品| 欧美日韩日日摸| 欧美大片一区二区| 中文字幕色av一区二区三区| 亚洲精品伦理在线| 免费一级片91| 波多野结衣中文字幕一区二区三区| 色婷婷国产精品久久包臀 | 日韩成人午夜电影| 国产美女av一区二区三区| 99久久免费精品| 欧美肥大bbwbbw高潮| 久久亚洲私人国产精品va媚药| 成人免费一区二区三区视频| 日韩精品一区第一页| 国产成人午夜视频| 欧美日韩一卡二卡三卡| 国产欧美一区二区精品婷婷| 亚洲在线中文字幕| 国产 日韩 欧美大片| 欧美精品 日韩| 最新国产成人在线观看| 美女视频网站黄色亚洲| 97超碰欧美中文字幕| 日韩精品一区国产麻豆| 亚洲激情图片一区| 激情另类小说区图片区视频区| 99精品黄色片免费大全| 欧美一区二区黄| 综合久久久久久久| 久久电影网站中文字幕| 欧美在线不卡视频| 国产精品三级av| 久久福利视频一区二区| 欧美性大战久久久久久久| 久久久久9999亚洲精品| 美女国产一区二区三区| 在线观看日韩高清av| 日本一区二区三区国色天香| 日本亚洲天堂网| 欧美三区在线视频| 亚洲人快播电影网| www.综合网.com| 久久精品亚洲麻豆av一区二区| 日韩国产精品久久久| 欧美在线不卡视频| 亚洲精品日日夜夜| 91麻豆成人久久精品二区三区| 欧美精品一区在线观看| 久久精品国产精品亚洲红杏| 欧美日韩一区二区不卡| 亚洲一区二区三区自拍| aaa欧美日韩| 国产精品乱码一区二区三区软件 | 色综合久久久网| 国产精品视频一二三| 韩日av一区二区| 日韩免费高清电影| 日韩电影在线观看网站| 欧美久久久久久久久久| 亚洲午夜精品在线| 3d成人h动漫网站入口| 日本视频一区二区| 日韩精品综合一本久道在线视频| 欧美aa在线视频|