[jboss-dev-forums] [Design the new POJO MicroContainer] - ProfileService.getRunningProfileName() ?
charles.crouch@jboss.com
do-not-reply at jboss.com
Tue Feb 6 11:39:59 EST 2007
So we need an api to return the name of the profile which is currently running on the server. In the current tests we just hardcode it to default:
| InitialContext ctx = super.getInitialContext();
| ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
| activeView = ps.getViewManager();
| ProfileKey defaultKey = new ProfileKey("default");
| activeView.loadProfile(defaultKey);
What about:
String ProfileService.getRunningProfileName()
This would return "default", "all" depending upon how the server was started. In the future if you're accessing the ProfileService while the server was not running this would just return null.
Thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012015#4012015
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012015
More information about the jboss-dev-forums
mailing list