authentication - How I can create new user from Java class to GlassFish? -


i'm creating basic web application user can register , login. there registration, login , login error page. i'm using glassfish server authentication.

i know there possible way create new user java class or servlet when user created, saved 'file' realm of glassfish? more specific here's want do:

  1. create user using entity class defined.
  2. save user entity database.
  3. create new user username , password glassfish file realm.

this far have got requirement working quiet neat because must done manually everytime when want create new user. there anyway automate process?

i found solution this. solution need create jdbc realm in glassfish , config giving required information such jndi, user group table, user name column, password column, groups table , etc.

note: can't file realm, since in file realm save user details file , not read there.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -