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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...