users@glassfish.java.net

Re: how to authenticate with remote jms client ? (glassfish v3)

From: <glassfish_at_javadesktop.org>
Date: Sun, 20 Jun 2010 07:00:56 PDT

hi, i have been looking at doing this also. it seems like glassfish authentication and mq authentation are not integrated. By default, in the embedded mode, connections to mq (port 7676) are authenticated against the open mq file store (managed by imqusermgr), while connections to glassfish (jmx, http, etc) are authenticated against glassfish realms.

i was trying to write a jaas login module for mq that would authenticate against the glassfish realm (kind of a proxy authentication). It is pretty messy, needing a loginmodule class, updates to config.properties for mq, and updates to login.conf for glassfish. i managed to get it to kind of work (i can post the details if you are interested), but for some reason glassfish does not initialize the realms on startup, so i actually have to access the admin console first which seems to initialize the realms, then i can make a connection to mq which will authenticate using the users in the glassfish realm.

maybe there is a better or proper way to do this?
[Message sent by forum member 'sje']

http://forums.java.net/jive/thread.jspa?messageID=475012