You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by kevinba <ke...@itssiemens.com> on 2006/07/17 22:28:42 UTC

Client ID problem

I have a question.  I just got ActiveMQ-CPP compile for MSDEV and my question
has nothing to do with MSDEV but in the class ActiveMQConnectionFactory in
the method createConnection it tries to set properties "username",
"password" and "clientId", but later in the method it calls 
connector->start();.  The StompConnector class calls internal method
connect(); in the start() method.  It does a getLogin(), getPassword(),
getClientId() method calls to set the ConnectCommand class with these
parameters.  

If you look at each one of these calls it does a look for HEADER_LOGIN,
HEADER_PASSWORD and HEADER_CLIENT_ID.  

If I'm following the code right that look returns strings of  "login",
"passcode" and "client-id".

Those returns are totatly different from what ConnectCommand class set in
the properites class. 

I'm I right to think ConnectCommand class is wrong and set the wrong data or
am I missing something?

Thanks,

-- 
View this message in context: http://www.nabble.com/Client-ID-problem-tf1957030.html#a5367856
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Client ID problem

Posted by James Strachan <ja...@gmail.com>.
Kevin do you want to send us a patch of the changes we made and we can
apply them to the code?

http://incubator.apache.org/activemq/contributing.html

On 7/18/06, kevinba <ke...@itssiemens.com> wrote:
>
> I changed ConnectCommand class to match what was expected and then built the
> password, username and client-id correctly.
>
> otherwise those where always blank!
>
> Let me know if I'm following the code correctly.
>
> I'm having problems getting the C++ msdev client to talk and I want to make
> sure I didn't change something that I should've not done.
>
> Thanks,
> --
> View this message in context: http://www.nabble.com/Client-ID-problem-tf1957030.html#a5371731
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

RE: Client ID problem

Posted by kevinba <ke...@itssiemens.com>.
I changed ConnectCommand class to match what was expected and then built the
password, username and client-id correctly.

otherwise those where always blank!

Let me know if I'm following the code correctly.

I'm having problems getting the C++ msdev client to talk and I want to make
sure I didn't change something that I should've not done.

Thanks,
-- 
View this message in context: http://www.nabble.com/Client-ID-problem-tf1957030.html#a5371731
Sent from the ActiveMQ - User forum at Nabble.com.


RE: Client ID problem

Posted by Timothy Bish <ta...@twcny.rr.com>.
Kevin

I just took a quick look but am not seeing anything wrong at a glance.  I
will have more time to investigate this tomorrow, and I will get back to you
then.  I'm debugging another small issue right now :(  

Thanks for helping us find issues, much appreciated.

-------------------------------------------------

Timothy A. Bish
tabish@twcny.rr.com

-----Original Message-----
From: kevinba [mailto:kevin.bales@itssiemens.com] 
Sent: Monday, July 17, 2006 4:29 PM
To: activemq-users@geronimo.apache.org
Subject: Client ID problem
Importance: High


I have a question.  I just got ActiveMQ-CPP compile for MSDEV and my
question
has nothing to do with MSDEV but in the class ActiveMQConnectionFactory in
the method createConnection it tries to set properties "username",
"password" and "clientId", but later in the method it calls 
connector->start();.  The StompConnector class calls internal method
connect(); in the start() method.  It does a getLogin(), getPassword(),
getClientId() method calls to set the ConnectCommand class with these
parameters.  

If you look at each one of these calls it does a look for HEADER_LOGIN,
HEADER_PASSWORD and HEADER_CLIENT_ID.  

If I'm following the code right that look returns strings of  "login",
"passcode" and "client-id".

Those returns are totatly different from what ConnectCommand class set in
the properites class. 

I'm I right to think ConnectCommand class is wrong and set the wrong data or
am I missing something?

Thanks,

-- 
View this message in context:
http://www.nabble.com/Client-ID-problem-tf1957030.html#a5367856
Sent from the ActiveMQ - User forum at Nabble.com.