Tutorial :Is it possible to implement an EJB in PHP, using REST?



Question:

Is it possible to create an EJB with implementation in PHP, accessible through REST (not RMI)?


Solution:1

EJB is programming model, where the EJB components are deployed and then managed by an application server which provides managed facilities to the EJB, like declarative transactions, dependency injection, security, etc. You can not code an EJB in PHP and deploy it in an app. server.

You can however code anything you want in PHP and expose that with REST, then access this REST resource from other EJB. But that doesn't make the REST resource code PHP be EJB.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »