Re: karaf PermGen space problem

2014-03-11 Thread Henryk Konsek
Hi,

> If
> this issue exists, can we not be safe in planning to do updates like that?

Oracle JVM keeps classes forever until instructed otherwise. Try to
enable garbage collector on PermGen memory space.

-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: RejectedExecutionException issue

2014-02-25 Thread Henryk Konsek
Hi,

> I faced a RejectedExecutionException  issue in camel.  Do you have any
> suggestion to fix it?

Please don't send the same message to all the possible mailing lists.
Choose one, explain your problem and wait for the answer.

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Running command script on startup

2014-02-12 Thread Henryk Konsek
Hi Dan,

> echo list | bin/karaf
> works, though might not be what you're looking for.

I'm thinking more about etc/shell.init.script, but for container
startup (not shell startup).

Cheers.

---
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Running command script on startup

2014-02-12 Thread Henryk Konsek
> Check the etc/shell.init.script file

Almost there, Richard :) . I was wondering if I can execute script on
container startup, not on shell startup.

Thank you.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Running command script on startup

2014-02-12 Thread Henryk Konsek
Hi,

Is there a way to create a script with some Karaf shell commands that
will be executed during the container startup?

Thank you in advance. Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Spring Data JPA

2014-01-31 Thread Henryk Konsek
Hi Daniel,

> I'm investigating moving from Virgo to Karaf. My application uses Spring
> Data, initially with JPA using EclipseLink.

Here are some of the reference examples I use when working with the
customers. All of them have working Pax Exam tests verifying the
setup.

a) Blueprint + EclipseLink -
https://github.com/hekonsek/fuse-pocs/tree/master/fuse-pocs-blueprint-eclipselink
b) Blueprint + OpenJPA + Spring Data JPA -
https://github.com/hekonsek/fuse-pocs/tree/master/fuse-pocs-blueprint-openjpa-springdata

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Pax Exam issue / Karaf 2.3.x

2014-01-17 Thread Henryk Konsek
Hi Charles,

What is the name of the test class from the drools-karaf-itest module
you are trying to execute?

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Third-Party Licensing Policy

2014-01-10 Thread Henryk Konsek
> I meant the [camel,servicemix]-extra projects from googlecode. It would be
> nice to have git repositories for the code.

Keep in mind guys, that Google Code supports git repositories. We have
migrated Camel Extra to git [1] few months back.

BTW I think that usage of Google Code repository [2] is somehow
regulated by the Apache Extras rules [3]. However to be honest I would
prefer to have Camel Extra at GitHub as well :) .

Cheers.

[1] http://code.google.com/a/apache-extras.org/p/camel-extra/source/checkout
[2] http://code.google.com/a/apache-extras.org/hosting/
[3] http://community.apache.org/apache-extras/faq.html

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Karaf samples/quickstarts

2014-01-08 Thread Henryk Konsek
Hi Krzysiek,

> I'd like to ask you whether we want to have some samples  in Karaf like in
> ServiceMix or JBoss Fuse

I think that all additional examples would be highly appreciated by
the community. There are many many use cases not covered by
documentation/books/blogs/GitHub.

One of the biggest repository of runnable samples is Fuse By Example
[1]. I also started to maintain my own [2] - oriented mainly on small
runnable PaxExam-based Maven projects that I can easily pick up when
working with the customers. I prefer to run Exam tests against the
vanilla Karaf.

Regarding the size of the examples - I prefer as small examples as
possible. Examples I sent to customers usually demonstrates single
issue.

If you have some sample you might share with the community - please do
share :) .

Cheers.

[1] https://github.com/FuseByExample
[2] https://github.com/hekonsek/fuse-pocs

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: karaf 3.0 : hibernate 4 feature

2014-01-03 Thread Henryk Konsek
Hi,

It will be great to have such feature officially in Karaf. Currently
we maintain our own [1] for Camel Extra Hibernate component and I will
be happy to migrate [2] to feature developed by Karaf community.

> mvn:org.hibernate/hibernate-envers/4.2.7.Final

Can we create dedicated feature for envers instead of keeping it here?
This is optional addition to Hibernate.

Cheers.

[1] 
http://code.google.com/a/apache-extras.org/p/camel-extra/source/browse/platform/karaf/features/src/main/resources/features.xml
[2] https://camel-extra.atlassian.net/browse/CAMEX-22

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Maven settings resolution

2014-01-02 Thread Henryk Konsek
Hi Jean,

> On Karaf 3.x, we switched to pax-url-aether instead of pax-url-mvn. So the
> artifacts resolution is like in Maven and can use Maven settings.
> If you use Karaf 2.x (so pax-url-mvn), the support is limited (you can use
> http.proxy JVM settings, that's pretty much all).

So summarizing above :
- Karaf 2.x doesn't read setting.xml at all
- Karaf 3.x reads settings.xml (including repositories)
Do I get it right? :)

Many thanks for the answer. Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Maven settings resolution

2014-01-02 Thread Henryk Konsek
Hi guys,

I'm trying to execute some PaxExam test suite on the customer machine.
Mentioned machine is behind the firewall and downloads Maven artifacts
via local Nexus instance.

I've googled a little bit about similar cases and found many forum
threads related to the topic, but no single web page or article
summarizing what is (and what is not) resolved from the local Maven
settings(.xml). For example Jean mentioned in this [1] forum thread,
that "some configuration from settings.xml are not used by Pax Url"
and for example ", " are not resolved and need
to be added explicitly to the Karaf repositories lists.

Is there a single piece of documentation (web page, blog article, etc)
regarding this topic that could be used as a reference I could use to
educate myself and the customers? Something that would make clear what
exactly is resolved from the setting.xml and what need to be
configured regardless of the setting.xml contents?

Cheers.

[1] 
http://karaf.922171.n3.nabble.com/Pax-url-does-not-use-maven-settings-td4026695.html

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Feature addition without running Karaf

2013-11-14 Thread Henryk Konsek
Hi Jean,

> It's not right: even with the data folder, the featuresBoot is read and
> used.

Has this behavior changed? It used to work as I described. If so, then
since which Karaf version? That might be useful information :) .

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: Feature addition without running Karaf

2013-11-14 Thread Henryk Konsek
> But when I start Karaf and list the features I don't see sample. Missed 
> something?

Option featureBoot is supposed to be used primarily for creating your
own Karaf distribution. This is the reason why changes featureBoot
applied after the first execution of Karaf wouldn't work. You can
remove data/cache directory to force Karaf to reinitialize featureBoot
after next restart.

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


Re: org.apache.karaf.tooling.testing and AbstractIntegrationTest

2013-11-12 Thread Henryk Konsek
Hi Jean,

Thank you for the answer.

> It has moved directly to Pax Exam (you have a Karaf container support
> directly in Pax Exam 3.2.0/3.3.0 now).

Yeah, that's how we do it in Camel Extra integration tests, but I
wanted to be sure we follow the right path :) .

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com


org.apache.karaf.tooling.testing and AbstractIntegrationTest

2013-11-12 Thread Henryk Konsek
Hi guys,

I'll make it quick :) .Are AbstractIntegrationTest class and
org.apache.karaf.tooling.testing jar still maintained? I can't see jar
with version >= 2.3 in Maven Central [1].

Cheers.

[1] http://search.maven.org/#search%7Cga%7C1%7Corg.apache.karaf.tooling.testing

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com