users@glassfish.java.net

Re: application-client.xml :: <callback-handler> ignores my class.

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Tue, 05 Dec 2006 14:22:18 -0600

Witold Szczerba wrote:
> Thanks for help!
> I will use v2 if it is working... :) I though that was some major
> incompatibility... I will fix that template file and enjoy new
> Glassfish version :)
>
> I have one more question. I was wondering what is the 'thing' that
> client is actually sending to server when accessing secured bean? Do
> you know that? Is that is something one can setup in in Context
> instance? In other words - can I send username/password/whatever else
> would be needed in some other way?
There is a technique called programmatic log-in. This documentation
<http://docs.sun.com/app/docs/doc/819-3659/6n5s6m58q?a=view> describes
how to use it, but basically your code can explicitly decide when and
how to log the user into the app server.

Note that if your app client uses annotations the app client container
must perform injection before your code gains control. This means that
programmatic login cannot be used to authenticate the user for
injection-related access to back-end resources.

 From here, it sounds as if getting GF v2 working to your satisfaction
is the best approach, but of course that is for you to decide!

- Tim
>
> Witek
>
> 2006/12/5, vince kraemer <Vince.Kraemer_at_sun.com>:
>> Witold Szczerba wrote:
>> > I've just tried Glassfish v2 b26 and my callback-handler is now
>> > invoked, that's great.
>> > Bad thing is that NetBeans 5.5 is not compatible with Glassfish v2 :(
>>
>> Please look at http://www.netbeans.org/issues/show_bug.cgi?id=90221.
>> This may be what you are running into...
>>
>> This issue includes information on working around this interoperability
>> issue between NB 5.5 and GF V2...
>>
>> Another work-around is to use the promoted builds 21 to 25 for a little
>> while.
>>
>> vbk
>> > I have tried v1 nightly build b15, it is dated 06.oct.2006, few days
>> > after v2 b20... but it has same problem as v1 b14, so I cannot provide
>> > my own CallbackHandler implementation :(
>> >
>> > Do you know any other way to change callback handler that would work
>> > in Glassfish v1?
>> > I have to brand my login module, so the logo of my customer would
>> > appear and it would look like part of my application... Any ideas?
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>