Permalink
Browse files

Adding example of how to get caller's principal from an EJB

  • Loading branch information...
1 parent 10a8319 commit b453ac7b72ab87639d920ddca31971d7a21b6e81 @kylape committed Dec 18, 2012
@@ -0,0 +1,4 @@
+Manifest-Version: 1.0
+Ant-Version: Apache Ant 1.8.2
+Created-By: 1.6.0_37-b06-434-11M3909 (Apple Inc.)
+Dependencies: org.apache.cxf
@@ -0,0 +1,3 @@
+### Example of how to get caller's principal in an EJB
+
+This EJB has one method that simply returns the caller's `Principal` via `EJBContext.getCallerPrincipal()`. It's also exposed as a webservice using basic HTTP authentication. The EJB uses the `other` security domain, so you can use the `add-user.sh` script to control access to the EJB.
Oops, something went wrong.

0 comments on commit b453ac7

Please sign in to comment.