Sonu Vijay wrote:
Hi,
I'm literally going nuts trying to figure things out. All I'm trying to do is write a small component and run it from a main program.
Running a component is the job of the container. Running a container from the command line is what the CLI handler does. To run a component from the command line - just do it:
merlin -execute http://dpml.net/merlin/tutorial/blocks/hello.block
I think if any of the enlightened souls here could write just a tutorial that beginners like me could follow to just create a Hello World component and use it from a main program, it would be of tremendous help. I don't care what container I use at this moment.
I not sure if your saying ...
"I want to embed a container under a main method"
or
"I want to test my component - how do I get access to it"
The two questions are very different. If you thinking about embedding there are several examples available. If you thinking about invoking a method on your component ... then you should be either creating a component with a dependency on the first, or creating a unit test.
Cheers, Stephen.
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
