Kylin Soong
public class BootModuleLoader extends ModuleLoader {
public BootModuleLoader() throws IOException {
super(new ModuleFinder[]{
new BootstrapClasspathModuleFinder(),
new BootstrapModuleFinder(),
new ClasspathModuleFinder(),
new ContainerModuleFinder(),
new ApplicationModuleFinder(),
new FlattishApplicationModuleFinder(),
});
}
@WildFlyExtension(module = "org.jboss.teiid", classname = "org.teiid.jboss.TeiidExtension")
@MarshalDMR
public class TeiidFraction extends Teiid implements Fraction
@Inject
@Named(DefaultSocketBindingGroupProducer.STANDARD_SOCKETS)
private SocketBindingGroup group;
this.group.socketBinding(new SocketBinding("teiid-jdbc").port(this.jdbcPort));
this.group.socketBinding(new SocketBinding("teiid-odbc").port(this.odbcPort));
@Inject
@Any
private Instance infinispan;
infinispan.cacheContainer("teiid-cache",
cc -> cc.defaultCache("resultset")
.localCache("resultset-repl",
c -> c.lockingComponent(l -> l.isolation(LockingComponent.Isolation.READ_COMMITTED))
.transactionComponent(t -> t.mode(TransactionComponent.Mode.NON_XA))
.evictionComponent(e -> e.strategy(EvictionComponent.Strategy.LIRS).maxEntries(1024L))
.expirationComponent(e -> e.maxIdle(7200000L)))
.localCache("resultset",
...