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