-
1. Re: Source of the etc property files used when a child container is created in fabric
grgrzybek Jun 10, 2014 7:19 AM (in response to objectiser)Hi Gary
There are 5 implementation of child container creators (JClouds, Docker, SSH, OpenShift, Child). ChildContainerCreator just does this: https://github.com/apache/karaf/blob/karaf-2.3.x/admin/core/src/main/java/org/apache/karaf/admin/internal/AdminServiceImpl.java#L259-L304, i.e., it copies some (not all) resources from root's
etc
directory with some filtering and String replacements.regards
Grzegorz Grzybek
-
2. Re: Re: Source of the etc property files used when a child container is created in fabric
objectiser Jun 10, 2014 7:49 AM (in response to grgrzybek)Hi Grzegorz
Thanks for the response. I've tried unpacking a fresh fuse 6.1.0-redhat-379 distribution, overwriting the /etc/jre.properties file with the one attached (which has javax.xml.crypto packages added), and when I run:
fabric:create --zookeeper-password admin
fabric:container-create-child root child
the resulting jboss-fuse-6.1.0.redhat-379/instances/child/etc/jre.properties no longer has the additional packages.
Have I misunderstood something?
Regards
Gary
-
jre.properties.zip 1.7 KB
-
-
3. Re: Re: Re: Source of the etc property files used when a child container is created in fabric
grgrzybek Jun 10, 2014 10:21 AM (in response to objectiser)1 of 1 people found this helpfulHi Gary
Sorry for the delay. I've checked how does it work in practice. Unfortunately the resources are not copied from the root instance's
etc/jre.properties
directory buf from resources oforg.apache.karaf.admin.core
bundle. The url is like this:bundle://21.0:1/org/apache/karaf/admin/etc/jre.properties
.You can see this code here: https://github.com/apache/karaf/blob/karaf-2.3.x/admin/core/src/main/java/org/apache/karaf/admin/internal/AdminServiceImpl.java#L845.
Maybe it'd be good enhancement to copy resources from parent instance?
regards
Grzegorz Grzybek
-
4. Re: Re: Re: Source of the etc property files used when a child container is created in fabric
objectiser Jun 10, 2014 10:29 AM (in response to grgrzybek)No problem Grzegorz - thanks for the details.
Not sure whether making such changes would generally be required. We'll probably need discussions on the root cause of our problem and then might get back to you on how to move forward.
Thanks again.
Regards
Gary
-
5. Re: Source of the etc property files used when a child container is created in fabric
akhettar Jul 24, 2014 8:26 AM (in response to grgrzybek)Hi Gregorz
We hit the same issue. We customise fabric distributions and add the required entries into jre.properties but never gets copied into the child container. So we have to stop the container, update the jre.properties and restart the container again. This is causing the automatic deployment to fail intermittently. It would be a good enhancement to copy resources from parent instance as you said. How likely this is going to be implemented? Should I create Jira issue for this?
Regards,
Ayache
-
6. Re: Source of the etc property files used when a child container is created in fabric
grgrzybek Jul 24, 2014 8:45 AM (in response to akhettar)Hello akhettar,
I suggest creating issue in Apache Karaf. You can also create issue here: https://issues.jboss.org/browse/ENTESB
regards
Grzegorz Grzybek
-
7. Re: Source of the etc property files used when a child container is created in fabric
akhettar Jul 24, 2014 10:09 AM (in response to grgrzybek)Hi Grzegorz
I have created a ticket but it ended up in a Jboss ESB project: [JBESB-3971] Source of the etc property files used when a child container is created in fabric - JBoss Issue Tracker. I couldn't find Jboss Fuse project in the drop down list, could you possible move it to the correct project?
Regards,
Ayache
-
8. Re: Source of the etc property files used when a child container is created in fabric
grgrzybek Jul 24, 2014 10:15 AM (in response to akhettar)I have moved this issue here: https://issues.jboss.org/browse/ENTESB-1736
Could you please create the same issue at Apache Karaf JIRA?
best regards
Grzegorz