[jboss-as7-dev] Request for review of DomainServletApi bridge
Scott Stark
sstark at redhat.com
Thu Jun 9 16:59:43 EDT 2011
I think I'll do this as a new module that depends on the domain-api-http
and web modules rather than make it part of the jbossweb piece and treat
it as another interface under managment-interfaces in the standalone
domain model. If that is the case, then the domain controller does not
apply, correct?
On 6/8/11 2:24 PM, Brian Stansberry wrote:
> No, org.jboss.as.domain.controller.DomainController.SERVICE_NAME is for
> a service that only runs in the DC process. A server process will have
> org.jboss.as.server.Services.JBOSS_SERVER_CONTROLLER whether it's in
> domain mode or standalone mode.
>
> A quick solution is inject the o.j.a.server.ServerEnvironment (under
> name org.jboss.as.server.ServerEnvironmentService.SERVICE_NAME) and in
> your start() method check the getLaunchType() property. It will return
> one of:
>
> public static enum LaunchType {
> DOMAIN,
> STANADALONE,
> EMBEDDED
> }
>
> If DOMAIN, don't install the servlet.
>
> (I'll fix the typo in the enum!)
>
> Better would be to catch this on the domain controller when it processes
> the profile. With some stuff I'm doing on a branch that will be easy
> enough to do; if you assign a JIRA to me to do that, I can add it when I
> merge your stuff into the branch. Or tell you how to do it if my branch
> is merged before you're ready.
>
More information about the jboss-as7-dev
mailing list