basically, no, but sort of.
The various j2ee specs require that you list the resources you use in
the deployment descriptor and that the deployment process associate the
resources "needs" listed in the dd with actual resources deployed in
the app server.
That being said... if you are willing to use extremely
geronimo-specific code you can query the geronimo kernel for gbeans
following an appropriate naming pattern and find the ones wrapping a
jms managed connection factory, and get the ConnectionFactory from it.
I would think hard about why you think you need to do this.
thanks
david jencks
On Jun 1, 2005, at 3:56 AM, roreilly wrote:
Hi all,
from examples I have seen, when using a jms queue/topic you must add
an entry to the application's web.xml for the connection factory and
for the resource (e.g Queue) :
�
<resource-ref>
��� <res-ref-name>MyConnectionFactory</res-ref-name>
��� <res-type>javax.jms.ConnectionFactory</res-type>
��� <res-auth>Container</res-auth>
��� <res-sharing-scope>Shareable</res-sharing-scope>
� </resource-ref>
� <message-destination-ref>
���
<message-destination-ref-name>jms/MyJMSQueue</message-destination-ref-
name>
���
<message-destination-type>javax.jms.Queue</message-destination-type>
��� <message-destination-usage>Consumes</message-destination-usage>
��� <message-destination-link>MyQueue</message-destination-link>
� </message-destination-ref>
Is there a way around referencing these resources here, so that a new
jms resource can be made available to the app server, without altering
the application's ear/war in this way?
Best Regards,
roreilly.
�
�
�<Ronan O'Reilly.vcf>