Re: server code shared with clients

2004-06-01 Thread Stephen McConnell
Eike Stepper wrote: the following code lines do not work: ContainmentModel containmentModel = kernel.getModel(); ReferenceDescriptor reference = new ReferenceDescriptor(Identifiable.class.getName()); ComponentModel componentModel = (ComponentModel) containmentModel.getModel(reference)

Re: server code shared with clients

2004-06-01 Thread Eike Stepper
"Niclas Hedhman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > On Tuesday 01 June 2004 17:39, Eike Stepper wrote: > > i have no jar for now and i usually don't use maven when i work in eclipse. > > i manually copied pieces from the merlin tutorial (as i showed in former > > p

Re: server code shared with clients

2004-06-01 Thread Niclas Hedhman
On Tuesday 01 June 2004 17:39, Eike Stepper wrote: > i have no jar for now and i usually don't use maven when i work in eclipse. > i manually copied pieces from the merlin tutorial (as i showed in former > postigs), the eclipse builder compiles the source files to the bin folder > (and also copies

Re: server code shared with clients

2004-06-01 Thread Eike Stepper
"Niclas Hedhman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:<[EMAIL PROTECTED]>... > On Sunday 30 May 2004 02:49, Eike Stepper wrote: > > you are right. i'll try to let merlin run embedded in an eclipse plugin at > > client-side. in fact i already succeeded to port the "generic embedding" > >

Re: server code shared with clients

2004-06-01 Thread Eike Stepper
hi niclas, i have no jar for now and i usually don't use maven when i work in eclipse. i manually copied pieces from the merlin tutorial (as i showed in former postigs), the eclipse builder compiles the source files to the bin folder (and also copies all non-java resources). it doesn't seem to be

Re: server code shared with clients

2004-06-01 Thread Niclas Hedhman
On Tuesday 01 June 2004 16:48, Eike Stepper wrote: > ok, that sounds reasonable for jar archives and becomes important > when releasing the projet. but i'm at the very beginning of playing with > merlin. the sources are copied from the some of the tutorial chapters and > compiled into a bin-folder

Re: server code shared with clients

2004-06-01 Thread Eike Stepper
hi stephen, just to clarify, i have the feeling that the creation of the DefaultKernel does all the commisioning automatically: Factory factory = builder.getFactory(); Map criteria = factory.createDefaultCriteria(); criteria.put("merlin.deployment", new String[] { "bin"}); criteri

Re: server code shared with clients

2004-06-01 Thread Eike Stepper
"Stephen McConnell" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Eike Stepper wrote: > > > hi stephen, > > > > the "bin/BLOCK-INF/block.xml" looks like: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The ab

Re: server code shared with clients

2004-05-30 Thread Stephen McConnell
Eike Stepper wrote: hi stephen, the "bin/BLOCK-INF/block.xml" looks like: The above definition looks like a block.xml file that was packaged inside a jar file (in which case the enclosing jar is implicitly included in the classpath). In you scena

Re: server code shared with clients

2004-05-30 Thread Eike Stepper
hi stephen, the "bin/BLOCK-INF/block.xml" looks like: in HelloComponent.xinfo there is: http://avalon.apache.org/dtds/meta/type_1_1.dtd"; > hello 1.0.0 singleton hard and the concole shows: [DEBUG

Re: server code shared with clients

2004-05-30 Thread Stephen McConnell
Eike Stepper wrote: Yo! hi stephen, After adding the model via something like the model.addContainmentModel( url ) operation or as your describing above - what you have is a new sub-model within the container - however, the sub-model isn't wired-up yet. Once you have added all of the models you

Re: server code shared with clients

2004-05-29 Thread Eike Stepper
> Yo! hi stephen, > After adding the model via something like the model.addContainmentModel( > url ) operation or as your describing above - what you have is a new > sub-model within the container - however, the sub-model isn't wired-up > yet. Once you have added all of the models you want you n

Re: server code shared with clients

2004-05-29 Thread Stephen McConnell
Niclas Hedhman wrote: On Sunday 30 May 2004 04:19, Eike Stepper wrote: Do you mean getting it to run once it has been loaded? hmm, i've come to another question: the block seems to start running automatically. that could be ok, but how can i access it from the plugin? i'd like to call the start() m

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Sunday 30 May 2004 04:42, Niclas Hedhman wrote: > However, I am NOT sure how to effectively build the compModel ( a > DeploymentModel instance, which is either a component or a container ) in > an effective/quick way, and hope that Stephen can help you with that. Looking at the merlin/cli/.../

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Sunday 30 May 2004 04:19, Eike Stepper wrote: > > Do you mean getting it to run once it has been loaded? > > hmm, i've come to another question: the block seems to start > running automatically. that could be ok, but how can i access > it from the plugin? > > i'd like to call the start() method

Re: server code shared with clients

2004-05-29 Thread Eike Stepper
> Do you mean getting it to run once it has been loaded? hmm, i've come to another question: the block seems to start running automatically. that could be ok, but how can i access it from the plugin? i'd like to call the start() method on a component for example... /eike ---

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Sunday 30 May 2004 02:49, Eike Stepper wrote: > you are right. i'll try to let merlin run embedded in an eclipse plugin at > client-side. in fact i already succeeded to port the "generic embedding" > example to a plugin. the resulting DefaultKernel is obviously running and > can be shut down pro

Re: server code shared with clients

2004-05-29 Thread Eike Stepper
> To me it sounds that you expect the clients to be fairly 'heavy', in which > case the Merlin overhead could be considered fairly low, in terms of startup > time and memory requirement. you are right. i'll try to let merlin run embedded in an eclipse plugin at client-side. in fact i already succe

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Saturday 29 May 2004 22:00, Eike Stepper wrote: > if you really want, you're invited to have a look at my cdo project > (connected data objects), which is open source and hosted at > http://developer.berlios.de/projects/cdo. i've appended the original > project reg. request to get a fast impres

Re: server code shared with clients

2004-05-29 Thread Eike Stepper
[...] > That part of Avalon is fairly straight forward to understand and implement by > yourself outside the robust Merlin platform. well, i think i'll manage it ;-) > Facilities = Components that have access to the Merlin internals. To provide > the JMX (which is a facility (still in development

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Saturday 29 May 2004 20:46, Eike Stepper wrote: > do you basically suggest to enhance my signalling classes with full > support for avalon lifecycle control? It is your choice whether you want "full support" or "partial support", and that is why you need the question; "Where are the benefits

Re: server code shared with clients

2004-05-29 Thread Eike Stepper
hi niclas, thanks for your detailed answer. because i'm very new to avalon i had to think a while whether i understood it. do you basically suggest to enhance my signalling classes with full support for avalon lifecycle control? that would mean to deploy the avalon jars to the client (because of

Re: server code shared with clients

2004-05-29 Thread Niclas Hedhman
On Saturday 29 May 2004 16:09, Eike Stepper wrote: > could anyone suggest how to componentize my code on the one hand > and to deploy parts of it to a client without merlin on the other?! I think you first need to ask yourself; "What part of Avalon/Merlin will bring me the benefits in my system

server code shared with clients

2004-05-29 Thread Eike Stepper
hi there, i'm currently investigating how to provide a better infra structure to an existing client-server-application. this way i came to merlin (an alternative for me could be a plugin collection in a headless eclipse environment, but i'd prefer the merlin approach since it seems suited better f