geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Chen <>
Subject Re: JAAS and OpenejbRemoteLoginModule
Date Thu, 10 Jan 2008 09:04:35 GMT
On Thu, Jan 10, 2008 at 09:10:49AM +0100, Jacek Laskowski wrote:
> On Jan 10, 2008 9:05 AM, Jonathan Chen <> wrote:
> > Here's one for the archives: After several iterations of trial and error,
> > it looks like the following configuration will work:
> Hi Jonathan,
> Can you tell me how you execute your remote app client and where you
> place the jaas configuration? If you could show the jaas-aware code
> snippet where the jaas configuration's used, it'd be superb.

I ran my EjbClient with:

	java -jar MyApp.jar

with MyApp.jaas in the same directory containing:

		org.apache.geronimo.openejb.OpenejbRemoteLoginModule required


The big trick was finding OpenejbRemoteLoginModule in
geronimo-openejb-2.0.2.jar and pulling the required dependancies.

My EjbClient snippet is pretty simple:

        loginCtx = new LoginContext (
                    new ClientCallbackHandler ("joeuser", "joespassword"));
    loginCtx.login ();

with the ClientCallBackHandler class based on:

Jonathan Chen <>
                                Don't worry about avoiding temptation,
                            as you grow older, it starts avoiding you.

View raw message