initial camel integration
This commit is contained in:
parent
c5062e50f7
commit
46ede93684
21 changed files with 1070 additions and 0 deletions
36
kernel/src/main/scala/camel/ActiveObjectConsumer.scala
Normal file
36
kernel/src/main/scala/camel/ActiveObjectConsumer.scala
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* Copyright (C) 2009 Scalable Solutions.
|
||||
*/
|
||||
|
||||
package se.scalablesolutions.akka.kernel.camel
|
||||
|
||||
import java.util.concurrent.{BlockingQueue, ExecutorService, Executors, ThreadFactory, TimeUnit}
|
||||
|
||||
import se.scalablesolutions.akka.kernel.{Logging, GenericServerContainer}
|
||||
|
||||
import org.apache.camel.{AsyncCallback, AsyncProcessor, Consumer, Exchange, Processor}
|
||||
import org.apache.camel.impl.ServiceSupport
|
||||
import org.apache.camel.impl.converter.AsyncProcessorTypeConverter
|
||||
|
||||
/**
|
||||
* @author <a href="http://jonasboner.com">Jonas Bonér</a>
|
||||
*/
|
||||
class ActiveObjectConsumer(
|
||||
val endpoint: ActiveObjectEndpoint,
|
||||
proc: Processor,
|
||||
val activeObject: AnyRef)
|
||||
extends ServiceSupport with Consumer with Runnable with Logging {
|
||||
val processor = AsyncProcessorTypeConverter.convert(proc)
|
||||
println("------- creating consumer for: "+ endpoint.uri)
|
||||
|
||||
override def run = {
|
||||
}
|
||||
|
||||
def doStart() = {
|
||||
}
|
||||
|
||||
def doStop() = {
|
||||
}
|
||||
|
||||
override def toString(): String = "ActiveObjectConsumer [" + endpoint.getEndpointUri + "]"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue