chkal / mvc-spec-migration-test

0 stars 0 forks source link

Relationship with JAX-RS #3

Closed chkal closed 9 years ago

chkal commented 9 years ago

Original issue MVC_SPEC-3 created by Santiago Pericas-Geertsen:

What is the relationship between an MVC controller and a JAX-RS resource class? In Jersey MVC, the same JAX-RS bean could handle browser and non-browser clients using content negotiation and methods producing different content types. Using this approach, the same service could be used for web clients and mobile clients (apps). How will this be supported in EE 8 when both MVC and JAX-RS are available?

chkal commented 9 years ago

Comment by Santiago Pericas-Geertsen:

An MVC controller will be a JAX-RS resource class whose instances are CDI-managed (JAX-RS supports other type of instances that aren't managed by CDI).