Thanks for ur reply.
Let me put my problem in different way. I want to show EJBs and servlets information using some webpages in my application. I have to get them while the Jboss is running. I wanna know which all servlets and EJBs are deployed in the running server and hv to show in my application.