This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new f79f78996ce1 Remove deprecated Camel Stomp component
f79f78996ce1 is described below
commit f79f78996ce17b05f336bb214eb05d083822f518
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Apr 29 17:01:00 2026 +0200
Remove deprecated Camel Stomp component
---
.../messaging/StompSegmentDecorator.java | 36 -----------------
.../telemetry/decorators/StompSpanDecorator.java | 45 ---------------------
.../org.apache.camel.telemetry.SpanDecorator | 1 -
.../decorators/StompSpanDecoratorTest.java | 38 ------------------
.../tracing/decorators/StompSpanDecorator.java | 46 ----------------------
.../tracing/decorators/StompSpanDecoratorTest.java | 39 ------------------
6 files changed, 205 deletions(-)
diff --git
a/components/camel-aws/camel-aws-xray/src/main/java/org/apache/camel/component/aws/xray/decorators/messaging/StompSegmentDecorator.java
b/components/camel-aws/camel-aws-xray/src/main/java/org/apache/camel/component/aws/xray/decorators/messaging/StompSegmentDecorator.java
deleted file mode 100644
index 9f287dafc91c..000000000000
---
a/components/camel-aws/camel-aws-xray/src/main/java/org/apache/camel/component/aws/xray/decorators/messaging/StompSegmentDecorator.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.aws.xray.decorators.messaging;
-
-import org.apache.camel.Endpoint;
-import org.apache.camel.Exchange;
-
-public class StompSegmentDecorator extends AbstractMessagingSegmentDecorator {
-
- protected static final String QUEUE_PREFIX = "queue:";
-
- @Override
- public String getComponent() {
- return "stomp";
- }
-
- @Override
- public String getDestination(Exchange exchange, Endpoint endpoint) {
- String destination = super.getDestination(exchange, endpoint);
- return destination.startsWith(QUEUE_PREFIX) ?
destination.substring(QUEUE_PREFIX.length()) : destination;
- }
-}
diff --git
a/components/camel-telemetry/src/main/java/org/apache/camel/telemetry/decorators/StompSpanDecorator.java
b/components/camel-telemetry/src/main/java/org/apache/camel/telemetry/decorators/StompSpanDecorator.java
deleted file mode 100644
index 625b6dc7fd66..000000000000
---
a/components/camel-telemetry/src/main/java/org/apache/camel/telemetry/decorators/StompSpanDecorator.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.telemetry.decorators;
-
-import org.apache.camel.Endpoint;
-import org.apache.camel.Exchange;
-
-public class StompSpanDecorator extends AbstractMessagingSpanDecorator {
-
- protected static final String QUEUE_PREFIX = "queue:";
-
- @Override
- public String getComponent() {
- return "stomp";
- }
-
- @Override
- public String getComponentClassName() {
- return "org.apache.camel.component.stomp.StompComponent";
- }
-
- @Override
- public String getDestination(Exchange exchange, Endpoint endpoint) {
- String destination = super.getDestination(exchange, endpoint);
- if (destination.startsWith(QUEUE_PREFIX)) {
- destination = destination.substring(QUEUE_PREFIX.length());
- }
- return destination;
- }
-
-}
diff --git
a/components/camel-telemetry/src/main/resources/META-INF/services/org.apache.camel.telemetry.SpanDecorator
b/components/camel-telemetry/src/main/resources/META-INF/services/org.apache.camel.telemetry.SpanDecorator
index 03454bde355f..e3eb8a1bbef0 100644
---
a/components/camel-telemetry/src/main/resources/META-INF/services/org.apache.camel.telemetry.SpanDecorator
+++
b/components/camel-telemetry/src/main/resources/META-INF/services/org.apache.camel.telemetry.SpanDecorator
@@ -54,7 +54,6 @@ org.apache.camel.telemetry.decorators.Sjms2SpanDecorator
org.apache.camel.telemetry.decorators.SjmsSpanDecorator
org.apache.camel.telemetry.decorators.SpringRabbitmqSpanDecorator
org.apache.camel.telemetry.decorators.SqlSpanDecorator
-org.apache.camel.telemetry.decorators.StompSpanDecorator
org.apache.camel.telemetry.decorators.TimerSpanDecorator
org.apache.camel.telemetry.decorators.UndertowSpanDecorator
org.apache.camel.telemetry.decorators.VertxHttpSpanDecorator
\ No newline at end of file
diff --git
a/components/camel-telemetry/src/test/java/org/apache/camel/telemetry/decorators/StompSpanDecoratorTest.java
b/components/camel-telemetry/src/test/java/org/apache/camel/telemetry/decorators/StompSpanDecoratorTest.java
deleted file mode 100644
index 77649cf91b1f..000000000000
---
a/components/camel-telemetry/src/test/java/org/apache/camel/telemetry/decorators/StompSpanDecoratorTest.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.telemetry.decorators;
-
-import org.apache.camel.Endpoint;
-import org.junit.jupiter.api.Test;
-import org.mockito.Mockito;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-public class StompSpanDecoratorTest {
-
- @Test
- public void testGetDestination() {
- Endpoint endpoint = Mockito.mock(Endpoint.class);
-
- Mockito.when(endpoint.getEndpointUri()).thenReturn("stomp:queue:test");
-
- AbstractMessagingSpanDecorator decorator = new StompSpanDecorator();
-
- assertEquals("test", decorator.getDestination(null, endpoint));
- }
-
-}
diff --git
a/components/camel-tracing/src/main/java/org/apache/camel/tracing/decorators/StompSpanDecorator.java
b/components/camel-tracing/src/main/java/org/apache/camel/tracing/decorators/StompSpanDecorator.java
deleted file mode 100644
index 38192b13db6d..000000000000
---
a/components/camel-tracing/src/main/java/org/apache/camel/tracing/decorators/StompSpanDecorator.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.tracing.decorators;
-
-import org.apache.camel.Endpoint;
-import org.apache.camel.Exchange;
-
-@Deprecated(since = "4.19.0")
-public class StompSpanDecorator extends AbstractMessagingSpanDecorator {
-
- protected static final String QUEUE_PREFIX = "queue:";
-
- @Override
- public String getComponent() {
- return "stomp";
- }
-
- @Override
- public String getComponentClassName() {
- return "org.apache.camel.component.stomp.StompComponent";
- }
-
- @Override
- public String getDestination(Exchange exchange, Endpoint endpoint) {
- String destination = super.getDestination(exchange, endpoint);
- if (destination.startsWith(QUEUE_PREFIX)) {
- destination = destination.substring(QUEUE_PREFIX.length());
- }
- return destination;
- }
-
-}
diff --git
a/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/StompSpanDecoratorTest.java
b/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/StompSpanDecoratorTest.java
deleted file mode 100644
index 37b91ddcc2ac..000000000000
---
a/components/camel-tracing/src/test/java/org/apache/camel/tracing/decorators/StompSpanDecoratorTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.tracing.decorators;
-
-import org.apache.camel.Endpoint;
-import org.junit.jupiter.api.Test;
-import org.mockito.Mockito;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-@Deprecated(since = "4.19.0")
-public class StompSpanDecoratorTest {
-
- @Test
- public void testGetDestination() {
- Endpoint endpoint = Mockito.mock(Endpoint.class);
-
- Mockito.when(endpoint.getEndpointUri()).thenReturn("stomp:queue:test");
-
- AbstractMessagingSpanDecorator decorator = new StompSpanDecorator();
-
- assertEquals("test", decorator.getDestination(null, endpoint));
- }
-
-}