Java Reference
In-Depth Information
At the moment, our application provides just two functions: book for booking a seat
and list for listing all the theatre seats. In the next sections, we will enrich our ap-
plication by adding some more commands.
Adding user authentication
If you are running this example from a client that is located on the same machine
as the application server, the remoting framework will silently allow communication
between the client and your EJBs classes. On the other hand, for a client located
on a remote system, you would require to provide authentication for your requests.
In order to add an application user, launch the add-user.sh (or add-user.bat )
script that is located under JBOSS_HOME/bin :
Here's a transcript of a user creation example:
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User
(application-users.properties)
(a): b
Enter the details of the new user to add.
Realm (ApplicationRealm) :
Username : ejbuser
Password :
Search WWH ::




Custom Search