Heureka,
I finally got it working after quite a bit of hassle but the final solution looks better than I expected.
The exception in post above was caused by the @Local annotation @Remote solved that one.
That made the @Inject working. But I was not able to use it from the EL expresstion in .bpmn. The following code actually got things working:
public class Imports {
private Imports() {
}
@Produces
@Named("testBean")
private ITestBean getTestBean() throws NamingException {
return (ITestBean) new InitialContext().lookup("java:global/Process-utils-ejb/TestBean");
}
}
Thank you, and I hope it helps someone not to burn so much time finding the solution
Adam