561N/AIt tests the security feature of JavaEE service engine. JavaEE SE is used on consumer as well as on the provider side.
561N/AAn EJB webservice is invoked by a servlet that requires authentication. This webservice method returns the caller principal associated with the invocation.
911N/AA temporary file user is created in this test.
561N/AHere is the invocation flow-
919N/A1. Standalone client invokes the servlet after passing proper user credential.
919N/A2. Apserver invokes the servlet with a Principal.
919N/A3. Servlet calls the EJB webservice.
919N/A4. EJB webservice returns the caller principal associated with the EJBContext.
919N/A5. Servlet sends the returned value of EJB webservice in the response.
919N/A6. Client checks whether the returned principal matches with the one it was invoked.