Pages

Wednesday, May 1, 2013

Login page for ActiveMQ using Tomcat and LDAP

ActiveMQ doesnot come with login page.But for security issues some users might want to have login page to access. So for this I have tried to create a simple login page for ActiveMQ using Tomcat and LDAP. You can use Database or Tomcat instead of LDAP.


Here is a simple example of a login page in ActiveMQ.
Download the latest ActiveMQ from http://activemq.apache.org/download.html. Get the latest Tomcat from http://tomcat.apache.org/. Now lets get started with the coding. For this you have to create a login page.
And the logout page.
Add this in web.xml.
Now add this in main.jsp file inside the decorators folder in activemq for log off functionality.
Now add the appropriate realm to server.xml of tomcat. I have used ldap for authentication.So for ldap, in my case i have these properties.
Here is the folder structure of this project.

Now deploy the activemq in Tomcat. http://localhost:8080/activemq.

No comments:

Post a Comment