Hi all, 

I'm trying to use the JavaSpace component as described at
http://camel.apache.org/javaspace.html. I've got a GigaSpaces implementation
running which also contains a "mySpace" space. I verified that the space
exists and objects can be written to and read from it (by using an example
project provided by GigaSpaces). 

In my TestRouteBuilder, which extends RouteBuilder, I have the following
code snippet to connect to the JavaSpace: 

... 
.to("javaspace:jini://localhost:4164?spaceName=mySpace"); 
... 

When I start up my application, I get the following exception: 

[gsc][1/2648] 2011-02-16 08:08:56,450
camel-example-cxf-tomcat-2.6.0-fuse-00-00 [1] SEVERE
[org.springframework.web.context.ContextLoader] - Context initialization
failed; Caused by: org.apache.camel.FailedToCreateProducerException: Failed
to create Producer for endpoint:
Endpoint[javaspace://jini://localhost:4164?spaceName=processorSpace].
Reason: java.net.ConnectException: Connection refused 
[gsc][1/2648] at
org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:362) 
[gsc][1/2648] at
org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:93) 
[gsc][1/2648] at
org.apache.camel.impl.ProducerCache.startProducer(ProducerCache.java:124) 
[gsc][1/2648] at
org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:144) 
[gsc][1/2648] at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) 
... 
... 

Please refer to the attached stack trace for more details. 

Does anyone have a suggestion on what I'm missing here? 

Thanks, 

Mike http://camel.465427.n5.nabble.com/file/n3388661/connect_exception.rtf
connect_exception.rtf 
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/JavaSpaces-throws-java-net-ConnectException-Connection-refused-exception-tp3388661p3388661.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to