Include the class file in your ear file and deploy it. If you want to use this loginmodule with more than one ear file then it must be sufficient to packeage the class file into a separate jar and put it in the classpath.
i have told you that ,we have written the security class , so whenever a client is requesting for an EJB this security class should be invoked to validate username and password, we have number of EJBs , so we cant put this class with all EJBs, so we need an independent implementaion, on the same time the class should be used for all the client too, thank you for your previous answer if you understtod my problem please help me,
On the server side, you just have to put your classes in a jar (only the classes in the jar) and put it in the $JBOSS_HOME/server/default/lib folder. Then just configure your ejb using the jboss.xml and web.xml files and configure the server using the login-config.xml. The access to ejb is now secured.
On the client side, just use the ClientLoginModule, it will use the right LoginModule when you will try to access an ejb.
I hope I have understood your problem.
Thank you for your answer, i have understood the server side implementation. But still i am looking for a client ecample using ClientLoginModule, if you can give me an example it will be very helpfull,
thanx in advance
Read the first post in this forum, the JAAS howto.
dear mr.scott stark,
the document you have specified is worth for nothing, i need a simple client that implementd using ClientLoginModule, if anybod have a very simple eample please send me.
my mail id is email@example.com.
please make it fast, we are looking for you
The client discussed in the section 'Test the tutorial1.ear deployment from Java Client' is a very simple example. If that is not adequate you are out of luck.