----- Original Message -----
From: "Stefano Maestri" <smaestri(a)redhat.com>
Sent: Monday, August 19, 2013 3:09:41 PM
Subject: Re: [wildfly-dev] JCA service/model names a.k.a WFLY-1656
I've started to review this patch and at a first look can't work as is.
It needs at a first look at least changes to resource-adapters xsd,
because it bases service names on "id" attribute, but actually this
attribute is not mandatory in xsd. In case you define a resource-adapter
configuration in standalone.xml for a rar having an internal config with
ironjacamar.xml It drives to runtime error like this:
14:47:27,561 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7)
MSC000001: Failed to start service jboss.ra.deployment."ra16outij.rar":
org.jboss.msc.service.StartException in service
jboss.ra.ra16outij is already registered
Thats expected error, since such configuration/setup leads to same resource being spawned
Or even defining 2 resource-adapter in standaole xml on the same rar
archive, w/o defining id as xsd permit:
14:49:59,574 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 11) JBAS014613: Operation ("add") failed -
("subsystem" => "resource-adapters"),
("resource-adapter" => "ra16outij.rar")
]) - failure description: "JBAS014803: Duplicate resource [
(\"subsystem\" => \"resource-adapters\"),
(\"resource-adapter\" => \"ra16outij.rar\")
Both this use case are normal and very frequent because resource-adapter
defined in standalone.xml should be considered multiple configuration
(activation in jca slang) on the same deployed rar.
Actually I wasnt able to grasp this to full extent - if this kind of anonymous resource
definition is a requirement from specs or something forged in IJ or AS7/8 itself.
I still have to
cover all use cases, but those 2 at least needs to be fixed.
the easiest solution is to make "id" mandatory, but I have to double
check it is sufficient for programmatic activations (explicit call of
service like HornetQ is doing) and ironjacamar.xml ones.
If its not covered in testsuite or it did not make server explode, I might missed it.
If you agree I'll take the issue and I'll merge your patch on
and rework it a bit to cover all those use cases and possibly to solve
also WFLY-1776 (the problem here could be that xsd changes can't be
backported and it is a EAP case)
What I was led to believe is that this step is not required. It is perfectly
fine if user has "anonymous" activation, without id, as long as there is only
In case there is need for more than one activation, users need to provide proper
configuration, that is
WRT hornetq, if Im not wrong, each activation from hornetq subsystem has unique name,
each config entry has it unique( I may be off here though ).
Also, Im not sure about MDB annotation, this part of integration looked a bit fuzzy.
Existing tests pass, but Im not quite sure how this should look like for "IDed"
If you want to redo something feel free to mold it.
On 08/06/2013 03:29 PM, Bartosz Baranowski wrote:
> Finally I was able ( I think ) to nail the problem and forge fix. There are
> still some intermittent CI failures, but other than that CI looks clear.
> While I polish last parts it would be good to get feedback on changes,
> since impact on JCA integration is quite big.
> Fix removes all static/leaky code from ConnectorServices ( add relevant
> code to MSC service ), move away from static hashmap checks in favor of
> MSC service present/deployment/dependency and remove ability to create
> more than one activation for distinct model address.
> Relevant issues:
> wildfly-dev mailing list
wildfly-dev mailing list