--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/plain-blueprint-template.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/docinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/plain-blueprint.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/manual/src/main/groovy/CreateKarafCommandsAdocFile.groovy:
--------------------------------------------------------------------------------
1 | def dir = new File(project.properties.karafCommandsDir)
2 | def out = new File(project.properties.karafCommandsDir,"karaf-commands.adoc")
3 |
4 | out.write ("= Karaf Commands\n\n")
5 |
6 | def commands = [:]
7 | dir.eachFile { it ->
8 | def line = it.readLines()[0]
9 | def command = line - ~/^=\s/
10 | def filename = command.replace(":","-") + ".adoc"
11 | def link = "<<${filename}#,${command}>>"
12 | commands.put(command, link)
13 | }
14 |
15 | def keys = commands.keySet().sort()
16 | def lastGroup = ""
17 | keys.findAll { it.contains(":") }.each { key ->
18 | def group = key.split(":")[0]
19 | if (!lastGroup.equals(group)) {
20 | lastGroup = group
21 | out.append("\n== ${group}\n\n")
22 | }
23 | def link = commands[key]
24 | out.append("* ${link}\n")
25 | }
26 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-wsn/cxf-wsn-base/src/main/resources/org/apache/servicemix/examples/cxf/base/jaxb.index:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one or more
2 | # contributor license agreements. See the NOTICE file distributed with this
3 | # work for additional information regarding copyright ownership. The ASF
4 | # licenses this file to you under the Apache License, Version 2.0 (the
5 | # "License"); you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | # License for the specific language governing permissions and limitations under
14 | # the License.
15 | Email
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/resources/resources.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = Resources
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::resources/_resources.adoc[]
22 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/user-guide/user-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = User Guide
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::user-guide/_user-guide.adoc[]
22 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/quickstart/quickstart.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = Quickstart Guide
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::quickstart/_quickstart.adoc[]
22 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/camel-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = Camel User Guide
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::camel-guide/_camel-guide.adoc[]
22 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/activemq-guide/activemq-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = ActiveMQ Guide
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::activemq-guide/_activemq-guide.adoc[]
22 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/activiti-guide/activiti-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = Activiti Guide
18 | Apache Software Foundation
19 | :numbered:
20 |
21 | include::activiti-guide/_activiti-guide.adoc[]
22 |
--------------------------------------------------------------------------------
/examples/camel/camel-osgi/org.apache.servicemix.examples.cfg:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 |
21 |
22 | prefix=YourTransform
23 |
--------------------------------------------------------------------------------
/examples/camel/camel-blueprint/org.apache.servicemix.examples.cfg:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 |
21 |
22 | prefix=YourTransform
23 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/setenv-unix:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | export JAVA_MAX_PERM_MEM=256M
19 |
--------------------------------------------------------------------------------
/examples/activemq/activemq-camel-blueprint/org.apache.servicemix.examples.cfg:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 |
21 |
22 | prefix=YourTransform
23 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/activemq-guide/_activemq-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This document is intended to be included in other documents.
16 | // No title heading!
17 | // The top level heading in all included documents should not be a document title.
18 |
19 | include::_introduction.adoc[]
20 |
21 | include::_activemq-camel-example.adoc[]
22 |
23 |
24 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/activiti-guide/_activiti-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This document is intended to be included in other documents.
16 | // No title heading!
17 | // The top level heading in all included documents should not be a document title.
18 |
19 | include::_introduction.adoc[]
20 |
21 | include::_activiti-camel-example.adoc[]
22 |
23 |
24 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/setenv-win:
--------------------------------------------------------------------------------
1 | rem
2 | rem Licensed to the Apache Software Foundation (ASF) under one or more
3 | rem contributor license agreements. See the NOTICE file distributed with
4 | rem this work for additional information regarding copyright ownership.
5 | rem The ASF licenses this file to You under the Apache License, Version 2.0
6 | rem (the "License"); you may not use this file except in compliance with
7 | rem the License. You may obtain a copy of the License at
8 | rem
9 | rem http://www.apache.org/licenses/LICENSE-2.0
10 | rem
11 | rem Unless required by applicable law or agreed to in writing, software
12 | rem distributed under the License is distributed on an "AS IS" BASIS,
13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | rem See the License for the specific language governing permissions and
15 | rem limitations under the License.
16 | rem
17 |
18 | set JAVA_MAX_PERM_MEM=256M
19 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/user-guide/_user-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This document is intended to be included in other documents.
16 | // No title heading!
17 | // The top level heading in all included documents should not be a document title.
18 |
19 | include::_introduction.adoc[]
20 |
21 | include::_what-is-servicemix.adoc[]
22 |
23 | include::_technology-selection.adoc[]
24 |
25 |
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-cxf-code-first-osgi-bundle/src/main/resources/archetype-resources/src/main/java/types/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package ${packageName}.types;
18 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs/src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/add_customer.xml:
--------------------------------------------------------------------------------
1 |
18 |
19 | Jack
20 |
21 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs-blueprint/src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/add_customer.xml:
--------------------------------------------------------------------------------
1 |
18 |
19 | Jack
20 |
21 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools/src/main/java/org/apache/servicemix/examples/camel/Sex.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel;
19 |
20 | public enum Sex {
21 | MALE, FEMALE
22 | }
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/quickstart/_introduction.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | == Introduction
16 |
17 | First of all, welcome to the Apache ServiceMix project!
18 |
19 | The goal of this Quickstart guide is to give you a 20-minute overview of what ServiceMix is and what you can do with it.
20 | In that time, we'll install ServiceMix on your machine, deploy some basic integration routes and extend the container
21 | with an additional feature.
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs/src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/update_customer.xml:
--------------------------------------------------------------------------------
1 |
18 |
19 | Mary
20 | 123
21 |
22 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools-blueprint/src/main/java/org/apache/servicemix/examples/camel/Sex.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel;
19 |
20 | public enum Sex {
21 | MALE, FEMALE
22 | }
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs-blueprint/src/main/resources/org/apache/servicemix/examples/cxf/jaxrs/client/update_customer.xml:
--------------------------------------------------------------------------------
1 |
18 |
19 | Mary
20 | 123
21 |
22 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/etc/org.apache.aries.transaction.cfg:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 | aries.transaction.timeout=600
21 | aries.transaction.howl.logFileDir=${karaf.data}/txlog/
22 | aries.transaction.recoverable=true
23 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/user-guide/_introduction.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | == Introduction
16 |
17 | Apache ServiceMix is a flexible, open-source integration container that unifies the features and functionality of
18 | Apache ActiveMQ, Camel, CXF and Karaf into a powerful runtime platform for building integrations solutions.
19 |
20 | The goal of this document is to introduce you to the different components that are part of Apache ServiceMix and explain
21 | how and when they can be used together.
22 |
23 |
--------------------------------------------------------------------------------
/examples/drools/drools-simple/src/main/java/org/apache/servicemix/examples/drools/simple/model/CustomerType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.simple.model;
18 |
19 |
20 | public enum CustomerType {
21 | POOR, NORMAL, VIP;
22 | }
23 |
--------------------------------------------------------------------------------
/examples/drools/drools-spring/src/main/java/org/apache/servicemix/examples/drools/spring/model/CustomerType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.spring.model;
18 |
19 |
20 | public enum CustomerType {
21 | POOR, NORMAL, VIP;
22 | }
23 |
--------------------------------------------------------------------------------
/activemq/activemq-service/src/main/resources/org.apache.servicemix.activemq.service.cfg:
--------------------------------------------------------------------------------
1 | ## ---------------------------------------------------------------------------
2 | ## Licensed to the Apache Software Foundation (ASF) under one or more
3 | ## contributor license agreements. See the NOTICE file distributed with
4 | ## this work for additional information regarding copyright ownership.
5 | ## The ASF licenses this file to You under the Apache License, Version 2.0
6 | ## (the "License"); you may not use this file except in compliance with
7 | ## the License. You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ## ---------------------------------------------------------------------------
17 |
18 | broker-name = amq-broker
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-osgi-bundle/src/main/resources/META-INF/maven/archetype.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | servicemix-osgi-bundle
20 |
21 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/quickstart/_quickstart.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This document is intended to be included in other documents.
16 | // No title heading!
17 | // The top level heading in all included documents should not be a document title.
18 |
19 | include::_introduction.adoc[]
20 |
21 | include::_installation.adoc[]
22 |
23 | include::_console.adoc[]
24 |
25 | include::_camel.adoc[]
26 |
27 | include::_activemq.adoc[]
28 |
29 | include::_features.adoc[]
30 |
31 | include::_summary.adoc[]
32 |
--------------------------------------------------------------------------------
/examples/drools/drools-camel-blueprint/src/main/java/org/apache/servicemix/examples/drools/camel/blueprint/model/CustomerType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.camel.blueprint.model;
18 |
19 |
20 | public enum CustomerType {
21 | POOR, NORMAL, VIP;
22 | }
23 |
--------------------------------------------------------------------------------
/examples/drools/drools-camel-cxf-server/src/main/java/org/apache/servicemix/examples/drools/camel/cxf/server/model/CustomerType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.camel.cxf.server.model;
18 |
19 |
20 | public enum CustomerType {
21 | POOR, NORMAL, VIP;
22 | }
23 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/quickstart/_summary.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | == Wrapping it up...
16 |
17 | This is where our introductory journey through the world of Apache ServiceMix ends. We've obviously just scratched the surface of
18 | what is possible, but we hope you have an idea of what you can expect from Apache ServiceMix and how you can use it in your environment.
19 |
20 | For more in-depth information, have a look at our set of user guides. Also, if you have any questions, we welcome you on our user mailing list!
21 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/plain-spring-template.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/etc/org.apache.cxf.wsn.cfg:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 | cxf.wsn.activemq = ${activemq.url.vm}
21 | cxf.wsn.rootUrl = http://0.0.0.0:8182
22 | cxf.wsn.context = /wsn
23 | cxf.wsn.activemq.username=${activemq.jms.user}
24 | cxf.wsn.activemq.password=${activemq.jms.password}
25 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService
25 | public interface HelloWorld {
26 | String sayHi(String text);
27 | }
28 | // END SNIPPET: service
29 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-rm/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService
25 | public interface HelloWorld {
26 | String sayHi(String text);
27 | }
28 | // END SNIPPET: service
29 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxws-blueprint/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService
25 | public interface HelloWorld {
26 | String sayHi(String text);
27 | }
28 | // END SNIPPET: service
29 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService
25 | public interface HelloWorld {
26 | String sayHi(String text);
27 | }
28 | // END SNIPPET: service
29 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-blueprint/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService
25 | public interface HelloWorld {
26 | String sayHi(String text);
27 | }
28 | // END SNIPPET: service
29 |
--------------------------------------------------------------------------------
/examples/drools/drools-simple/src/main/resources/META-INF/kmodule.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_camel-guide.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This document is intended to be included in other documents.
16 | // No title heading!
17 | // The top level heading in all included documents should not be a document title.
18 |
19 | include::_introduction.adoc[]
20 |
21 | include::_deployment.adoc[]
22 |
23 | include::_plain-spring.adoc[]
24 |
25 | include::_plain-blueprint.adoc[]
26 |
27 | include::_osgi-bundle-spring.adoc[]
28 |
29 | include::_osgi-bundle-blueprint.adoc[]
30 |
31 | include::_installing-components.adoc[]
32 |
33 | include::_troubleshooting.adoc[]
--------------------------------------------------------------------------------
/examples/akka/akka-camel/src/test/resources/generate_test_data.rb:
--------------------------------------------------------------------------------
1 | #!/usr/bin/ruby
2 |
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with this
5 | # work for additional information regarding copyright ownership. The ASF
6 | # licenses this file to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 | # License for the specific language governing permissions and limitations under
16 | # the License.
17 |
18 | countries = ['AUS', 'BEL', 'CAN', 'CHN', 'FRA', 'GBR', 'GER', 'GRC', 'GRL',
19 | 'IRL', 'NLD', 'NOR', 'SJM', 'SWE', 'TTO', 'TZA', 'USA', 'ZMB']
20 |
21 | 200.times {
22 | country = countries[rand(countries.length)]
23 | score = 1 + rand(1000)
24 | puts "#{country},#{score}"
25 | }
26 |
--------------------------------------------------------------------------------
/examples/drools/drools-camel-cxf-server/src/test/resources/test-request.xml:
--------------------------------------------------------------------------------
1 |
17 |
19 |
20 | 9000
21 |
22 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-osgi/src/main/resources/org/apache/servicemix/samples/cxf_osgi/request.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 | John Doe
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-wsn/cxf-wsn-base/src/main/java/org/apache/servicemix/examples/cxf/base/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | @XmlSchema(
18 | namespace = "urn:org.apache.servicemix:wsn",
19 | elementFormDefault = XmlNsForm.QUALIFIED)
20 | package org.apache.servicemix.examples.cxf.base;
21 | import javax.xml.bind.annotation.XmlNsForm;
22 | import javax.xml.bind.annotation.XmlSchema;
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_troubleshooting.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | == Troubleshooting
16 |
17 | In this section, you'll find solutions for some frequently asked questions when using Camel on ServicMix.
18 |
19 | === No component with id 'xyz' could be found
20 | This usually means that your route is trying to use a component that hasn't been installed yet.
21 |
22 | Solution:
23 |
24 | . install the additional component
25 | . restart the bundle using the _bundle:restart _ command - you can find the bundle id for your route in the output of the _bundle:list_ command
26 |
27 | Refer to <>
28 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/plain-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxws-blueprint/src/main/resources/org/apache/servicemix/samples/cxf_osgi/request.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 | John Doe
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_plain-blueprint.adoc:
--------------------------------------------------------------------------------
1 | === Deploy as a plain Blueprint XML file
2 |
3 | ServiceMix supports the deployment of plain Blueprint XML files, automatically creating and starting the Blueprint container from
4 | the XML file.
5 |
6 | In order to leverage this feature to create and start Camel routes, drop a file with this syntax in the _$SERVICEMIX_HOME/deploy_
7 | folder:
8 |
9 | [source,xml,options="nowrap"]
10 | ----
11 | include::plain-blueprint-template.xml[]
12 | ----
13 |
14 | ==== Example
15 |
16 | Create a new XML file, plain-blueprint.xml, in the deployment folder with the code below to start a route to copy files from one
17 | directory to another.
18 |
19 | [source,xml,options="nowrap"]
20 | ----
21 | include::plain-blueprint.xml[]
22 | ----
23 |
24 | Verify in the Karaf console that it has been started:
25 |
26 | [source,text]
27 | ----
28 | karaf@root> bundle:list | grep plain-blueprint
29 | 223 | Active | 80 | 0.0.0 | plain-blueprint.xml
30 | karaf@root>
31 | ----
32 |
33 | Copy a file into the folder _$SERVICEMIX_HOME/input_, and verify that it is copied to the folder _$SERVICEMIX_HOME/output_. Note
34 | that the original file has been moved to the folder _$SERVICEMIX_HOME/input/.camel_.
35 |
36 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/licenses/slf4j-mit.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2004-2011 QOS.ch
2 | All rights reserved.
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/descriptors/unix-bin.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | apache-servicemix
20 |
21 |
22 | zip
23 |
24 |
25 |
26 | ${project.build.outputDirectory}/common-unix-bin.xml
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/logging/jms-appender/src/main/java/org/apache/servicemix/logging/jms/LoggingEventFormat.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.logging.jms;
18 |
19 | import org.ops4j.pax.logging.spi.PaxLoggingEvent;
20 |
21 | /**
22 | * Interface to represent an event message format, used for serializing log events into JMS messages
23 | */
24 | public interface LoggingEventFormat {
25 |
26 | public String toString(PaxLoggingEvent event);
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-osgi/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | # Root logger option
19 | log4j.rootLogger=INFO, stdout
20 |
21 | # Direct log messages to stdout
22 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
23 | log4j.appender.stdout.Target=System.out
24 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
25 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
26 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-blueprint/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | # Root logger option
19 | log4j.rootLogger=INFO, stdout
20 |
21 | # Direct log messages to stdout
22 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
23 | log4j.appender.stdout.Target=System.out
24 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
25 | log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
26 |
27 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
25 | public class HelloWorldImpl implements HelloWorld {
26 |
27 | public String sayHi(String text) {
28 | return "Hello " + text;
29 | }
30 | }
31 | // END SNIPPET: service
32 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-rm/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
25 | public class HelloWorldImpl implements HelloWorld {
26 |
27 | public String sayHi(String text) {
28 | return "Hello " + text;
29 | }
30 | }
31 | // END SNIPPET: service
32 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf;
20 | import javax.jws.WebMethod;
21 | import javax.jws.WebParam;
22 | import javax.jws.WebService;
23 |
24 | @WebService(name = "HelloWorld", targetNamespace = "http://cxf.apache.org/wsse/handler/helloworld")
25 | public interface HelloWorld {
26 | @WebMethod
27 | String sayHello(@WebParam(name = "toWhom") String to);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxws-blueprint/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
25 | public class HelloWorldImpl implements HelloWorld {
26 |
27 | public String sayHi(String text) {
28 | return "Hello " + text;
29 | }
30 | }
31 | // END SNIPPET: service
32 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
25 | public class HelloWorldImpl implements HelloWorld {
26 |
27 | public String sayHi(String text) {
28 | return "Hello " + text;
29 | }
30 | }
31 | // END SNIPPET: service
32 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-blueprint/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | // START SNIPPET: service
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import javax.jws.WebService;
23 |
24 | @WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
25 | public class HelloWorldImpl implements HelloWorld {
26 |
27 | public String sayHi(String text) {
28 | return "Hello " + text;
29 | }
30 | }
31 | // END SNIPPET: service
32 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/etc/org.apache.activemq.webconsole.cfg:
--------------------------------------------------------------------------------
1 | ## ---------------------------------------------------------------------------
2 | ## Licensed to the Apache Software Foundation (ASF) under one or more
3 | ## contributor license agreements. See the NOTICE file distributed with
4 | ## this work for additional information regarding copyright ownership.
5 | ## The ASF licenses this file to You under the Apache License, Version 2.0
6 | ## (the "License"); you may not use this file except in compliance with
7 | ## the License. You may obtain a copy of the License at
8 | ##
9 | ## http://www.apache.org/licenses/LICENSE-2.0
10 | ##
11 | ## Unless required by applicable law or agreed to in writing, software
12 | ## distributed under the License is distributed on an "AS IS" BASIS,
13 | ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | ## See the License for the specific language governing permissions and
15 | ## limitations under the License.
16 | ## ---------------------------------------------------------------------------
17 |
18 | webconsole.jms.url=${activemq.url}
19 | webconsole.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
20 | webconsole.jmx.user=${activemq.jmx.user}
21 | webconsole.jmx.password=${activemq.jmx.password}
22 | webconsole.jms.user=${activemq.jms.user}
23 | webconsole.jms.password=${activemq.jms.password}
--------------------------------------------------------------------------------
/NOTICE:
--------------------------------------------------------------------------------
1 | =========================================================================
2 | == NOTICE file for use with the Apache License, Version 2.0, ==
3 | == in this case for the Apache ServiceMix distribution. ==
4 | =========================================================================
5 |
6 | This product contains software developed by
7 | The Apache Software Foundation (http://www.apache.org/).
8 |
9 | This product contains software developed by
10 | Open Participation Software for Java (http://www.ops4j.org/).
11 |
12 | This software contains unmodified binary redistributions for H2 database engine (http://www.h2database.com/),
13 | which is dual licensed and available under a modified version of the MPL 1.1 (Mozilla Public License)
14 | or under the (unmodified) EPL 1.0 (Eclipse Public License).
15 | An original copy of the license agreement can be found at: http://www.h2database.com/html/license.html
16 |
17 | This software contains unmodified binary redistributions for StAX-Ex library (https://stax-ex.java.net/),
18 | which is dual licensed and available under the (unmodified) CDDL 1.1 (Common Development and Distribution License)
19 | or under the (unmodified) GPL v2 (GNU General Public License).
20 | An original copy of the license agreement can be found at: http://glassfish.java.net/public/CDDL+GPL_1_1.html
21 |
--------------------------------------------------------------------------------
/examples/drools/drools-spring/src/main/java/org/apache/servicemix/examples/drools/spring/osgi/Utils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.spring.osgi;
18 |
19 | import java.util.Random;
20 |
21 | import org.apache.servicemix.examples.drools.spring.model.Customer;
22 |
23 |
24 | public class Utils {
25 |
26 | /**
27 | *
28 | */
29 | private static final Random rand = new Random(12345);
30 |
31 | /**
32 | * @return
33 | */
34 | public static Customer customer() {
35 | return new Customer(rand.nextInt(9999));
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-cxf-wsdl-first-osgi-bundle/src/main/resources/META-INF/maven/archetype.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | servicemix-cxf-wsdl-first-osgi-bundle
20 |
21 |
22 | src/main/java/PersonImpl.java
23 |
24 |
25 | src/main/resources/META-INF/spring/beans.xml
26 | src/main/resources/wsdl/person.wsdl
27 |
28 |
29 |
--------------------------------------------------------------------------------
/examples/camel/camel-sql/camel-sql-orders/src/main/resources/sql.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 | # implied.
15 | #
16 | # See the License for the specific language governing permissions and
17 | # limitations under the License.
18 | #
19 | #
20 |
21 | ## notice we use named parameters in the queries, eg :#name. A named query parameter must start with :#
22 | ## sql that insert new orders
23 | sql.insertOrder=insert into orders (item, amount, description, processed, consumed) values (:#item, :#amount, :#description, false, false)
24 |
25 | ## sql that select all unprocessed orders
26 | sql.selectOrder=select * from orders where consumed = false
27 |
28 | ## sql that update the order as being processed
29 | sql.markOrder=update orders set consumed = true where id = :#id
--------------------------------------------------------------------------------
/examples/drools/drools-simple/src/main/java/org/apache/servicemix/examples/drools/simple/osgi/Utils.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.simple.osgi;
18 |
19 | import org.apache.servicemix.examples.drools.simple.model.Customer;
20 |
21 |
22 | public final class Utils {
23 |
24 |
25 | public static Customer customerPoor() {
26 | return new Customer(1000);
27 | }
28 |
29 |
30 | public static Customer customerNormal() {
31 | return new Customer(5000);
32 | }
33 |
34 |
35 | public static Customer customerVip() {
36 | return new Customer(9001);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/etc/custom.properties:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 | ################################################################################
19 |
20 | #
21 | # You can place any customized configuration here.
22 | # All the values specified here will override the default value.
23 | #
24 |
25 | karaf.systemBundlesStartLevel=50
26 |
27 |
28 | #
29 | # Delay console startup until bundles have been properly started
30 | #
31 | karaf.delay.console=true
32 | karaf.startup.message=Please wait while Apache ServiceMix is starting...
33 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/Customer.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf.jaxrs;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "Customer")
24 | public class Customer {
25 | private long id;
26 | private String name;
27 |
28 | public long getId() {
29 | return id;
30 | }
31 |
32 | public void setId(long id) {
33 | this.id = id;
34 | }
35 |
36 | public String getName() {
37 | return name;
38 | }
39 |
40 | public void setName(String name) {
41 | this.name = name;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs-blueprint/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/Customer.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf.jaxrs;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "Customer")
24 | public class Customer {
25 | private long id;
26 | private String name;
27 |
28 | public long getId() {
29 | return id;
30 | }
31 |
32 | public void setId(long id) {
33 | this.id = id;
34 | }
35 |
36 | public String getName() {
37 | return name;
38 | }
39 |
40 | public void setName(String name) {
41 | this.name = name;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf;
20 |
21 | import javax.jws.WebMethod;
22 | import javax.jws.WebParam;
23 | import javax.jws.WebService;
24 |
25 | @WebService(name = "HelloWorld", targetNamespace = "http://cxf.apache.org/wsse/handler/helloworld",
26 | endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
27 | public class HelloWorldImpl implements HelloWorld {
28 | @WebMethod
29 | public String sayHello(@WebParam(name = "toWhom") String toWhom) {
30 | return "Hello " + toWhom;
31 |
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/Product.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf.jaxrs;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "Product")
24 | public class Product {
25 | private long id;
26 | private String description;
27 |
28 | public long getId() {
29 | return id;
30 | }
31 |
32 | public void setId(long id) {
33 | this.id = id;
34 | }
35 |
36 | public String getDescription() {
37 | return description;
38 | }
39 |
40 | public void setDescription(String d) {
41 | this.description = d;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools/src/main/java/org/apache/servicemix/examples/camel/Drinks.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.camel;
18 |
19 | public enum Drinks {
20 | WATER("glass of water"),
21 | COLA_ZERO("bottle of Cola Zero"),
22 | COLA_LIGHT("bottle of Cola Light with a straw"),
23 | WINE("glass of wine"),
24 | BEER("pint of beer"),
25 | SCOTCH("good old scotch"),
26 | CHAMPAGNE("bottle of champagne");
27 |
28 | private String description;
29 |
30 | private Drinks(String description) {
31 | this.description = description;
32 | }
33 |
34 | public String getDescription() {
35 | return description;
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/activiti/activiti-config/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used
20 | #
21 | log4j.rootLogger=INFO, out
22 |
23 | # uncomment the following line to turn on Camel debugging
24 | #log4j.logger.org.apache.camel=DEBUG
25 |
26 | log4j.logger.org.springframework=WARN
27 |
28 |
29 | # CONSOLE appender not used by default
30 | log4j.appender.out=org.apache.log4j.ConsoleAppender
31 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
32 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
33 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
34 |
35 | log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
36 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs-blueprint/src/main/java/org/apache/servicemix/examples/cxf/jaxrs/Product.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.servicemix.examples.cxf.jaxrs;
20 |
21 | import javax.xml.bind.annotation.XmlRootElement;
22 |
23 | @XmlRootElement(name = "Product")
24 | public class Product {
25 | private long id;
26 | private String description;
27 |
28 | public long getId() {
29 | return id;
30 | }
31 |
32 | public void setId(long id) {
33 | this.id = id;
34 | }
35 |
36 | public String getDescription() {
37 | return description;
38 | }
39 |
40 | public void setDescription(String d) {
41 | this.description = d;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools-blueprint/src/main/java/org/apache/servicemix/examples/camel/Drinks.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.camel;
18 |
19 | public enum Drinks {
20 | WATER("glass of water"),
21 | COLA_ZERO("bottle of Cola Zero"),
22 | COLA_LIGHT("bottle of Cola Light with a straw"),
23 | WINE("glass of wine"),
24 | BEER("pint of beer"),
25 | SCOTCH("good old scotch"),
26 | CHAMPAGNE("bottle of champagne");
27 |
28 | private String description;
29 |
30 | private Drinks(String description) {
31 | this.description = description;
32 | }
33 |
34 | public String getDescription() {
35 | return description;
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used
20 | #
21 | log4j.rootLogger=INFO, out
22 |
23 | # uncomment the following line to turn on Camel debugging
24 | #log4j.logger.org.apache.camel=DEBUG
25 |
26 | log4j.logger.org.springframework=WARN
27 |
28 |
29 | # CONSOLE appender not used by default
30 | log4j.appender.out=org.apache.log4j.ConsoleAppender
31 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
32 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
33 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
34 |
35 | log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
36 |
--------------------------------------------------------------------------------
/examples/camel/camel-cxf-soap/camel-cxf-soap-route/src/main/java/org/apache/servicemix/examples/camel/soap/PersonService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel.soap;
19 |
20 | import org.apache.servicemix.examples.camel.soap.model.Person;
21 | import org.apache.servicemix.examples.camel.soap.model.PersonException;
22 |
23 | import javax.jws.WebParam;
24 | import javax.jws.WebService;
25 |
26 | @WebService(serviceName = "PersonService")
27 | public interface PersonService {
28 | Person getPerson(@WebParam(name="id")int id) throws PersonException;
29 |
30 | Person putPerson(Person person);
31 |
32 | Person deletePerson(@WebParam(name="id")int id) throws PersonException;
33 | }
34 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools-blueprint/src/main/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used
20 | #
21 | log4j.rootLogger=INFO, out
22 |
23 | # uncomment the following line to turn on Camel debugging
24 | #log4j.logger.org.apache.camel=DEBUG
25 |
26 | log4j.logger.org.springframework=WARN
27 |
28 |
29 | # CONSOLE appender not used by default
30 | log4j.appender.out=org.apache.log4j.ConsoleAppender
31 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
32 | log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
33 | #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
34 |
35 | log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
36 |
--------------------------------------------------------------------------------
/examples/camel/camel-sql/camel-sql-orders/src/main/java/org/apache/servicemix/examples/camel/sql/ListenerBean.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.camel.sql;
18 |
19 | import org.slf4j.Logger;
20 | import org.slf4j.LoggerFactory;
21 | import java.util.Map;
22 |
23 | public class ListenerBean {
24 | private static final Logger LOGGER = LoggerFactory.getLogger(ListenerBean.class);
25 |
26 | public void onBind(Object service, Map properties){
27 | LOGGER.info("Binding to "+ properties.get("datasource.type"));
28 |
29 |
30 | }
31 | public void onUnbind(Object service, Map properties){
32 | LOGGER.info("Unbinding from "+ properties.get("datasource.type"));
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/examples/drools/drools-simple/src/test/java/org/apache/servicemix/examples/drools/test/ActivatorTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.drools.test;
18 |
19 | import org.apache.servicemix.examples.drools.simple.osgi.SimpleRuleActivator;
20 | import org.junit.Test;
21 |
22 | /**
23 | *
24 | * @author ghalajko
25 | *
26 | */
27 | public class ActivatorTest {
28 | /**
29 | * Simple test. Checks method
30 | * @throws Exception
31 | */
32 | @Test
33 | public void test() throws Exception{
34 | SimpleRuleActivator act = new SimpleRuleActivator();
35 | try{
36 | act.start(null);
37 | }finally{
38 | act.stop(null);
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools/src/main/java/org/apache/servicemix/examples/camel/PersonHelper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel;
19 |
20 | import java.util.Random;
21 |
22 | public class PersonHelper {
23 | private final Random random = new Random();
24 |
25 | public Person createTestPerson() {
26 | Person person = new Person();
27 |
28 | // Age
29 | person.setAge(random.nextInt(70));
30 |
31 | // Sex
32 | if (random.nextBoolean()) {
33 | person.setSex(Sex.MALE);
34 | } else {
35 | person.setSex(Sex.FEMALE);
36 | }
37 |
38 | // Income
39 | person.setIncome(random.nextInt(100000));
40 |
41 | return person;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/itests/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used during tests..
20 | #
21 | log4j.rootLogger=WARN, stdout, out
22 |
23 |
24 | # CONSOLE appender not used by default
25 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
26 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
27 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
28 |
29 | # File appender
30 | log4j.appender.out=org.apache.log4j.FileAppender
31 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
32 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
33 | log4j.appender.out.file=target/itests.log
34 | log4j.appender.out.append=true
35 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/licenses/bsd.txt:
--------------------------------------------------------------------------------
1 | The BSD License
2 |
3 | Copyright (c) ,
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7 |
8 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10 | * Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11 |
12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13 |
--------------------------------------------------------------------------------
/examples/akka/akka-camel/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used during tests..
20 | #
21 | log4j.rootLogger=DEBUG, out
22 |
23 | # CONSOLE appender not used by default
24 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
25 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
26 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
27 |
28 | # File appender
29 | log4j.appender.out=org.apache.log4j.FileAppender
30 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 | log4j.appender.out.file=target/akka-camel.log
33 | log4j.appender.out.append=true
34 |
--------------------------------------------------------------------------------
/examples/camel/camel-drools-blueprint/src/main/java/org/apache/servicemix/examples/camel/PersonHelper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel;
19 |
20 | import java.util.Random;
21 |
22 | public class PersonHelper {
23 | private final Random random = new Random();
24 |
25 | public Person createTestPerson() {
26 | Person person = new Person();
27 |
28 | // Age
29 | person.setAge(random.nextInt(70));
30 |
31 | // Sex
32 | if (random.nextBoolean()) {
33 | person.setSex(Sex.MALE);
34 | } else {
35 | person.setSex(Sex.FEMALE);
36 | }
37 |
38 | // Income
39 | person.setIncome(random.nextInt(100000));
40 |
41 | return person;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/logging/jms-appender/src/test/resources/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | #
19 | # The logging properties used during tests..
20 | #
21 | log4j.rootLogger=DEBUG, out
22 |
23 | # CONSOLE appender not used by default
24 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
25 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
26 | log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
27 |
28 | # File appender
29 | log4j.appender.out=org.apache.log4j.FileAppender
30 | log4j.appender.out.layout=org.apache.log4j.PatternLayout
31 | log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
32 | log4j.appender.out.file=target/jms-appender.log
33 | log4j.appender.out.append=true
34 |
--------------------------------------------------------------------------------
/examples/camel/camel-cxf-soap/camel-cxf-soap-service/src/main/java/org/apache/servicemix/examples/camel/soap/model/PersonException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel.soap.model;
19 |
20 | import javax.xml.bind.annotation.XmlAccessType;
21 | import javax.xml.bind.annotation.XmlAccessorType;
22 | import javax.xml.ws.WebFault;
23 |
24 | @WebFault(name="PersonException")
25 | @XmlAccessorType(XmlAccessType.FIELD)
26 | public class PersonException extends RuntimeException {
27 | private final String personid;
28 | public PersonException(String message, String personId){
29 | super(message);
30 | this.personid = personId;
31 | }
32 |
33 | public String getPersonid(){
34 | return this.personid;
35 | }
36 |
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/examples/drools/drools-camel-cxf-server/src/test/resources/batch-test-request.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
20 |
21 | 9000
22 |
23 |
24 |
26 |
27 | 1000
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/examples/drools/drools-simple/src/main/resources/rule/simple.drl:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package rule;
18 | import org.apache.servicemix.examples.drools.simple.model.Customer;
19 | import org.apache.servicemix.examples.drools.simple.model.CustomerType;
20 |
21 | rule "Customer poor"
22 | when
23 | $c : Customer( salary <= 1000, type == null)
24 | then
25 | modify( $c ) {
26 | setType(CustomerType.POOR)
27 | };
28 | end
29 |
30 |
31 | rule "Customer NORMAL"
32 | when
33 | $c : Customer( salary > 1000, salary <= 9000, type == null )
34 | then
35 | modify( $c ) {
36 | setType(CustomerType.NORMAL)
37 | };
38 | end
39 |
40 |
41 | rule "Customer VIP"
42 | when
43 | $c : Customer( salary > 9000, type == null)
44 | then
45 | modify( $c ) {
46 | setType(CustomerType.VIP)
47 | };
48 | end
--------------------------------------------------------------------------------
/examples/drools/drools-spring/src/main/resources/rule/customer-score.drl:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package rule;
18 | import org.apache.servicemix.examples.drools.spring.model.Customer;
19 | import org.apache.servicemix.examples.drools.spring.model.CustomerType;
20 |
21 | rule "Customer poor"
22 | when
23 | $c : Customer( salary <= 1000, type == null)
24 | then
25 | modify( $c ) {
26 | setType(CustomerType.POOR)
27 | };
28 | end
29 |
30 |
31 | rule "Customer NORMAL"
32 | when
33 | $c : Customer( salary > 1000, salary <= 9000, type == null )
34 | then
35 | modify( $c ) {
36 | setType(CustomerType.NORMAL)
37 | };
38 | end
39 |
40 |
41 | rule "Customer VIP"
42 | when
43 | $c : Customer( salary > 9000, type == null)
44 | then
45 | modify( $c ) {
46 | setType(CustomerType.VIP)
47 | };
48 | end
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/licenses/asm.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2000-2005 INRIA, France Telecom
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions
6 | are met:
7 |
8 | 1. Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 |
11 | 2. Redistributions in binary form must reproduce the above copyright
12 | notice, this list of conditions and the following disclaimer in the
13 | documentation and/or other materials provided with the distribution.
14 |
15 | 3. Neither the name of the copyright holders nor the names of its
16 | contributors may be used to endorse or promote products derived from
17 | this software without specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 | THE POSSIBILITY OF SUCH DAMAGE.
30 |
31 |
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-cxf-code-first-osgi-bundle/src/main/resources/archetype-resources/src/main/resources/META-INF/spring/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
25 |
26 |
27 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/parent/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
20 | org.apache.servicemix
21 | servicemix
22 | 7.1.0-SNAPSHOT
23 |
24 |
25 | 4.0.0
26 |
27 | org.apache.servicemix
28 | parent
29 | pom
30 |
31 | Apache ServiceMix :: Parent
32 |
33 |
34 | assemblies-parent
35 | features-parent
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/drools/drools-camel-blueprint/src/main/resources/rule/customer-score.drl:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package rule;
18 | import org.apache.servicemix.examples.drools.camel.blueprint.model.Customer;
19 | import org.apache.servicemix.examples.drools.camel.blueprint.model.CustomerType;
20 |
21 | rule "Customer poor"
22 | when
23 | $c : Customer( salary <= 1000, type == null)
24 | then
25 | modify( $c ) {
26 | setType(CustomerType.POOR)
27 | };
28 | end
29 |
30 |
31 | rule "Customer NORMAL"
32 | when
33 | $c : Customer( salary > 1000, salary <= 9000, type == null )
34 | then
35 | modify( $c ) {
36 | setType(CustomerType.NORMAL)
37 | };
38 | end
39 |
40 |
41 | rule "Customer VIP"
42 | when
43 | $c : Customer( salary > 9000, type == null)
44 | then
45 | modify( $c ) {
46 | setType(CustomerType.VIP)
47 | };
48 | end
--------------------------------------------------------------------------------
/examples/drools/drools-camel-cxf-server/src/main/resources/rule/customer-score.drl:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package rule;
18 | import org.apache.servicemix.examples.drools.camel.cxf.server.model.Customer;
19 | import org.apache.servicemix.examples.drools.camel.cxf.server.model.CustomerType;
20 |
21 | rule "Customer poor"
22 | when
23 | $c : Customer( salary <= 1000, type == null)
24 | then
25 | modify( $c ) {
26 | setType(CustomerType.POOR)
27 | };
28 | end
29 |
30 |
31 | rule "Customer NORMAL"
32 | when
33 | $c : Customer( salary > 1000, salary <= 9000, type == null )
34 | then
35 | modify( $c ) {
36 | setType(CustomerType.NORMAL)
37 | };
38 | end
39 |
40 |
41 | rule "Customer VIP"
42 | when
43 | $c : Customer( salary > 9000, type == null)
44 | then
45 | modify( $c ) {
46 | setType(CustomerType.VIP)
47 | };
48 | end
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-blueprint/src/main/java/org/apache/servicemix/examples/cxf/ClientPasswordCallback.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import org.apache.wss4j.common.ext.WSPasswordCallback;
23 |
24 | import java.io.IOException;
25 | import javax.security.auth.callback.Callback;
26 | import javax.security.auth.callback.CallbackHandler;
27 | import javax.security.auth.callback.UnsupportedCallbackException;
28 |
29 | public class ClientPasswordCallback implements CallbackHandler {
30 |
31 | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
32 |
33 | WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
34 |
35 | if (pc.getIdentifier().equals("smx")) {
36 | pc.setPassword("smx");
37 | }
38 | }
39 |
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/ClientPasswordCallback.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import org.apache.wss4j.common.ext.WSPasswordCallback;
23 |
24 | import java.io.IOException;
25 | import javax.security.auth.callback.Callback;
26 | import javax.security.auth.callback.CallbackHandler;
27 | import javax.security.auth.callback.UnsupportedCallbackException;
28 |
29 |
30 | public class ClientPasswordCallback implements CallbackHandler {
31 |
32 | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
33 |
34 | WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
35 |
36 | if (pc.getIdentifier().equals("smx")) {
37 | pc.setPassword("smx");
38 | }
39 | }
40 |
41 | }
42 |
43 |
44 |
--------------------------------------------------------------------------------
/activemq/activemq-camel/src/main/java/org/apache/servicemix/activemq/camel/ActiveMQComponent.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.activemq.camel;
18 |
19 | import javax.jms.ConnectionFactory;
20 |
21 | import org.apache.camel.CamelContext;
22 | import org.apache.camel.component.jms.JmsConfiguration;
23 |
24 | /**
25 | * A Camel component for ServiceMix which uses the
26 | * {@link org.apache.activemq.ActiveMQConnectionFactory} service for connecting to the correct
27 | * broker.
28 | */
29 | public class ActiveMQComponent extends org.apache.activemq.camel.component.ActiveMQComponent {
30 |
31 | public static final String NAME = "activemq";
32 |
33 | public ActiveMQComponent(CamelContext camelContext, ConnectionFactory connectionFactory) {
34 | super(camelContext);
35 | setConfiguration(new JmsConfiguration(connectionFactory));
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-security-signature/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.servicemix.examples.cxf;
21 |
22 | import org.apache.wss4j.common.ext.WSPasswordCallback;
23 |
24 | import java.io.IOException;
25 | import javax.security.auth.callback.Callback;
26 | import javax.security.auth.callback.CallbackHandler;
27 | import javax.security.auth.callback.UnsupportedCallbackException;
28 |
29 |
30 | public class ServerPasswordCallback implements CallbackHandler {
31 |
32 | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
33 |
34 | WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
35 |
36 | if (pc.getIdentifier().equals("clientx509v1")) {
37 | pc.setPassword("storepassword");
38 | }
39 | }
40 |
41 | }
42 |
43 |
44 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-wsn/cxf-wsn-notifier/src/main/java/org/apache/servicemix/examples/cxf/notifier/Notifier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.cxf.notifier;
18 |
19 | import org.apache.cxf.wsn.client.NotificationBroker;
20 | import org.apache.servicemix.examples.cxf.base.Email;
21 | import org.osgi.framework.ServiceReference;
22 |
23 | public class Notifier {
24 |
25 | private NotificationBroker notificationBroker;
26 |
27 | private String topic;
28 |
29 | public void setTopic(String topic) {
30 | this.topic = topic;
31 | }
32 |
33 | public void setNotificationBroker(ServiceReference reference) {
34 | this.notificationBroker = new NotificationBroker((String)reference.getProperty("address"),Email.class);
35 | }
36 |
37 | public void emailNotify(Email email){
38 |
39 | notificationBroker.notify(topic,email);
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/contribute.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | = Contributing to the Documentation
18 | Apache Software Foundation
19 | :!numbered:
20 | :!toc:
21 |
22 | == Found an mistake or have a suggestion for improvement?
23 |
24 | We welcome any feedback or contribution to the documentation.
25 |
26 | Whether you spotted a mistake, have suggestions for new content or just want to say hi, feel to get in touch using the http://servicemix.apache.org/community/mailing-lists.html[mailing lists], http://servicemix.apache.org/community/irc.html[IRC channel] or on Twitter using the `#servicemix` hash tag.
27 |
28 | == Contributing to the documentation code
29 |
30 | The documentation is written using http://asciidoctor.org/[Asciidoctor]. The pages can be edited in any text editor.
31 |
32 | You can find more information about how to get and build the documentation codebase http://servicemix.apache.org/developers/source/documentation-source.html[here] and one more thing...
33 |
34 | We really love documentation patches ;)
--------------------------------------------------------------------------------
/logging/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | 4.0.0
22 |
23 |
24 | org.apache.servicemix.parent
25 | features-parent
26 | 7.1.0-SNAPSHOT
27 | ../parent/features-parent/pom.xml
28 |
29 |
30 | org.apache.servicemix.logging
31 | logging
32 | pom
33 | Apache ServiceMix :: Logging
34 |
35 |
36 | jms-appender
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/examples/akka/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.examples
26 | examples
27 | 7.1.0-SNAPSHOT
28 |
29 |
30 | org.apache.servicemix.examples
31 | akka-examples
32 | pom
33 | Apache ServiceMix :: Examples :: Akka
34 |
35 |
36 | akka-camel
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/examples/activiti/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 | 4.0.0
22 |
23 |
24 | org.apache.servicemix.examples
25 | examples
26 | 7.1.0-SNAPSHOT
27 |
28 |
29 | org.apache.servicemix.examples
30 | activiti-examples
31 | pom
32 | Apache ServiceMix :: Examples :: Activiti
33 |
34 |
35 | activiti-camel
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/activemq/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.examples
26 | examples
27 | 7.1.0-SNAPSHOT
28 |
29 |
30 | org.apache.servicemix.examples
31 | activemq-examples
32 | pom
33 | Apache ServiceMix :: Examples :: ActiveMQ
34 |
35 |
36 | activemq-camel-blueprint
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/examples/camel/camel-cxf-rest/camel-cxf-rest-route/src/main/java/org/apache/servicemix/examples/camel/rest/PersonService.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.apache.servicemix.examples.camel.rest;
19 |
20 | import org.apache.servicemix.examples.camel.rest.model.Person;
21 |
22 | import javax.ws.rs.*;
23 | import javax.ws.rs.core.Response;
24 |
25 | // This could be an interface if CAMEL-6014 is fixed.
26 |
27 | @Path("/personservice/")
28 | public class PersonService {
29 |
30 | @GET
31 | @Path("/person/get/{id}/")
32 | @Produces("application/xml")
33 | public Person getPerson(@PathParam("id") String id) {
34 | return null;
35 | }
36 |
37 | @POST
38 | @Path("/person/post")
39 | public Response putPerson(Person person) {
40 | return null;
41 | }
42 |
43 | @DELETE
44 | @Path("/person/delete/{id}")
45 | public void deletePerson(@PathParam("id") String id) {
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/tooling/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.parent
26 | features-parent
27 | 7.1.0-SNAPSHOT
28 | ../parent/features-parent/pom.xml
29 |
30 |
31 | org.apache.servicemix.tooling
32 | tooling
33 | pom
34 | Apache ServiceMix :: Tooling
35 |
36 |
37 | archetypes
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/activiti/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.parent
26 | features-parent
27 | 7.1.0-SNAPSHOT
28 | ../parent/features-parent/pom.xml
29 |
30 |
31 | org.apache.servicemix.activiti
32 | activiti
33 | pom
34 | Apache ServiceMix :: Activiti Support
35 |
36 | activiti-config
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-osgi/src/main/resources/META-INF/spring/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/camel/camel-cxf-soap/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 |
23 | org.apache.servicemix.examples
24 | camel-examples
25 | 7.1.0-SNAPSHOT
26 |
27 |
28 | 4.0.0
29 | camel-cxf-soap
30 | Apache ServiceMix :: Examples :: Camel CXF SOAP
31 | pom
32 |
33 |
34 | camel-cxf-soap-route
35 | camel-cxf-soap-service
36 | camel-cxf-soap-client
37 |
38 |
39 |
--------------------------------------------------------------------------------
/examples/camel/camel-cxf-rest/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 |
23 | camel-examples
24 | org.apache.servicemix.examples
25 | 7.1.0-SNAPSHOT
26 |
27 |
28 | 4.0.0
29 | camel-cxf-rest
30 | Apache ServiceMix :: Examples :: Camel CXF REST
31 | pom
32 |
33 |
34 | camel-cxf-rest-route
35 | camel-cxf-rest-service
36 | camel-cxf-rest-client
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/activemq/activemq-camel/src/main/resources/OSGI-INF/blueprint/activemq-camel.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
22 |
23 |
26 |
27 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/activemq/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
20 |
21 | 4.0.0
22 |
23 |
24 | org.apache.servicemix.parent
25 | features-parent
26 | 7.1.0-SNAPSHOT
27 | ../parent/features-parent/pom.xml
28 |
29 |
30 | org.apache.servicemix
31 | activemq
32 | pom
33 | Apache ServiceMix :: ActiveMQ
34 |
35 |
36 | activemq-service
37 | activemq-camel
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_osgi-bundle-spring.adoc:
--------------------------------------------------------------------------------
1 | === Deploy as an OSGi bundle with Spring
2 |
3 | Using an OSGi bundle to deploy your Camel routes allows you to use the Java or Scala DSL for defining your routes.
4 |
5 | In this case, you're using Spring to start your Camel routes, so you include your Spring XML file (e.g. _camel-context.xml_) in the _META-INF/spring_ folder inside your bundle.
6 | [source,text]
7 | ----
8 | +
9 | \- META-INF
10 | |- MANIFEST.MF
11 | \- spring
12 | \- camel-context.xml
13 | ----
14 |
15 | After the bundle has been activated, the Spring DM extender will find, create and start your Spring ApplicationContexts.
16 |
17 | ==== Example: Referring to Java or Scala RouteBuilder classes
18 | If your RouteBuilder classes have been defined in the _org.apache.servicemix.manual.camel_ package, the file would look like this:
19 | [source,xml]
20 | ----
21 |
22 |
30 |
31 |
32 | org.apache.servicemix.manual.camel
33 |
34 |
35 |
36 | ----
37 |
38 | ==== Example in the distribution
39 |
40 | Another example for using this deployment option can be found in the _camel-osgi_ example that is shipped with Apache ServiceMix.
41 |
42 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-jaxrs/src/main/resources/META-INF/spring/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_plain-spring.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | === Deploy as a plain Spring XML file
16 |
17 | ServiceMix supports the deployment of plain Spring XML files, automatically creating and starting the Spring ApplicationContext from
18 | the XML file.
19 |
20 | In order to leverage this feature to create and start Camel routes, drop a file with this syntax in the _$SERVICEMIX_HOME/deploy_
21 | folder:
22 |
23 | [source,xml,options="nowrap"]
24 | ----
25 | include::plain-spring-template.xml[]
26 | ----
27 |
28 | ==== Example
29 |
30 | Create a new XML file, plain-spring.xml, in the deployment folder with the code below to start a route to copy files from one
31 | directory to another.
32 |
33 | [source,xml,options="nowrap"]
34 | ----
35 | include::plain-spring.xml[]
36 | ----
37 |
38 | Verify in the Karaf console that it has been started:
39 |
40 | [source,text]
41 | ----
42 | karaf@root> bundle:list | grep plain-spring
43 | 223 | Active | 80 | 0.0.0 | plain-spring.xml
44 | karaf@root>
45 | ----
46 |
47 | Copy a file into the folder _$SERVICEMIX_HOME/input_, and verify that it is copied to the folder _$SERVICEMIX_HOME/output_. Note
48 | that the original file has been moved to the folder _$SERVICEMIX_HOME/input/.camel_.
49 |
50 |
--------------------------------------------------------------------------------
/branding/src/main/resources/org/apache/karaf/branding/branding.properties:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 | ################################################################################
19 |
20 | welcome = \
21 | \u001B[36m ____ _ __ __ _ \u001B[0m\n\
22 | \u001B[36m/ ___| ___ _ ____ _(_) ___ ___| \\/ (_)_ __\u001B[0m\n\
23 | \u001B[36m\\___ \\ / _ \\ '__\\ \\ / / |/ __/ _ \\ |\\/| | \\ \\/ /\u001B[0m\n\
24 | \u001B[36m ___) | __/ | \\ V /| | (_| __/ | | | |> < \u001B[0m\n\
25 | \u001B[36m|____/ \\___|_| \\_/ |_|\\___\\___|_| |_|_/_/\\_\\\u001B[0m\n\
26 | \n\
27 | \u001B[1m Apache ServiceMix\u001B[0m (${pom.version})\n\
28 | \n\
29 | Hit '\u001B[1m\u001B[0m' for a list of available commands\n\
30 | and '\u001B[1m[cmd] --help\u001B[0m' for help on a specific command.\n\
31 | Hit '' or 'system:shutdown' to shutdown ServiceMix.\n
32 |
33 | prompt = \u001B[1m${USER}@${APPLICATION}\u001B[0m>
34 |
35 |
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-cxf-code-first-osgi-bundle/src/main/resources/archetype-resources/src/main/java/PersonImpl.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package ${packageName};
18 |
19 | import javax.jws.WebService;
20 | import javax.xml.ws.Holder;
21 |
22 | import ${packageName}.types.GetPerson;
23 | import ${packageName}.types.GetPersonResponse;
24 |
25 | @WebService(serviceName = "PersonService", endpointInterface = "${packageName}.Person")
26 | public class PersonImpl implements Person {
27 |
28 | public void getPerson(Holder personId, Holder ssn, Holder name)
29 | throws UnknownPersonFault
30 | {
31 | if (personId.value == null || personId.value.length() == 0) {
32 | ${packageName}.types.UnknownPersonFault fault = new ${packageName}.types.UnknownPersonFault();
33 | fault.setPersonId(personId.value);
34 | throw new UnknownPersonFault(null,fault);
35 | }
36 | name.value = "Guillaume";
37 | ssn.value = "000-000-0000";
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/assemblies/apache-servicemix/src/main/resources/etc/users.properties:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one or more
4 | # contributor license agreements. See the NOTICE file distributed with
5 | # this work for additional information regarding copyright ownership.
6 | # The ASF licenses this file to You under the Apache License, Version 2.0
7 | # (the "License"); you may not use this file except in compliance with
8 | # the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 | ################################################################################
19 |
20 | #
21 | # This file contains the users, groups, and roles.
22 | # Each line has to be of the format:
23 | #
24 | # USER=PASSWORD,ROLE1,ROLE2,...
25 | # USER=PASSWORD,_g_:GROUP,...
26 | # _g_\:GROUP=ROLE1,ROLE2,...
27 | #
28 | # All users, grousp, and roles entered in this file are available after Karaf startup
29 | # and modifiable via the JAAS command group. These users reside in a JAAS domain
30 | # with the name "karaf".
31 | #
32 | smx = smx,_g_:admingroup
33 | _g_\:admingroup = group,admin,manager,viewer,webconsole,systembundles
34 |
35 | # Workaround for SM-2267: sometimes, the webconsole configuration first hands out a ConnectionFactory
36 | # that uses karaf/karaf as the credentials before picking up the settings in system.properties
37 | karaf = karaf,_g_:admingroup
38 |
--------------------------------------------------------------------------------
/examples/camel/camel-sql/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 |
23 | camel-examples
24 | org.apache.servicemix.examples
25 | 7.1.0-SNAPSHOT
26 |
27 | 4.0.0
28 |
29 | camel-sql
30 | Apache ServiceMix :: Examples :: Camel SQL
31 | pom
32 |
33 |
34 | camel-sql-datasource-derby
35 | camel-sql-orders
36 | camel-sql-datasource-pgsql
37 | camel-sql-datasource-h2
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/assemblies/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.parent
26 | assemblies-parent
27 | 7.1.0-SNAPSHOT
28 | ../parent/assemblies-parent/pom.xml
29 |
30 |
31 | org.apache.servicemix.assemblies
32 | assemblies
33 | pom
34 | Apache ServiceMix :: Assemblies
35 |
36 |
37 | features
38 | apache-servicemix-examples
39 | apache-servicemix
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/tooling/archetypes/servicemix-cxf-code-first-osgi-bundle/src/main/resources/META-INF/maven/archetype.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | servicemix-cxf-code-first-osgi-bundle
20 |
21 | src/main/java/Person.java
22 | src/main/java/PersonImpl.java
23 | src/main/java/UnknownPersonFault.java
24 | src/main/java/types/GetPerson.java
25 | src/main/java/types/GetPersonResponse.java
26 | src/main/java/types/ObjectFactory.java
27 | src/main/java/types/package-info.java
28 | src/main/java/types/UnknownPersonFault.java
29 | src/main/java/client/Client.java
30 |
31 |
32 |
33 | src/main/resources/META-INF/spring/beans.xml
34 |
35 |
36 |
--------------------------------------------------------------------------------
/examples/camel/camel-osgi/src/main/java/org/apache/servicemix/examples/camel/MyRouteBuilder.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.camel;
18 |
19 | import org.apache.camel.builder.RouteBuilder;
20 | import org.apache.camel.spring.Main;
21 |
22 | /**
23 | * A simple example router to show how to define the route with Java DSL
24 | *
25 | * @version $Revision$
26 | */
27 | public class MyRouteBuilder extends RouteBuilder {
28 | /**
29 | * Allow this route to be run as an application
30 | *
31 | * @param args
32 | */
33 | public static void main(String[] args) throws Exception{
34 | new Main().run(args);
35 | }
36 |
37 | public void configure() {
38 | // set up the transform bean
39 | MyTransform transform = new MyTransform();
40 | transform.setPrefix("JavaDSL");
41 |
42 | from("timer://javaTimer?fixedRate=true&period=2000")
43 | .bean(transform, "transform")
44 | .to("log:ExampleRouter");
45 | }
46 |
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/assemblies/features/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.parent
26 | features-parent
27 | 7.1.0-SNAPSHOT
28 | ../../parent/features-parent/pom.xml
29 |
30 |
31 | org.apache.servicemix.assemblies.features
32 | features
33 | pom
34 | Apache ServiceMix :: Assemblies :: Features
35 |
36 |
37 | servicemix-features
38 | servicemix-kie
39 | servicemix-examples
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/manual/README.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | ServiceMix Documentation
19 | ========================
20 |
21 | Overview
22 | --------
23 | The documentation is written in the Asciidoctor format, and processed using the Maven Asciidoctor plugin.
24 |
25 | Building the documentation project
26 | ----------------------------------
27 | `mvn clean install` will build the documentation and create a static website in `target/generated-docs`.
28 |
29 | The build process will also create files for all Karaf commands based on the correct Karaf version defined in the pom file. It
30 | appears that the Karaf manual is no longer deployed as a Maven artifact to the central repository. Consequently, no copy of the user
31 | and developmemt guides are included in this documentation. Instead, the link to the current Karaf documentation is provided.
32 |
33 | Publishing the documentation to the website
34 | -------------------------------------------
35 | If you're an Apache ServiceMix committer, you can publish a new copy of the documentation pages with this command:
36 | `mvn clean install scm-publish:publish-scm`
--------------------------------------------------------------------------------
/examples/cxf/cxf-ws-addressing/src/main/resources/org/apache/servicemix/examples/cxf/wsaddressing/request.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 | urn:uuid:123456789
22 | http://localhost:8080/SoapContext/SoapPort
23 |
24 | http://www.w3.org/2005/08/addressing/anonymous
25 |
26 |
27 | http://www.w3.org/2005/08/addressing/anonymous
28 |
29 | http://apache.org/hello_world_soap_http/Greeter/sayHiRequest
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/camel-guide/_deployment.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | == Deployment Options
16 |
17 | There are a few different ways to deploy Camel routes on ServiceMix:
18 |
19 | * deploy routes in a plain Blueprint XML file
20 | * deploy routes in a plain Spring XML file
21 | * deploy a bundle containing a Blueprint XML file
22 | * deploy a bundle containing a Spring XML file
23 |
24 | === Benefits and drawbacks
25 |
26 | ==== Plain XML or OSGi bundles
27 |
28 | Choose a plain XML file:
29 |
30 | * if you want to get routes deployed as quickly as possible. +
31 | All you need for developing routes is a simple text editor, no compilation and building is required.
32 | * if you prefer the XML syntax over the Java of Scala DSL.
33 |
34 | Choose an OSGi bundle:
35 |
36 | * if you want to package helper classes together with your route definitions.
37 | * if you prefer developing routes in the Java or Scala DSL. +
38 | The RouteBuilder implementations can be packaged inside the bundle.
39 |
40 | ==== Blueprint or Spring
41 |
42 | Choose Blueprint if you want the best possible integration with the OSGi Framework and Service Registy. The Blueprint specification
43 | has been developed specifically for the OSGi Framework by the OSGi Alliance.
44 |
45 | Choose Spring if you already invested in Spring for creating and running Camel routes.
46 |
--------------------------------------------------------------------------------
/examples/camel/camel-blueprint/src/main/java/org/apache/servicemix/examples/camel/MyTransform.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.camel;
18 |
19 | import java.util.Date;
20 | import java.util.logging.Logger;
21 |
22 | public class MyTransform {
23 |
24 | private static final transient Logger logger = Logger.getLogger(MyTransform.class.getName());
25 | private boolean verbose = true;
26 | private String prefix = "MyTransform";
27 |
28 | public Object transform(Object body) {
29 | String answer = prefix + " set body: " + new Date();
30 | if (verbose) {
31 | System.out.println(">>>> " + answer);
32 | }
33 | logger.info(">>>> " + answer);
34 | return answer;
35 | }
36 |
37 | public boolean isVerbose() {
38 | return verbose;
39 | }
40 |
41 | public void setVerbose(boolean verbose) {
42 | this.verbose = verbose;
43 | }
44 |
45 | public String getPrefix() {
46 | return prefix;
47 | }
48 |
49 | public void setPrefix(String prefix) {
50 | this.prefix = prefix;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/itests/src/test/java/org/apache/servicemix/itests/base/Features.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.itests.base;
18 |
19 | import java.util.Arrays;
20 | import java.util.EnumSet;
21 | import java.util.HashSet;
22 | import java.util.Set;
23 |
24 | import org.apache.karaf.features.FeaturesService;
25 |
26 | public class Features implements AutoCloseable {
27 | private Set featureSet;
28 | private FeaturesService featuresService;
29 | private boolean uninstall;
30 |
31 | public Features(FeaturesService featuresService, boolean uninstall, String ... names) throws Exception {
32 | this.featuresService = featuresService;
33 | this.uninstall = uninstall;
34 | featureSet = new HashSet<>(Arrays.asList(names));
35 | featuresService.installFeatures(featureSet, EnumSet.noneOf(FeaturesService.Option.class));
36 | }
37 |
38 | @Override
39 | public void close() throws Exception {
40 | if (this.uninstall) {
41 | featuresService.uninstallFeatures(featureSet, EnumSet.noneOf(FeaturesService.Option.class));
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-wsn/cxf-wsn-notifier/src/main/java/org/apache/servicemix/examples/cxf/notifier/SpamGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.cxf.notifier;
18 |
19 | import org.apache.servicemix.examples.cxf.base.Email;
20 |
21 | import java.util.Random;
22 |
23 | public class SpamGenerator {
24 |
25 | private Email[] spam;
26 | private Random random;
27 |
28 | public void init(){
29 | random = new Random();
30 | spam = new Email[3];
31 | String youradress = "you@mail.com";
32 | spam[0] = new Email("free@cookieman.com",youradress,"Free Cookies!","Send us 10 dollar for a FREE basket full of delicious cookies!");
33 | spam[1] = new Email("youwon@lottery.com",youradress,"You are a WINNER!","You won the jackpot 100.000.000, please claim your price at our HQ in Atlantis.");
34 | spam[2] = new Email("gold@theshinymarket.com",youradress,"Buy cheap gold now!","Please send us your credit card number and receive gold at very cheap prices!");
35 | }
36 |
37 | public Email spamMessage(){
38 | return spam[random.nextInt(spam.length)];
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/examples/activemq/activemq-camel-blueprint/src/main/java/org/apache/servicemix/examples/activemq/MyTransform.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Licensed to the Apache Software Foundation (ASF) under one or more
3 | * contributor license agreements. See the NOTICE file distributed with
4 | * this work for additional information regarding copyright ownership.
5 | * The ASF licenses this file to You under the Apache License, Version 2.0
6 | * (the "License"); you may not use this file except in compliance with
7 | * the License. You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 | package org.apache.servicemix.examples.activemq;
18 |
19 | import java.util.Date;
20 | import java.util.logging.Logger;
21 |
22 | public class MyTransform {
23 |
24 | private static final transient Logger logger = Logger.getLogger(MyTransform.class.getName());
25 | private boolean verbose = true;
26 | private String prefix = "MyTransform";
27 |
28 | public Object transform(Object body) {
29 | String answer = prefix + " set body: " + new Date();
30 | if (verbose) {
31 | System.out.println(">>>> " + answer);
32 | }
33 | logger.info(">>>> " + answer);
34 | return answer;
35 | }
36 |
37 | public boolean isVerbose() {
38 | return verbose;
39 | }
40 |
41 | public void setVerbose(boolean verbose) {
42 | this.verbose = verbose;
43 | }
44 |
45 | public String getPrefix() {
46 | return prefix;
47 | }
48 |
49 | public void setPrefix(String prefix) {
50 | this.prefix = prefix;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/examples/cxf/cxf-wsn/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 | cxf-wsn-client
25 | cxf-wsn-receive
26 | cxf-wsn-notifier
27 | cxf-wsn-base
28 |
29 |
30 |
31 | org.apache.servicemix.examples
32 | cxf
33 | 7.1.0-SNAPSHOT
34 |
35 |
36 | cxf-wsn
37 | pom
38 | Apache ServiceMix :: Examples :: CXF WSN
39 | CXF example using WSN
40 |
41 |
42 | ${cxf.version}
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/examples/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.parent
26 | features-parent
27 | 7.1.0-SNAPSHOT
28 | ../parent/features-parent/pom.xml
29 |
30 |
31 | org.apache.servicemix.examples
32 | examples
33 | pom
34 | Apache ServiceMix :: Examples
35 |
36 |
37 | activemq
38 | activiti
39 | akka
40 | camel
41 | cxf
42 | drools
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/examples/camel/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
22 | 4.0.0
23 |
24 |
25 | org.apache.servicemix.examples
26 | examples
27 | 7.1.0-SNAPSHOT
28 |
29 |
30 | org.apache.servicemix.examples
31 | camel-examples
32 | pom
33 | Apache ServiceMix :: Examples :: Camel
34 |
35 |
36 | camel-blueprint
37 | camel-osgi
38 | camel-drools
39 | camel-drools-blueprint
40 | camel-sql
41 | camel-cxf-rest
42 | camel-cxf-soap
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/manual/src/main/asciidoc/documentation.adoc:
--------------------------------------------------------------------------------
1 | //
2 | // Licensed under the Apache License, Version 2.0 (the "License");
3 | // you may not use this file except in compliance with the License.
4 | // You may obtain a copy of the License at
5 | //
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //
14 |
15 | // This is standalone document with a Asciidoctor document title.
16 | // This document is not intended to be included in other documents.
17 | // This document is meant to contain (almost) everything.
18 |
19 | = Apache ServiceMix Documentation
20 | Apache Software Foundation
21 | :numbered:
22 | :toclevels: 3
23 |
24 | == User Guide
25 |
26 | include::user-guide/_user-guide.adoc[leveloffset=+1]
27 |
28 | == Quickstart Guide
29 |
30 | include::quickstart/_quickstart.adoc[leveloffset=+1]
31 |
32 | == Camel Guide
33 |
34 | include::camel-guide/_camel-guide.adoc[leveloffset=+1]
35 |
36 | == ActiveMQ Guide
37 |
38 | include::activemq-guide/_activemq-guide.adoc[leveloffset=+1]
39 |
40 | == Activiti Guide
41 |
42 | include::activiti-guide/_activiti-guide.adoc[leveloffset=+1]
43 |
44 | == Karaf User Guide
45 |
46 | Apache ServiceMix uses Apache Karaf as the underlying OSGi server runtime. The https://karaf.apache.org/manual/latest/#_user_guide[Karaf User Guide] explains
47 | about the features and functionality provided by Karaf.
48 |
49 | == Karaf Developer Guide
50 |
51 | The Apache https://karaf.apache.org/manual/latest/#_developer_guide[Karaf Developer Guide] gives you some information about developing with and for the OSGi server runtime.
52 |
53 | == Resources
54 |
55 | include::resources/_resources.adoc[leveloffset=+1]
--------------------------------------------------------------------------------