users@glassfish.java.net

Re: Use Glassfish realm from within Java code

From: Michael Mellinger <mmellinger66_at_gmail.com>
Date: Mon, 30 Mar 2009 08:57:50 -0400

I don't know anything about Wicket but this tutorial describes how to
get a Java web app working with Glassfish.

http://www.netbeans.org/kb/articles/security-webapps.html

-Mike





On Mon, Mar 30, 2009 at 3:58 AM, <glassfish_at_javadesktop.org> wrote:
> Can anyone tell me how to connect to a realm that is defined in the Glassfish administrator from my Java code?
>
> In Glassfish I have defined a file realm and created some users in it. Then I tried to make a LoginContext in my Java app and get the users from the realm. I know that I don't 'need' to do this and that I could let Glassfish handle the logging in, but I'm using Wicket and would like to use there authorization mechanism. Which means I need to access that realm.
>
> Any advice?
>
> I'm using Glassfish v2.1-b60e-windows, Java 1.6, and Wicket 1.4-rc2.
>
> Regards,
> Linda
> [Message sent by forum member 'lvdpal' (lvdpal)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339550
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>