Dushy,

ahhhhh, sorry.  yes - I misinterpreted your question.

well, afaik the ejb spec doesn't say that this isn't possible - although its
certainly up to the vendor.

In the case of JBoss, afaik this isn't exposed atm.  But there's no reason
that I know of why this couldn't be exposed at a JMX level - I suppose you
would basically stop the bean, change the queue name, and then restart the
bean.

But I think that one of the developers could probably better answer the
question for you.

cheers
dim

ps - sorry for my initial mis-interpretation of the question!

----- Original Message -----
From: "Dushyant Shrivastava" <[EMAIL PROTECTED]>
To: "Dmitri Colebatch" <[EMAIL PROTECTED]>
Cc: "Alan Yost" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 5:34 PM
Subject: RE: Follow-up


Hi Dmitri,
thanks again.Sorry to bother u again, i think i wasn't phrasing my Q right!
We know that it is through the deployment descriptors that JBoss knows what
queue the Message Driven Bean is trying to bind to and this is done during
deployment of the Message Driven Bean. What i really wanted to know was is
there any way that you can specify the queue name at run time. In other
words Is there a way to know the queue name when it iz actually getting
deployed rather than at build time?

I have got an mBean which basically reads Q Names from my app defined
properties file and creates those queues. It would be nice for the Message
Driven Bean as well to actually refernce that properties file and get the Q
name at run time rather than at deployment time. This way, even if u change
the Q name in the properties file, you would not have to rebuild and
redeploy the bean!!

Thanks again for your time and patience

DUshy

-----Original Message-----
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 2:10 PM
To: Dushyant Shrivastava
Cc: [EMAIL PROTECTED]
Subject: Re: Follow-up


cc'ing this onto XDOclet user so it is at least on some archive somewhere
(o:

my.queue.name does have to be an ant property.

however, you can use the ant <property> task to load properties from a file.
so what I'd recommend doing is:

1. having a property file of all your queue names
2. changing the XDoclet tag as indicated below
3. use the ant <property> task to load the properties from the property file
4. make sure that the property task has executed before calling the
ejbdoclet task.  usually put the <property> task in an init style target.

cheers
dim


----- Original Message -----
From: "Dushyant Shrivastava" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 4:06 PM
Subject: Follow-up


Thanks for d prompt reply mate.
does my.queue.name have to be an ant property or can it be just any property
that i can load from a file?
I would want to load this property from a app sepcific property file rather
than from ant

Thanks
Dushy

-----Original Message-----
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] MBean destination-jndi-name


thats really an XDoclet question... but I'll answer it anyway...

try

 * @jboss:destination-jndi-name name="${my.queue.name}"

where my.queue.name is an ant property.  You can then use load your ant
properties from a file if you wish

cheers
dim

----- Original Message -----
From: "Dushyant Shrivastava" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 2:48 PM
Subject: [JBoss-user] MBean destination-jndi-name


Hi again,
I have a message driven bean with the following configuration
/**
 * Message Driven Bean Template
 *
 * @ejb:    bean name              =
"com/yambay/nps/messagehandler/message/MessageConsumer"
 *          display-name           = "Message Driven Bean"
 *          transaction-type       = "Container"
 *          acknowledge-mode       = "Auto-acknowledge"
 *          destination-type       = "javax.jms.Queue"
 *          subscription-durability="NonDurable"
 *
 * @jboss:destination-jndi-name name="queue/ClientWriteQ"
 **/

I was just wondering, if there is any way to actually load the
destination-jndi-name or even just the queue name from a file rather than
actually hard wiring the "queue/ClientWriteQ" like this??

TIA
Dushy


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=urceforge1&refcode1=3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to