Author: sebb
Date: Sun Nov 15 01:12:10 2009
New Revision: 836305
URL: http://svn.apache.org/viewvc?rev=836305&view=rev
Log:
Tidy up
Modified:
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/OnMessageSubscriber.java
Modified:
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/OnMessageSubscriber.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/OnMessageSubscriber.java?rev=836305&r1=836304&r2=836305&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/OnMessageSubscriber.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/OnMessageSubscriber.java
Sun Nov 15 01:12:10 2009
@@ -53,13 +53,6 @@
private TopicSubscriber SUBSCRIBER = null;
/**
- *
- */
- public OnMessageSubscriber() {
- super();
- }
-
- /**
* Constructor takes the necessary JNDI related parameters to create a
* connection and begin receiving messages.
*
@@ -93,7 +86,7 @@
* @param pwd
* @return the context or null
*/
- public Context initJNDI(boolean useProps, String jndi, String url, boolean
useAuth, String user, String pwd) {
+ private Context initJNDI(boolean useProps, String jndi, String url,
boolean useAuth, String user, String pwd) {
if (useProps) {
try {
return new InitialContext();
@@ -113,7 +106,7 @@
* @param connfactory
* @param topic
*/
- public void initConnection(Context ctx, String connfactory, String topic) {
+ private void initConnection(Context ctx, String connfactory, String topic)
{
try {
ConnectionFactory.getTopicConnectionFactory(ctx, connfactory);
this.CONN = ConnectionFactory.getTopicConnection();
@@ -151,8 +144,6 @@
this.CONN = null;
} catch (JMSException e) {
log.error(e.getMessage());
- } catch (Throwable e) {
- log.error(e.getMessage());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]