executeAsynchService(ServiceRequestDTO, CorrelationId) throws FinancialServiceException (using EJB 3.1 @Asynchronous, JMS message will be sent back to caller using the correlation id to notify the caller if the service request was sucessful or not)
For each of these execute methods the Service Key is used to locate the correct EJB (e.g. OrderingEJB, Invoicing EJB etc. these maybe remote or local), this i can do using the key as driver for the JNDI lookup.
I'm struggling with how to invoke the EJB methods in a generic fashion.... i dont want to hard code methods names on client side and use reflection to perform the invocation on the EJB proxy.... is there a nice clean way to do this in JEE/CDI maybe?