Hi JB,

I will look the example then... 
I understand the difference between SU and components you are talking about,
it is much more clear now.
Thank you for the anwser, i will be in the forum for a while because i'm
beginning to use the product, so we keep in touch.

Regards, Santiago.
 



Jean-Baptiste Onofré wrote:
> 
> Hi Santiago,
> 
> I think that you talk about service unit more than component.
> 
> A component is deployed at startup. I doesn't define any endpoint. To 
> use the component and deploy endpoints, you need to define service units 
> based on the component (a SU is based on one and only one component).
> 
> In your case, you can create a JDBC endpoint using the servicemix-bean 
> component. I have added a sample to do it:
> http://svn.apache.org/viewvc/servicemix/smx3/trunk/samples/database-bean/
> 
> Once you created your SU, you can dynamically deploy and undeploy it 
> using a JMX client for example.
> You can create another endpoint (based on the servicemix-bean component 
> too) responsible of your database endpoint deployment.
> 
> I hope it helps.
> 
> Regards
> JB
> 
> Santiago Montico wrote:
>> Hi, 
>> 
>> I want to know if i can create & deploy a new jdbc binding component at
>> runtime in order to create a new webservice to expose information from a
>> new
>> database (the datasource for this database is not defined yet) the one
>> will
>> be defined at runtime by the user.
>> The binding component could be defined using the datasource or using a
>> direct connection doesn't matters by now...
>> 
>> Is this kind of hot deploy possible in service mix 3.3 ? In service mix 4
>> is
>> possible if i create the binding component as a bundle and then deploy
>> this
>> bundle using maven?
>> 
>> If it possible, could you give me examples of doing that? or a reference
>> example?
>> 
>> Thanks, Santiago.
>> 
>> 
>> 
>> 
>> 
>> 
> 
> -- 
> Jean-Baptiste Onofré
> ---------------------------------
>   HomePage
> http://www.nanthrax.net
> ---------------------------------
>   Contacts
> [email protected]
> [email protected]
> ---------------------------------
>   OpenSource
> BuildProcess/AutoDeploy
> http://buildprocess.sourceforge.net
> Apache ServiceMix
> http://servicemix.apache.org
> -----------------------------------
> PGP : 17D4F086
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JDBC-Dynamic-binding-component-tp24360546p24460853.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to