Problem:
If we deploy the given example class within a simple PoC project, which contains only a handful classes, the deployment succeeds.
If we deploy our adapted implementation within a production application, the deployment fails with an AS-DEPLOYMENT-00026 error:`
As workaround we have removed the @Resource annotation and instead do a manual JNDI look within @PostConstruct.
Question:
Does Payara Micro have an issue with deploying connection factories that are defined with @ConnectionFactory annotation and not in domain.xml?
Since manual JNDI lookups cannot be the solution, what is the suggested configuration for connection factories, if configuration by @ConnectionFactory annotation does not work in all cases?
Versions:
PAYARAMICRO_VERSION=5.2020.4
We have implemented a SQS Sender occording the "official" Payara Dokumentation (https://github.com/payara/Cloud-Connectors/tree/master/AmazonSQS) using the given example from Steve Millidge (https://github.com/payara/Cloud-Connectors/blob/master/AmazonSQS/AmazonSQSExample/src/main/java/fish/payara/cloud/connectors/amazonsqs/example/NewTimerSessionBean.java). We have replaced the method annotated with @Schedule by a method "public void sendMessage(String message)"
Problem: If we deploy the given example class within a simple PoC project, which contains only a handful classes, the deployment succeeds. If we deploy our adapted implementation within a production application, the deployment fails with an AS-DEPLOYMENT-00026 error:`
As workaround we have removed the @Resource annotation and instead do a manual JNDI look within @PostConstruct.
Question: Does Payara Micro have an issue with deploying connection factories that are defined with @ConnectionFactory annotation and not in domain.xml? Since manual JNDI lookups cannot be the solution, what is the suggested configuration for connection factories, if configuration by @ConnectionFactory annotation does not work in all cases?