On 15 Maj, [EMAIL PROTECTED] wrote:
> Now i see the light!  :-o
> Last question (by the moment):
> How to use the same Topic with 2 or more subscribers?
> Perhaps, for every subscriber, have i to indicate in
> its 'jboss.xml' the same line:
> 
> <destination-jndi-name>topic/sameTopic</destination-jndi-name> ?

Thats correct. You could resue everything by just renaming the bean in
the deployment descriptors and the jar-file.

As long as you message bean does the EXACT same thing (i.e calls the
same session bean or has the same message selector) you should not
create a new subscriber - because one of the great thing with MDB is
that you get multithreaded execution of your message listenerns (which
is verry hard, if not even impossible for topics with vanlilla JMS.

//Peter
> 
> Regards:
> __________________________________________
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 965040000 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias 
> W a n a d o o E s p a n a - http://www.wanadoo.es 
> __________________________________________
> 
> 
> 
> 
> Per Lewau <[EMAIL PROTECTED]>
> Sent by: [EMAIL PROTECTED]
> 15/05/2001 10:51
> Please respond to jboss-user
> 
>  
>         To:     [EMAIL PROTECTED]
>         cc: 
>         Subject:        Re: [JBoss-user] One more doubt about MDB
> 
> 
> 
> On Tue, 15 May 2001 [EMAIL PROTECTED] wrote:
> 
>> Hello again:
>> 
>> I'm using a Topic with (only) one subscriber (i.e. ListenerBean),
>> with this assumption...
>> which is the diference between using a QUEUE or a TOPIC?
> 
> None.
> 
> If you only have one subscriber and will only ever have one subscriber you
> could use a Queue instead. With a topic however you could add more
> subscribers if that becomes necessary, fun or whatever in the future
> without having to change anything else.
> 
> Cheers
> 
> -----------------------------------------------------------------------
> Per Lewau ([EMAIL PROTECTED]) 
> 
> "Why waste time learning, when ignorance is instantaneous?"
>                  - Hobbes
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
------------------------------------------------------------
Peter Antman             Technology in Media, Box 34105 100 26 Stockholm
Systems Architect        WWW: http://www.tim.se
Email: [EMAIL PROTECTED]        WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 
------------------------------------------------------------


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to