Hmmm. Nothing springs to mind... Have you tried setting SERVICEMIX_DEBUG=true 
in the environment? When you start the broker the script will print out a 
message confirming that it's running in DEBUG mode. 

Hope that helps.  

----- Original Message -----
From: Tim Dellas [mailto:[email protected]]
Sent: Thursday, September 16, 2010 10:39 AM
To: [email protected] <[email protected]>
Subject: AW: ServiceMix development environment

Hi there! Just came here to ask a similar question - perhaps you can help
me: 

I just got my local development environment setup using Eclipse installing
bundles into a local maven repository from where they get into my local
ServiceMix 4.2 instance. I'd like to figure out how to use to remote
debugging feature in eclipse to connect to ServiceMix to set breakpoints in
the deployed code. 

I did set the "KARAF_DEBUG=true" in my Windows Environment Variables and
restarted ServiceMix. Then I created a debug configuration in Eclipse,
targeting my project on "localhost" port 5005 and hit "Debug". Got the
following Problem:

Failed to connect to remote VM. Connection refused.
Connection refused: connect

Any hints for me?

Best Regards,

Tim

__________________________________________________
Ascora GmbH


Dipl. Inform. Tim Dellas
[email protected]
http://www.ascora.de
__________________________________________________

           
__________________________________________________ 


-----Ursprüngliche Nachricht-----
Von: Matt Pavlovich [mailto:[email protected]] 
Gesendet: Donnerstag, 16. September 2010 16:26
An: [email protected]
Betreff: Re: ServiceMix development environment

Hi Scott-

You can configure ServiceMix to run inside Eclipse by setting up the
External Application run dialog.  It can be a bit tedious to get all the
command line arguments squared away, but it works fine.

I personally prefer running a full-blown ServiceMix instance locally, so all
dependancies, logging, and security are tested locally in a way that mimics
the server environment.

Matt Pavlovich

On Sep 16, 2010, at 12:05 AM, Scott Christopher wrote:

> We have recently started using ServiceMix, primarily as a container for
Camel routes and so far we have had great success. However, the one thing we
are still uncertain about is setting up a practical and OSGi-friendly
development environment.
> 
> Ideally we would like to be able to "run" our Camel routes from within our
IDE while developing, though as we are making use of OSGi features in our
code, we need to fire up an OSGi environment and load up our bundled Camel
routes.
> 
> Currently each developer is running a separate local instance of
ServiceMix and deploying the compiled bundle whenever they need to test
their development, however it would be preferable to keep this contained
within the IDE.
> 
> We have looked into using Osmorc [1] and the Pax Construct Maven plugin
[2], both with varying degrees of success. Pax Construct seems to be closest
to what we want (the scan-features option takes care of resolving most of
the bundle dependencies) though the plugin doesn't appear to cache any of
maven downloads, which is annoying when having to wait for it to download
the internet every time you fire it up.
> 
> Can anyone respond with how they have had success in achieving this, or a
similar setup?
> 
> Regards,
>       Scott Christopher
> 
> [1] http://www.osmorc.org/
> [2]
http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/index.html


Reply via email to