Yes, that's the answer I wanted to hear and that's what I understood... but,
for example, if I create a SE using maven archetype, it does not create any
servicemix.xml. So, what can I do? I can create one (and where I place it?
How shall I use it?) or I can just deploy the application (creating a SU and
a SA)? In the latter case... how do I active my services? If you ever used
maven archetype for SE, you've noticed that it creates three classes:
MyBootstrap, MyComponent and MyEndpoint. The latter contains the process
method (inherited from MessageExchange) and it calls
activateEndpoint(service, endpoint): these variables are inherited from
Endpoint class... but which is their value? Is it there I must declare that
my service is "Pippo" and works over endpoint "Pluto"?
Many thanks in advance, Giuseppe


Gert Vanthienen wrote:
> 
> Guiseppe,
> 
> As far as I understand it, there are two main ways of configuring 
> endpoints, services, ... in ServiceMix.
> 
> The first one is static configuration, where you will add all 
> information about endpoints, routing, services, ... to the same 
> servicemix.xml file that already contains the container configuration.  
> This allows you to easier embed ServiceMix in e.g. a web application or 
> a stand-alone GUI application.  You can build this type of configuration 
> using Maven (and the JBI plugins), but you can also write an Ant script 
> that does the necessary work for you.  There is even an option to embed 
> the ServiceMix container in the Maven build script (for testing purposes)
> 
> The second way of configuring endpoint, services, components, ... in 
> ServiceMix is by using deployment/installation.  In this case, you have 
> an instance of the container running (e.g. stand-alone in it's own VM) 
> and you want to add/remove components and service assemblies.  Depending 
> on your own development environment, you can again choose between Ant 
> and Maven for deployment/installation.  Both of them have special 
> tasks/plugins to help you do this.  In addition, there also is the 
> hot-deployment feature, which allows you to simple copy the component 
> (to the install directory) or the service assembly (to the deploy 
> directory) to get them deployed.
> 
> In summary, you can choose the tool that best matches your current 
> environment (Ant or Maven) and use either one of them to build and 
> deploy/install a static or dynamic configuration of your artifacts.
> 
> Does this answer your question or am I only adding to the confusion?
> 
> Gert
> 
> beppe82 wrote:
>> Hi, I think the documentation isn't perfect respect deployment and
>> installation of components.... can you explain me the differences between
>> the methods written here , please?
>> http://incubator.apache.org/servicemix/4-examples.html
>> Thank you very much
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/differences-between-deployment-and-installation-methods-tf3528462s12049.html#a9851894
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to