https://issues.apache.org/bugzilla/show_bug.cgi?id=51691
Bug #: 51691
Summary: Authorization does not work for JMS Publisher and JMS
Subscriber
Product: JMeter
Version: 2.5
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
I've already reported the issue long time ago. Now I don't see that issue in
the list :(
The problem is that when I'm using Authentication feature with JMS Publisher
sample (ON "Use Authorization?" checkbox, with correct user/password) - the
sample will fail with the error = "User name or password is invalid".
Below is BeanShell sample that work fine with Authentication for the same JMS
server.
So, this is my proving that it is JMeter issue (means JMS Publisher sample).
I believe that the issue is valid for JMS Subscriber as well.
Workaround - disabling Authentication on JMS server.
============
import javax.jms.ConnectionFactory;
import javax.jms.Connection;
import javax.jms.Session;
import javax.jms.MessageProducer;
import javax.jms.MessageConsumer;
import javax.jms.Queue;
import javax.jms.Session;
import javax.jms.Message;
import javax.jms.TextMessage;
//Import the classes to use JNDI.
import javax.naming.*;
import java.util.*;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.command.ActiveMQQueue;
System.out.println("TEST");
String myhostname =
"tcp://mdmcdocr-esbqa.mcgov.org:61616";
ConnectionFactory factory = new
ActiveMQConnectionFactory(myhostname);
connection =
factory.createConnection("user", "password");
// connection = factory.createConnection();
session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE);
queue =
session.createQueue("Elite_To_MorphoTrak");
MessageConsumer consumer =
session.createConsumer(queue,"JMSCorrelationID='e884b430-c9fb-11e0-9279-79bc5a87f8d4'");
connection.start();
System.out.println("TEST 2");
Message myMessage = consumer.receive(2000);
System.out.println("TEST 3");
session.close();
connection.close();
System.out.println("TEST 4");
// TextMessage txtMsg = (TextMessage) myMessage;
// System.out.println("Read Message: " + txtMsg.getText());
System.out.println("Read Message: " + myMessage);
System.out.println("TEST 6");
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]