jca - Hazelcast 3.8 module and configuration possibility for wildfly 10.1? -
i prototype jee environment wildfly 10.1 , hazelcast 3.8. until have experience ancient jboss 4.2.3.ga.
i found existing resource adapter implementation based on older hazelcast 3.6 under https://github.com/hazelcast/hazelcast-ra. unfortunately couldn't deploy as-is on wildfly 10.1 since ironjacamar complained missing equals/hashcode methods (which isn't true since explictly overwritten in source code. deploying self-built snapshot of git master had same issue).
i ended migrating ra.xml configuration code proper javax.resource.spi annotations (@connector, @configproperty, @connectiondefinition) , adding javax.resource.referenceable interface implementation (don't know whether necessary). step hazelcast 3.8 easier - adding missing interface methods hazelcastconnectionimpl.
i still struggle deployment/configuration, here questions:
how should deployment structure jca adapter like? tested following approaches:
all-in-one: rar file containing of
cache-api-1.0.0.jar
,hazelcast-3.8.jar
,hazelcast-client-3.8.jar
,my-hazelcast-ra-impl.jar
, deployment descriptors.by-library: added new modules
javax.cache.api
(cache-api-1.0.0.jar
) ,com.hazelcast.hazelcast
(hazelcast-3.8.jar
,hazelcast-client-3.8.jar
)${wildfly_home}/modules/
, declared appropriate module dependencies injboss-deployment-structure.xml
. rar file containsmy-hazelcast-ra-impl.jar
,hazelcast.xml
, deployment descriptors.by-adapter: added new module
my.hazelcast.ra
(cache-api-1.0.0.jar
,my-hazelcast-ra-impl.jar
)${wildfly_home}/modules/
, declared appropriate module dependency injboss-deployment-structure.xml
. rar file containshazelcast-3.8.jar
,hazelcast-client-3.8.jar
,hazelcast.xml
, deployment descriptors.
where proper place deploy hazelcast.xml configuration file wildfly 10.1? seems need pack next resourceadapterimpl class (
my-hazelcast-ra-impl.jar
) class loader finds it , prefers on hazelcast-default.xml. contains global configuration options group/network. no cache definitions since caches should configured/created on-demand via cdi.- is there
conf
folder can deployhazelcast.xml
file separate binary rar contents? nice if hot-deployed (for prototyping) not mandatory. - should placed somehow inside subsystem configurations within standalone.xml? found similar cache-container configurations infinispan subsystem don't know how adapt hazelcast (since it's not own subsystem).
- is there
in wildfly management webinterface can find deployed rar under depoyments , in jndi view, not listed under configuration -> subsystems -> resource adapters. can create new entry there don't find advantage. what meaning of configuration option?
thank in advance
Comments
Post a Comment