On 9/9/07, ant elder <[EMAIL PROTECTED]> wrote: > > Just a fyi, i've picked up on the recent distributed node changes and API > for that and started trying to get the webapp distro working with that. > I'd > like to get distributed nodes working for both the webapp distro and the > Tuscany Geronimo integration so that they can be part of a Tuscany > distributed system, starting with the webapp distro as its easier to work > with. > > If you build distribution/webapp and deploy the war to tomcat it starts up > as NodeB for the distributed calculator sample. Right now you still need > to > run a separate DomainNode, probably better to get that integrated into the > webapp somehow, maybe have another web.xml init-param to say if it should > run the domain components or not. > > It doesn't quite work yet, the webapp joins the domain but component > invocations fail, i think the url's may be getting calculated incorrectly. > > ...ant > Hi ant
The initial problem is that binding-sca-axis2 is not included in the libs for the webapp so there is no remote sca binding support Fixing though uncovers a bit of a problem. The URL on which a service is provided doesn't match the URL present in the model in the case of webapps. This is, of course, because Tomcat (or whatever) is already started on a port when the application is contributed. However the sca model isn't aware the the service is running at a different end point than was requested. I use the url in the model when registering the endpoints with the registry so the wrong one is put out there. There has been a thread recently discussing how to get URLs out of the servlet container so I'm going to investigate a bit. If I'm just missing something really obvious here let me know. Simon
