Re: Spring & Blueprint, bean reference sharing

2015-05-06 Thread panneerselvam
Hi, Thanks it is working with the workaround as mentioned below, while defining the bean and datasource reference inside Bundle B , *the issue got resolved * However i am expecting this to work by imoporting the appcontext.xml from Bundle A inside Bundle B as

Re: Spring & Blueprint, bean reference sharing

2015-05-06 Thread Jean-Baptiste Onofré
You can "import" the Spring app context as spring. The way to share is by the service registry (it's the purpose !). Regards JB On 05/06/2015 12:39 PM, panneerselvam wrote: Hi, Thanks it is working with the workaround as mentioned below, while defining the bean and datasource reference inside

Re: blueprint link in developer's manual

2015-05-06 Thread Scott Lewis
I'm still getting 404 Not Found for: http://karaf.apache.org/manual/latest/developers-guide/blueprint.html Thanks. On 5/1/2015 8:56 AM, Jean-Baptiste Onofré wrote: Thanks Scott for the report. I will fix the link. Regards JB On 05/01/2015 12:20 AM, Scott Lewis wrote: Howdy, In the latest

Re: Hibernate OSGi Integration

2015-05-06 Thread Andrew Phillips
I have used Hibernate successfully (including Hibernate Search) in an OSGI / Karaf environment. If you have some specific questions, i’d be more than happy to help. I have found that Hibernate has some examples of OSGI implementation using Karaf. Karaf has the “features” ability to add

Re: Hibernate OSGi Integration

2015-05-06 Thread James Carman
The newer versions of Hibernate are definitely more OSGi-friendly, so I would start there if you are "green-fielding" your project and have that opportunity. On Tue, May 5, 2015 at 11:58 PM Jens J Parappallil < jens.parappal...@ibsplc.com> wrote: > Hi, > > > > I am planning to integrate hiberna

Loggin in cluster can't be configured?

2015-05-06 Thread sditlinger
Using ServiceMix 5.4/Karaf 2.4.1/Cellar 2.3.4 I have 3 nodes in cluster - 2 slaves are in standby for failover. These two nodes are constantly logging "locking" from org.apache.karaf.main.SimpleFileLock at the INFO level. The log files build up at the rate of over 1 GB per day. It seems that

Re: blueprint link in developer's manual

2015-05-06 Thread Jean-Baptiste Onofré
Sorry Scott, I forgot to fix. I'm doing it now. Regards JB On 05/06/2015 03:36 PM, Scott Lewis wrote: I'm still getting 404 Not Found for: http://karaf.apache.org/manual/latest/developers-guide/blueprint.html Thanks. On 5/1/2015 8:56 AM, Jean-Baptiste Onofré wrote: Thanks Scott for the repo

Re: Hibernate OSGi Integration

2015-05-06 Thread Jean-Baptiste Onofré
Hi Jens, using the latest hibernate feature provided by Karaf, it should work fine. Especially, in combination with Aries JPA (how deals with the EntityManager as a service), it should be OK ;) Regards JB On 05/06/2015 05:43 AM, Jens J Parappallil wrote: Hi, I am planning to integrate hibe

Re: Loggin in cluster can't be configured?

2015-05-06 Thread Jean-Baptiste Onofré
Hi, Karaf main module use java.util.logging.Logger for logging (as pax-logging is started after). The BootstrapLogManager started by the Main loads the org.ops4j.pax.logging.cfg file: String log4jConfigPath = System.getProperty("karaf.etc") + "/org.ops4j.pax.logging.cfg";

Re: Loggin in cluster can't be configured?

2015-05-06 Thread sditlinger
Yes, just tried that. Didn't work. Below is the relevant section of the org.ops4j.pax.logging.cfg file. None of it seems to affect the log file contents, though it is sent to the file name specified. log4j.logger.org.apache.karaf.main=WARN log4j.logger.org.apache.karaf.main.SimpleFileLock=WARN

Re: Loggin in cluster can't be configured?

2015-05-06 Thread sditlinger
At what point in the startup process does the PAX logger get loaded? If a slave node's status is "Starting" (as shown in the master node's "admin:list" output), what logger or logging configuration is controlling logging? -- View this message in context: http://karaf.922171.n3.nabble.com/Log

Re: Loggin in cluster can't be configured?

2015-05-06 Thread sditlinger
If I change the log file name in the org.ops4j.pax.logging.cfg file, it does change file where stuff gets logged, so the cfg file is being read. Just seems like some of the properties from cfg file are being ignored. e.g. log4j.appender.out.file=${karaf.data}/log/other.log changes the actual lo

Re: Loggin in cluster can't be configured?

2015-05-06 Thread Jean-Baptiste Onofré
It's what I said: the main doesn't use pax-logging (as pax-logging is loaded as bundle later), so it uses only part of the org.ops4j.pax.logging.cfg content. Actually, it use only the appender: private static final String LOG4J_APPENDER_FILE = "log4j.appender.out.file"; ... String getLog

Re: Hibernate OSGi Integration

2015-05-06 Thread Christian Schneider
Hibernate works quite smothly in karaf 3. In my tutorial http://www.liquid-reality.de/x/C4DK I describe a complete example. As you can see it works almost without any quirks. The only special setup was to declare some special Import-Package statements in the model bundle to make load time weavin

RE: Hibernate OSGi Integration

2015-05-06 Thread Jens J Parappallil
Thanks everyone for the responses . But to be a bit more specific how does hibernate deal with entity reloading ie ones a version of entity is registered and the session factory created how does it work when the entity class is modified/refreshed as part of a bundle update ?. I definitely need

Re: Hibernate OSGi Integration

2015-05-06 Thread Christian Schneider
Hi Jens, unfortunately reloading currently does not work in aries. See https://issues.apache.org/jira/browse/ARIES-1270 . I was not yet able to find where the problem is. I am working on a separate code that might become the next major version of aries jpa. In this code reloading works. You c

Re: Hibernate OSGi Integration

2015-05-06 Thread Jean-Baptiste Onofré
Hi, I second Christian there. Christian is doing a great job to improve Aries JPA code, more flexible, more reliable. We are working on merging Christian's changes into the Aries JPA codebase. Regards JB On 05/07/2015 07:38 AM, Christian Schneider wrote: Hi Jens, unfortunately reloading c

RE: Hibernate OSGi Integration

2015-05-06 Thread Jens J Parappallil
Wow this looks promising, I will take a look into your work and see If I could use some and hopefully contribute some patches as a result of it :) Thanks Again Jens -Original Message- From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Sent: 07 May 2015 11:28 To: user@karaf.apache.org