[jboss-dev-forums] [Design of POJO Server] - getting the ActiveProfile name/key
bytor99999
do-not-reply at jboss.com
Mon Apr 23 17:20:52 EDT 2007
So right now the ProfileService method getActiveProfile returns the active Profile object, and you can also get all the ProfileKeys from ProfileService.
But you can't getActiveProfileKey, or get the Key String directly from the Profile object.
So right now we get the active profile, get all the profile keys, loop through the keys, in the loop call getProfile(profilekey) and compare the Profile returned against the active Profile object to see if they are the same to figure if we have the correct profileKey matching the active profile.
Can we either add a getActiveProfileKey method to the ProfileService, or a getName or getKey in the Profile object.
Thanks
Mark
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040021#4040021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040021
More information about the jboss-dev-forums
mailing list