Usually, data conversion between an EJB and OSB is done for you in OSB. However, when dealing with EJBs, there are times when automatic conversion is simply not possible. For example, if the EJB returns any of the following, the JAX RPC engine will not be able to infer the true type being returned:
In such cases, we can help the JAX RPC engine, by providing
converter classes that convert from these types to the supported types.
In this recipe, we will change the mapping of the
findAllCustomers method by using a
converter class ...