I'd like to make some more complete samples for the JavaScript componentType
so where should they go?

JavaScript works a bit differently from Java so I think there should be
separate samples for things like:
- basic helloworld
- properties
- service references
- a couple for E4X (if thats going)
- importing packages and classes (for  SDO)
- how to do initialization when a script is loaded
- probably some others...

Are these tests or samples? Should they be in the JavaScript project or
Samples project?

I'm inclined to keep them in the JavaScript project as testcase/samples
instead of keeping on adding things to Samples.

I'd also quite like to have them coded just like a user would, using a J2SE
client doing new TuscanyRuntime/getModuleContext/locateService, and with an
sca.module file for each one so its obvious what SCDL is required. Thats not
possible though if they're all in the JavaScript project as each project can
only have the single sca.module file in the top level of the project. That
was discussed here:
http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200602.mbox/[EMAIL 
PROTECTED]

An alternative would be to have a JavaScript sub project in samples and add
all these samples as sub projects to that.

Any comments or suggestions?

   ...ant

Reply via email to