Yep, but the problem is little bit different. I have an application(EAR) wich has its own database with users. And I don't want customer to use Glassfish admin console to configure security. Actually I want to configure realm at some place in my application with my connection data. So after deployment it must appear in Glassfish configuration. For example I can create my own connection pool via sun-resources.xml so I dont need do it from admin console.
[Message sent by forum member 'shambalaxx']
http://forums.java.net/jive/thread.jspa?messageID=398404