users@glassfish.java.net

GF 3.1.1: Programmatic Login vs. realm/defaultRealm

From: Bernhard Thalmayr <bernhard.thalmayr_at_painstakingminds.com>
Date: Wed, 7 Dec 2011 15:02:22 +0100

Hi experts, I have do have a utiltiy class (included in an EAR) which
performs 'ProgramaticLogin.login(<username>,<password>)'.


I thought I can make GF use a non-default realm for this operation by
sepcifying <realm> - element in sun-application.xml; however GF does not
pick it up but still uses the default realm which leads to an
authentication error.

Where's my mistake (in understanding or configuration)?

TIA,
Bernhard

-- 
IT-Consulting Bernhard Thalmayr
- Painstaking Minds -
83620 Vagen (Munich area)
Germany