JPA reference binding returns null in SwitchYard

Solution Verified - Updated -

Issue

  • I created a SwitchYard application, based on the rest-binding quickstart, 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.