]
Ondrej Chaloupka updated JBTM-3332:
-----------------------------------
Component/s: Transaction Core
Git Pull Request:
Add constructor to HornetqObjectStoreAdaptor to support named bean
lookup.
--------------------------------------------------------------------------
Key: JBTM-3332
URL:
https://issues.redhat.com/browse/JBTM-3332
Project: JBoss Transaction Manager
Issue Type: Enhancement
Components: Transaction Core
Affects Versions: 5.10.5.Final
Reporter: Miloslav Žežulka
Assignee: Miloslav Žežulka
Priority: Minor
When retrieving reference to the Object Store, Narayana can do a named bean lookup; more
specifically, the store manager [searches for the
bean|https://github.com/jbosstm/narayana/blob/master/ArjunaCore/arjuna/cl...]
named _communicationStore._
Part of the _initStore_ procedure referenced in the link is [class
loading|https://github.com/jbosstm/narayana/blob/f370005e0959ad2c1e799d6e...].
As can be decucted from the code, when we try to classload a named bean, the
implementation looks for a very specific constructor containing exactly one parameter and
the type of such parameter must end with _EnvironmentBean_.
Problem arises (as already noted in the quickstart
[
ArjunaJTA/object_store|https://github.com/jbosstm/quickstart/blob/master/...])
when we wish to use HornetqObjectStoreAdaptor as our communication store as no such
constructor currently exists.