karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Two Karaf instances using one database
Date Fri, 15 Dec 2017 12:08:54 GMT
I will check, but it depends of the sync policy define on the node as you didn't 
use cluster:feature-install.

Give me time to complete 4.1.4 release preparation and I will test.

Regards
JB

On 12/15/2017 12:47 PM, Dominik Marciniszyn wrote:
> I did one more test. I've created simple environment based on two karaf
> instances with cellar and cellar-dosgi. I've take karaf 4.1.1 and cellar
> 4.1.1.
> 
> First I set up ports on karaf instances for allow to run both. Then I use
> command:
> install -s wrap:mvn:com.oracle/ojdbc6/11.2.0
> 
> Next I've installed:
> feature:install jpa jdbc pax-jdbc-config pax-jdbc-pool-dbcp2 pax-jdbc-oracle
> transaction
> 
> Then I've defined DS by using jdbc:ds-create command:
> jdbc:ds-create -dbName DBName -dt DataSource -dn oracle -dc
> oracle.jdbc.OracleDriver -u user -p passwd -url
> jdbc:oracle:thin:@localhost:1521:XE Name
> 
> I did it on both karaf instances without Cellar and both instances had
> defined DS. Then I've installed Cellar and Cellar DOSGI on both. After
> installation DS was still avaliable on both. After restart only first
> instance had DS defined, second not.
> 
> I attached file with logs from second Karaf instance.
> Logs.txt <http://karaf.922171.n3.nabble.com/file/t497885/Logs.txt>
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message