[Design of JBoss ESB] - Re: Http Gateway - requirements please...
by Kevin.Conner@jboss.com
"tfennelly" wrote : 1. Allowing the context to be the bus specific part, defined on the bus (in the provider section) and allowing it to be whatever the user decides i.e. no artifical constraints/prefixes such as "http" etc.
No, please keep the context as it is for now i.e. the name of the war file matching the esb deployment.
"tfennelly" wrote : 2. Allowing the urlPattern to be a listener specific "filter" that filters certain requests off the bus (context) referenced by the listener's busrefid. Again, this can be whatever the user decides.
We should certainly allow the user to specify the urlPattern provided that we make sure that there are no conflicts. Adding a prefix to the url is a simple and straight forward way to make sure that these never conflict with the EBWS.
"tfennelly" wrote : In the case of EBWS, there wouldn't be an explicit bus or listener definition, so it's context and urlPattern could be something implied from the service definition e.g. context as "ebws" and listener urlPattern as "${service.category}/${service.name}" etc ?
This is already how it works for EBWS, albeit without any prefix.
Kev
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245069#4245069
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245069
16 years, 8 months
[Design of JBoss ESB] - Re: Http Gateway - requirements please...
by dward
"Kevin.Conner(a)jboss.com" wrote : "dward" wrote : First, why can't ${service.category} be the context?
| This is done per esb deployment so there could easily be conflicts with other esb deployments (services in same category) or even other war deployments.
I don't see why having multiple services in the same category would cause a problem. Brainstorm:
- new ${service.category} + new ${service.name} = deploy a new war with ${service.category} as the context, which contains a servlet which dynamically routes the request to the appropriate ESB service (via ServiceInvoker) based on parsing the uri path for ${service.name}.
- existing ${service.category} + new ${service.name} = no deployment change necessary because the servlet will dynamically route based on the new ${service.name}
- existing ${service.category} + remove ${service.name} = no deployment change necessary, *unless* there are no more ${service.name}'s associated with that ${service.category}, at which point the context (webapp) is undeployed.
Concerning "other war deployments", this will always be an issue no matter what we do. Even if we come up with a single context name that sounds very ESB-specific, there's still the chance someone could have named their war that, too. We just have to have a warning in the documentation about this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245055#4245055
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245055
16 years, 8 months