Hi,
Unfortunately it doesn't seem to be possible to issue a warning if you
supply the wrong resource adapter name, since the way it works is:
ConnectionFactoryLoader mbean gets its ResourceAdapterName and registers as
a NotificationListener with the jmx server, filtering on Deployment events
with message = ResourceAdapterName
When the RARDeployer finds a .rar to deploy, it does so, and sends a
Deployment notification with message = resource adapter name.
The ConnectionFactoryLoader gets this message, checks to see if it is the
resource adapter it is expecting, and if so sets up the ConnectionFactory,
ManagedConnectionFactory....
So if you put in the wrong name, it will happily wait forever until a rar
with that name is deployed.
I don't see a way to determine (automatically) that a ResourceAdapterName
is wrong - ever. Do you?
Regarding your earlier problem with jars deploying before rars, it seems as
if we _could_ implement a similar notification mechanism for ejb
deployment: if say the DataSource isn't ready when the bean is deployed, it
could register a listener waiting for it, and when the DataSource is
deployed, it could notify waiting ejbs (or their persistence managers I
guess?) Would this be worthwhile/ a more robust solution than trying to be
sure to deploy in the right order?
david jencks
On 2001.08.16 19:19:34 -0400 Jason Dillon wrote:
> It looks like ResourceAdapterName is used to bind a connection factory
> loader to a deployed adapter's <display-name> (as david mentioned). It
> also
> looks like if the connection factory specifies an invalid name (one that
> does not match up with the one in the ra.xml), that it will not complain
> and
> will not bind anything into JNDI.
>
> I found this out due to a typo in one of my JmsXA configurations.
>
> It should really complain about something in this case.
>
> --jason
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development