Im using org.jboss.security.ClientLoginModule to
> access remote EJB deployed in JBOSS.
> My EJBclient is a class which is having methods to
> access different services in the EJB.
> Im using Service Locator pattern and in each method
> i need to call the LoginContext.login() method.
> How can I optimise that. The EJB Client is a
> singleton. My aim is to call the login method only
> once.
> I did this by move the login to the constructor.
> After that i got the error
>
> java.rmi.ServerException: EJBException:; nested
> exception is: javax.ejb.EJBException:
> checkSecurityAssociation; CausedByException is:
> Authentication exception, principal=null
>
> How can I achieve this.
>
> Thanx,
>
> Rahjesh.