Thursday, January 04, 2007

WebLogic Server 9.2: 在Admin Console自訂Role Mapping

如果你管理一個跑在WebLogic Server上面的Web Application,你可以透過WebLogic Server內建的功能來管理User/Group以及Role之間的對應。如果不是透過這種方法,標準的做法就是透過web.xml來指定存取URL所需要的Role,以及透過weblogic.xml來指定User/Group以及Role之間的對應;很明顯的,後者這種方法非常不具備可管理性,因為這樣代表要新增Role就需要重新部署程式^^;

所幸,一般的Commercial Application Server通常都會讓應用程式在部署之後仍然可以動態更改User/Group以及Role。以WebLogic Server來說,這個功能可以直接在管理控制台裡面進行設定,並可以透過這樣的功能設定較一般權限控管更為細微的Policy,讓Role的對應不再只是靜態的存取,而是採取動態的運算來達到。

不過目前的Admin Console有些小問題,會造成所有locale設定成非en語系國家的都會遭遇到一些小錯誤。把語系改變成en_US就可以解決這個問題了。

powered by performancing firefox

2 comments:

Lok said...

I encounter the problem as you described in admin console. While adding new policy, exception is thrown from console. As you said, it can be fixed by changing the locale, how to do that? Can you describe in details?

Anthony Jen said...

You can change your "browser" locale in browser settings. As for this case, you have to change your browser locale to en_US.