System.setProperty("jboss.messaging.callback.pollPeriod", pollPeriod);
System.setProperty("jboss.messaging.callback.reportPollingStatistics", "true");
connection = (JBossConnection)cf.createConnection();
connection.start();
ClientConnectionDelegate delegate = (ClientConnectionDelegate)connection.getDelegate();
JMSRemotingConnection remotingConnection = delegate.getRemotingConnection();
Client client = remotingConnection.getRemotingClient();