Commit bde3c1fa authored by afreyssin's avatar afreyssin
Browse files

Minor changes.

parent 5eb89a88
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2009 ScalAgent Distributed Technologies
* Copyright (C) 2009 - 2010 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -430,7 +430,7 @@ public class AdminWrapper {
String reply = getDefaultDMQId(serverId);
if (reply == null) return null;
return new DeadMQueue(reply);
return new Queue(reply);
}
/**
......
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2005 - 2009 ScalAgent Distributed Technologies
* Copyright (C) 2005 - 2010 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -23,7 +23,6 @@
package org.objectweb.joram.client.jms.admin;
import java.net.ConnectException;
import java.util.Properties;
/**
* MBean interface for JoramAdmin.
......
......@@ -713,7 +713,7 @@ public class JoramSaxWrapper extends DefaultHandler {
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"JoramSaxWrapper creates wrapper (TCP): " + host + ',' + port + ',' + name);
ConnectionFactory cf = (ConnectionFactory)TcpConnectionFactory.create(host, port, reliableClass);
ConnectionFactory cf = TcpConnectionFactory.create(host, port, reliableClass);
cf.getParameters().connectingTimer = cnxTimer;
cf.setIdentityClassName(identityClass);
......@@ -725,7 +725,7 @@ public class JoramSaxWrapper extends DefaultHandler {
logger.log(BasicLevel.DEBUG,
"JoramSaxWrapper creates wrapper (HA): " + url + ',' + name);
ConnectionFactory cf = (ConnectionFactory) HATcpConnectionFactory.create(url);
ConnectionFactory cf = HATcpConnectionFactory.create(url);
cf.getParameters().connectingTimer = cnxTimer;
cf.setIdentityClassName(identityClass);
......@@ -737,7 +737,7 @@ public class JoramSaxWrapper extends DefaultHandler {
logger.log(BasicLevel.DEBUG,
"JoramSaxWrapper creates wrapper (Local): " + name);
ConnectionFactory cf = (ConnectionFactory) LocalConnectionFactory.create();
ConnectionFactory cf = LocalConnectionFactory.create();
cf.setIdentityClassName(identityClass);
cnx = cf.createConnection(name, password);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment