I have a basic Jetty instance using the akka-camel library with akka and scala. ex:
class RestActor extends Actor with Consumer {
def endpointUri = "jetty:https://0.0.0.0:443/"
def receive = {
case msg: CamelMessage => {
...
}
...
}
...
}
I want to bind a SslSocketConnector to the underlying jetty instance so that I can load my SSL cert, but the problem I have is I can't figure out how to get a handle the underlying jetty instance to call the addConnector() function. One thought I had was to add the Camel trait to my class (ex: RestActor extends Actor with Consumer with Camel) to access Camel's "context" variable, but the compiler complains that doing this will override the "context" variable which also exists from Akka's actor trait.