3.启动serviceMiX(windows)
C:\Users\Administrator>cd c:\apache-servicemix\bin
c:\apache-servicemix\bin>servicemix
Please wait while Apache ServiceMix is starting...
27% [===================> ]
4.启动成功
Please wait while Apache ServiceMix is starting...
100% [========================================================================]
____ _ __ __ _
/ ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> <
|____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
Apache ServiceMix (5.4.0)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown ServiceMix.
5. 使用命令
osgi:list osgi:list|grep camel 查看bundles
karaf@root> osgi:list
START LEVEL 100 , List Threshold: 50
ID State Blueprint Spring Level Name
[ 81] [Active ] [ ] [ ] [ 50] geronimo-annotation_1.0_spec (1.1.1)
[ 82] [Active ] [ ] [ ] [ 50] geronimo-jms_1.1_spec (1.1.1)
[ 83] [Active ] [ ] [ ] [ 50] geronimo-j2ee-management_1.1_spec (1.0.1)
[ 84] [Active ] [ ] [ ] [ 50] JAXB2 Basics - Runtime (0.6.4)
[ 85] [Active ] [ ] [ ] [ 50] Apache ServiceMix :: Bundles :: jaxb-impl (2.2.1.1_2)
karaf@root> osgi:list|grep camel
[ 116] [Active ] [ ] [ ] [ 50] camel-core (2.14.1)
[ 117] [Active ] [Created ] [ ] [ 50] camel-karaf-commands (2.14.1)
[ 118] [Active ] [ ] [ ] [ 50] camel-jms (2.14.1)
[ 124] [Active ] [ ] [ ] [ 50] camel-spring (2.14.1)
[ 125] [Active ] [Created ] [ ] [ 50] camel-blueprint (2.14.1)
6.使用
log:display查看日志,其他 log:display-exception
karaf@root> log:display
2015-04-09 16:09:07,433 | INFO | 0 - timer://wumi | timerToLog | ? ? | 116 - org.apache.camel.camel-cor
e - 2.14.1 | The message contains Hi from Camel at 2015-04-09 16:09:07