Author: clebert.suconic(a)jboss.com
Date: 2011-03-04 13:05:04 -0500 (Fri, 04 Mar 2011)
New Revision: 10290
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/security/SimpleClient.java
Log:
format only
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/security/SimpleClient.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/security/SimpleClient.java 2011-03-04
14:40:28 UTC (rev 10289)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/security/SimpleClient.java 2011-03-04
18:05:04 UTC (rev 10290)
@@ -13,6 +13,10 @@
package org.hornetq.tests.integration.security;
+import java.io.PrintStream;
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
import org.hornetq.api.core.TransportConfiguration;
import org.hornetq.api.core.client.*;
import org.hornetq.core.logging.Logger;
@@ -38,7 +42,6 @@
{
try
{
-
if (args.length != 1)
{
throw new Exception("require 1 argument: connector factory class
name");
@@ -57,10 +60,10 @@
ClientConsumer consumer = session.createConsumer(queueName);
ClientMessage message = session.createMessage(HornetQTextMessage.TYPE,
- false,
- 0,
- System.currentTimeMillis(),
- (byte)1);
+ false,
+ 0,
+ System.currentTimeMillis(),
+ (byte)1);
message.getBodyBuffer().writeString(messageText);
producer.send(message);
@@ -87,15 +90,15 @@
}
catch (Throwable t)
{
-
+
String allStack = t.getMessage() + "|";
StackTraceElement[] stackTrace = t.getStackTrace();
for (StackTraceElement stackTraceElement : stackTrace)
{
allStack += stackTraceElement.toString() + "|";
}
- //System.out.println(t.getClass().getName());
- //System.out.println(t.getMessage());
+ // System.out.println(t.getClass().getName());
+ // System.out.println(t.getMessage());
System.out.println(allStack);
System.exit(1);
}
Show replies by date