<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hello,<br>
<br>
I’ve got an issue with my subsystem
(<a class="moz-txt-link-freetext" href="https://github.com/wildfly/wildfly/tree/master/transactions">https://github.com/wildfly/wildfly/tree/master/transactions</a>) where
I cannot access BeanManager or UserTransaction from JNDI (I can
however lookup datasources). This error is currently happening
during periodic recovery i.e. on PeriodicRecovery thread. My
assumption is that the CDI and EE JNDI environment are not
initialized because PeriodicRecovery extends Thread and was created
with the “new” operator rather than ManagedThreadFactory and I know
that EE apps are meant to use this approach to ensure their
environments are initialized correctly - does this restriction apply
to subsystems too? One issue I am coming up against during
prototyping is that I’m not sure how to get the ManagedThreadFactory
during our subsystems boot time as it does not appear in JNDI.<br>
<br>
I would like to know if it is possible to inject the
ManagedThreadFactory into my subsystem so I am not reliant upon its
availability in JNDI.<br>
<br>
Thanks,<br>
Gytis<br>
<meta charset="utf-8">
</body>
</html>