JPA reference binding returns null in SwitchYard
Issue
- I created a SwitchYard application, based on the
rest-bindingquickstart, that uses a JPA service as a reference. - The problem I am getting is that the JPA persistence service is not returning the object persisted but
null.
@Service(OrderService.class)
public class OrderServiceImpl implements OrderService {
@Inject @Reference
private PersistenceService persistenceService;
@Override
public Order newOrder(Order order) {
Order persisted = persistenceService.save(order);
return persisted;
}
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
