Available as of Camel 2.11.0
This component uses the web-service API of VirtualBox to execute vbox commands and consume events from virtual machines.
|
VirtualBox consumer is dedicated to poll events generated by the virtual machines. In order to connect to the given machine instance use the following route:
from("virtualbox:targetMachineName?url=http://myhost:18034&user=test&passwd=test").
to("mock:virtualBoxEvents);
|
VirtualBox consumer is a polling consumer, as it relays on the concept of the passive listener to collect the virtual machine events.
VirtualBox producer sends commands to the VirtualBox manager. It may be used to interact with and control the behavior of the virtual machines. The following commands are supported by the current version of the component:
|
To create producer endpoint follow the syntax demonstrated below:
from("direct:vboxCommands").
to("virtualbox:targetMachineName?url=http://myhost:18034&user=test&passwd=test");
|
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency>
<groupId>org.apache-extras.camel-extra</groupId>
<artifactId>camel-virtualbox</artifactId>
<version>${camel-version}</version>
<!-- use the same version as your Camel core version -->
</dependency>
|