[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    RE: [JBoss-user] jbossMQ question:  durable subscriber user	authe
From:       thomas.cherel () ascentialsoftware ! com
Date:       2003-08-29 19:51:58
[Download RAW message or body]

Indeed that was my mistake. Thanks.
I should have looked better. Sorry.

Thomas Cherel


-----Original Message-----
From: Adrian Brock [mailto:Adrian.Brock@HappeningTimes.com] 
Sent: Friday, August 29, 2003 2:30 PM
To: jboss-user@lists.sourceforge.net
Subject: RE: [JBoss-user] jbossMQ question: durable subscriber user authe
ntication

Did you have a <client-id> associated with the user in
jbossmq-state.xml? e.g.

connection = (QueueConnection) conFactory.createQueueConnection("john",
"needle");
connection = (QueueConnection) conFactory.createQueueConnection("john",
"needle");

fails because john has a configured client-id

But guest/guest is fine.

It is the client-id that cannot login twice, not the user.

Regards,
Adrian

On Fri, 2003-08-29 at 18:22, thomas.cherel@ascentialsoftware.com wrote:
> Sorry to take an opportunity again to ask a separate question, but I am a
> little concern with this "Only one user can signon as a particular
client-id
> at any one time".
> My early experiment of defining access rights to JMS queues (not topic) in
> JBoss tend to prove what you just say: I cannot have two clients
connecting
> with the same user names. I find that a little bit of a problem as each
time
> a new client is added, I need to create a new user name.
> Is there a way for multiple clients to share the same user names or only
> roles can be shared?
> 
> Thomas Cherel
> 
> 
> 
> -----Original Message-----
> From: Adrian Brock [mailto:Adrian.Brock@HappeningTimes.com] 
> Sent: Friday, August 29, 2003 12:54 PM
> To: jboss-user@lists.sourceforge.net
> Subject: Re: [JBoss-user] jbossMQ question: durable subscriber user
> authentication
> 
> Take a look in jbossmq-state.xml
> 
> Do you see something like ID:1 in the durable subscriptions?
> 
> This means you are using "annonymous" client ids.
> 
> Either configure your user with a client id in jbossmq-state.xml
> (see the example for john) or use Connection.setClientID()
> 
> Durable subscriptions are made against the client id not the user.
> Only one user can signon as a particular client-id at any one time.
> 
> Regards,
> Adrian
> 
> On Fri, 2003-08-29 at 16:31, Aurele Vrata Venet wrote:
> > Hi Adrian,
> > 
> > thanks for that I got over the  JMSSecurityException: Connection not 
> > authorized error.    I got another problem now.
> > 
> > I was under the impression that a publish(msg, DeliveryMode.PERSISTENT, 
> > 3, 0) meant that the JMS provider would keep the message until the 
> > message was subscribed to successfully.  I have a durable subsrciber, 
> > and what I am trying to get to work is to be able publish messages and 
> > make sure they are delivered, even if the subscriber falls over.  ie, if

> > the consumer client dies (ie is not running) then I was hoping that upon

> > (re)start up it would collect all messages that had not been received.  
> > But it doesn't seem to work.
> > 
> > These are the steps I carry out:
> > 
> > 1. start my consumer (durable subscriber).  As no messages have yet been

> > published, it just terminates and exits.  I am under the impression that

> > it should at this point register with the provider that it is a durable 
> > subsriber under its subscriptions name 
> > createDurableSubscriber(testTopic, "testSub")
> > 
> > 2.  I launch my publisher, which runs fine and publishes 5 persistent 
> > non-expiring msgs (I see in the JMX console the DurableMessageCount 
> > going up).
> > 
> > 3. I relaunch my consumer code in the hope that it will pick up the 5 
> > msgs published and, from my understanding, stored by the provider.  But 
> > no msgs appear.
> > 
> > Am I doing something wrong, or is my logic completly flawed?
> > 
> > hints would be gratefully welcomed.
> > 
> > Vrata
> > 
> > Adrian Brock wrote:
> > 
> > >The user you login as (configured in jbossmq-state.xml)
> > >must be in a role that has "create" authority on the topic.
> > >
> > >Regards,
> > >Adrian
> > >
> > >
> > >  
> > >
> > >  
> > >
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [JBoss-user] jbossMQ question:  durable subscriber user	authe \
ntication</TITLE> </HEAD>
<BODY>

<P><FONT SIZE=2>Indeed that was my mistake. Thanks.</FONT>
<BR><FONT SIZE=2>I should have looked better. Sorry.</FONT>
</P>

<P><FONT SIZE=2>Thomas Cherel</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Adrian Brock [<A \
HREF="mailto:Adrian.Brock@HappeningTimes.com">mailto:Adrian.Brock@HappeningTimes.com</A>] \
</FONT> <BR><FONT SIZE=2>Sent: Friday, August 29, 2003 2:30 PM</FONT>
<BR><FONT SIZE=2>To: jboss-user@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: RE: [JBoss-user] jbossMQ question: durable subscriber user \
authe ntication</FONT> </P>

<P><FONT SIZE=2>Did you have a &lt;client-id&gt; associated with the user in</FONT>
<BR><FONT SIZE=2>jbossmq-state.xml? e.g.</FONT>
</P>

<P><FONT SIZE=2>connection = (QueueConnection) \
conFactory.createQueueConnection(&quot;john&quot;,</FONT> <BR><FONT \
SIZE=2>&quot;needle&quot;);</FONT> <BR><FONT SIZE=2>connection = (QueueConnection) \
conFactory.createQueueConnection(&quot;john&quot;,</FONT> <BR><FONT \
SIZE=2>&quot;needle&quot;);</FONT> </P>

<P><FONT SIZE=2>fails because john has a configured client-id</FONT>
</P>

<P><FONT SIZE=2>But guest/guest is fine.</FONT>
</P>

<P><FONT SIZE=2>It is the client-id that cannot login twice, not the user.</FONT>
</P>

<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Adrian</FONT>
</P>

<P><FONT SIZE=2>On Fri, 2003-08-29 at 18:22, thomas.cherel@ascentialsoftware.com \
wrote:</FONT> <BR><FONT SIZE=2>&gt; Sorry to take an opportunity again to ask a \
separate question, but I am a</FONT> <BR><FONT SIZE=2>&gt; little concern with this \
&quot;Only one user can signon as a particular client-id</FONT> <BR><FONT SIZE=2>&gt; \
at any one time&quot;.</FONT> <BR><FONT SIZE=2>&gt; My early experiment of defining \
access rights to JMS queues (not topic) in</FONT> <BR><FONT SIZE=2>&gt; JBoss tend to \
prove what you just say: I cannot have two clients connecting</FONT> <BR><FONT \
SIZE=2>&gt; with the same user names. I find that a little bit of a problem as each \
time</FONT> <BR><FONT SIZE=2>&gt; a new client is added, I need to create a new user \
name.</FONT> <BR><FONT SIZE=2>&gt; Is there a way for multiple clients to share the \
same user names or only</FONT> <BR><FONT SIZE=2>&gt; roles can be shared?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Thomas Cherel</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; From: Adrian Brock [<A \
HREF="mailto:Adrian.Brock@HappeningTimes.com">mailto:Adrian.Brock@HappeningTimes.com</A>] \
</FONT> <BR><FONT SIZE=2>&gt; Sent: Friday, August 29, 2003 12:54 PM</FONT>
<BR><FONT SIZE=2>&gt; To: jboss-user@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>&gt; Subject: Re: [JBoss-user] jbossMQ question: durable subscriber \
user</FONT> <BR><FONT SIZE=2>&gt; authentication</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Take a look in jbossmq-state.xml</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Do you see something like ID:1 in the durable \
subscriptions?</FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; This means you are using &quot;annonymous&quot; client \
ids.</FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Either configure your user with a client id in \
jbossmq-state.xml</FONT> <BR><FONT SIZE=2>&gt; (see the example for john) or use \
Connection.setClientID()</FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Durable subscriptions are made against the client id not the \
user.</FONT> <BR><FONT SIZE=2>&gt; Only one user can signon as a particular client-id \
at any one time.</FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Regards,</FONT>
<BR><FONT SIZE=2>&gt; Adrian</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; On Fri, 2003-08-29 at 16:31, Aurele Vrata Venet wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; Hi Adrian,</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; thanks for that I got over the&nbsp; JMSSecurityException: \
Connection not </FONT> <BR><FONT SIZE=2>&gt; &gt; authorized error.&nbsp;&nbsp;&nbsp; \
I got another problem now.</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; I was under the impression that a publish(msg, \
DeliveryMode.PERSISTENT, </FONT> <BR><FONT SIZE=2>&gt; &gt; 3, 0) meant that the JMS \
provider would keep the message until the </FONT> <BR><FONT SIZE=2>&gt; &gt; message \
was subscribed to successfully.&nbsp; I have a durable subsrciber, </FONT> <BR><FONT \
SIZE=2>&gt; &gt; and what I am trying to get to work is to be able publish messages \
and </FONT> <BR><FONT SIZE=2>&gt; &gt; make sure they are delivered, even if the \
subscriber falls over.&nbsp; ie, if </FONT> <BR><FONT SIZE=2>&gt; &gt; the consumer \
client dies (ie is not running) then I was hoping that upon </FONT> <BR><FONT \
SIZE=2>&gt; &gt; (re)start up it would collect all messages that had not been \
received.&nbsp; </FONT> <BR><FONT SIZE=2>&gt; &gt; But it doesn't seem to \
work.</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; These are the steps I carry out:</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; 1. start my consumer (durable subscriber).&nbsp; As no \
messages have yet been </FONT> <BR><FONT SIZE=2>&gt; &gt; published, it just \
terminates and exits.&nbsp; I am under the impression that </FONT> <BR><FONT \
SIZE=2>&gt; &gt; it should at this point register with the provider that it is a \
durable </FONT> <BR><FONT SIZE=2>&gt; &gt; subsriber under its subscriptions name \
</FONT> <BR><FONT SIZE=2>&gt; &gt; createDurableSubscriber(testTopic, \
&quot;testSub&quot;)</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; 2.&nbsp; I launch my publisher, which runs fine and \
publishes 5 persistent </FONT> <BR><FONT SIZE=2>&gt; &gt; non-expiring msgs (I see in \
the JMX console the DurableMessageCount </FONT> <BR><FONT SIZE=2>&gt; &gt; going \
up).</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; 3. I relaunch my consumer code in the hope that it will \
pick up the 5 </FONT> <BR><FONT SIZE=2>&gt; &gt; msgs published and, from my \
understanding, stored by the provider.&nbsp; But </FONT> <BR><FONT SIZE=2>&gt; &gt; \
no msgs appear.</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Am I doing something wrong, or is my logic completly \
flawed?</FONT> <BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; hints would be gratefully welcomed.</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Vrata</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Adrian Brock wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;The user you login as (configured in \
jbossmq-state.xml)</FONT> <BR><FONT SIZE=2>&gt; &gt; &gt;must be in a role that has \
&quot;create&quot; authority on the topic.</FONT> <BR><FONT SIZE=2>&gt; &gt; \
&gt;</FONT> <BR><FONT SIZE=2>&gt; &gt; &gt;Regards,</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;Adrian</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -------------------------------------------------------</FONT>
<BR><FONT SIZE=2>&gt; This sf.net email is sponsored by:ThinkGeek</FONT>
<BR><FONT SIZE=2>&gt; Welcome to geek heaven.</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://thinkgeek.com/sf" \
TARGET="_blank">http://thinkgeek.com/sf</A></FONT> <BR><FONT SIZE=2>&gt; \
_______________________________________________</FONT> <BR><FONT SIZE=2>&gt; \
JBoss-user mailing list</FONT> <BR><FONT SIZE=2>&gt; \
JBoss-user@lists.sourceforge.net</FONT> <BR><FONT SIZE=2>&gt; <A \
HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" \
TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> \
<BR><FONT SIZE=2>&gt; </FONT> <BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -------------------------------------------------------</FONT>
<BR><FONT SIZE=2>&gt; This sf.net email is sponsored by:ThinkGeek</FONT>
<BR><FONT SIZE=2>&gt; Welcome to geek heaven.</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://thinkgeek.com/sf" \
TARGET="_blank">http://thinkgeek.com/sf</A></FONT> <BR><FONT SIZE=2>&gt; \
_______________________________________________</FONT> <BR><FONT SIZE=2>&gt; \
JBoss-user mailing list</FONT> <BR><FONT SIZE=2>&gt; \
JBoss-user@lists.sourceforge.net</FONT> <BR><FONT SIZE=2>&gt; <A \
HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" \
TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> \
</P> <BR>
<BR>

<P><FONT SIZE=2>-------------------------------------------------------</FONT>
<BR><FONT SIZE=2>This sf.net email is sponsored by:ThinkGeek</FONT>
<BR><FONT SIZE=2>Welcome to geek heaven.</FONT>
<BR><FONT SIZE=2><A HREF="http://thinkgeek.com/sf" \
TARGET="_blank">http://thinkgeek.com/sf</A></FONT> <BR><FONT \
SIZE=2>_______________________________________________</FONT> <BR><FONT \
SIZE=2>JBoss-user mailing list</FONT> <BR><FONT \
SIZE=2>JBoss-user@lists.sourceforge.net</FONT> <BR><FONT SIZE=2><A \
HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user" \
TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user</A></FONT> \
</P>

</BODY>
</HTML>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic