[snip]
Luciano Resende wrote:
I have fixed this under revision #561972, we now utilize the
contribution file name or it's location (in case of a folder) to
construct the contribution URI.
On 7/30/07, Luciano Resende <[EMAIL PROTECTED]> wrote:
Looks like DefaultSCADomain is always setting contributionURI to
empty string. With the current behavior, can we have side effects by
using the contributionURI as the scope for HelperContext ?
Here is a output I get after setting a System.out inside
DefaultSCADomain(line 113) and ImportSDOPostProcessor (line 117), and
then executing the helloworld-ws-sdo sample.
contributionURI =>
HelperContext ID:
contributionURI =>
HelperContext ID:
addServletMapping port: 8085 path: /HelloWorldService
Injected helloWorldService
Called getGreetings
Thoughts ?
I've just started to look into this and I'm not quite sure how
associating an SDO HelperContext with a contribution URI is going to
work. I may be missing something as I've not looked at HelperContext for
a while.
Here's the scenario that I'm interested in:
- I'm using XSDs to describe my business data, for example
CustomerBusinessObject.xsd describes http://myns#CustomerBusinessObject
representing a Customer business object.
- I'm using SDOs as well, and I have generated an SDO class for my
business objects: myns.CustomerBusinessObject
- I'm using CustomerBusinessObject in all my applications so I have
packaged CustomerBusinessObject.xsd and myns.CustomerBusinessObject in
an SCA contribution which I'm going to reuse everywhere: Customer.jar
- I'm developing a CustomerService SCA service component, in
contribution CustomerService.jar
- CustomerService.jar uses SCA imports to import the Customer business
object XML namespace and generated SDO class:
<import namespace="http://myns" location="Customer.jar"/>
<import.java package="myns" location="Customer.jar"/>
- the CustomerService component gets the HelperContext associated with
CustomerService.jar (right?), and uses it to work with a
CustomerBusinessObject.
Does that basic scenario work? Will the SDO HelperContext obtained in
CustomerService.jar see the SDO metadata and class for
CustomerBusinessObject from Customer.jar? I think it should :)
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]