cost 115 ms
Apache Camel - onWhen() 謂詞無法檢索 EXCEPTION_CAUGHT,但它存在於處理器中

[英]Apache Camel - onWhen() predicate cannot retrieve EXCEPTION_CAUGHT, but in the processor it is present

我無法在doCatch()之后訪問onWhen(predicate)中捕獲的異常,但我可以在doCatch()的處理器中看到它。 當我想在onWhen()中定義更細粒度的謂詞時,這很不方便。doCatch(ProcessingException.class).onWhen(predicate) // ...

REST 調用不適用於運行在 Docker 中的 Camel

[英]REST call not working with Camel running in Docker

我有這條駱駝 Rest 路線: } 我還使用 Spark 創建了第二個 REST 服務器。 如果代碼在 Docker 容器中執行,Camel 路由將不起作用。 Exception: org.apache.http.NoHttpResponseException: localhost:11010 ...

如何在特定時間觸發消息?

[英]How to trigger Messages at specific times?

我們有一個數據庫表,其中每一行都有一條文本消息和一個時間戳。 例如信息 1 09:00 消息 2 09:01 消息 3 09:15 消息 4 09:20 時間間隔不是固定的。 這是不均勻的。 我們希望將表作為源讀取,並在配置的時間戳將消息發送到目標。 像 Quartz 這樣的組件不允許配置不均勻的 ...

Apache 駱駝路線模板/多條路線/聚合定義

[英]Apache Camel Route Template / multiple Routes / aggregate definition

我試圖從同一個 camel 路由模板實例化多個路由,這導致在評估幾個簡單表達式時出現錯誤行為。 我在 spring 啟動應用程序中使用 camel 3.20.1,我在從以下路由模板創建路由時遇到問題。 我為特定的模板參數鍵使用常量——這些也用在幾個表達式中(簡單表達式等)。 在基於以下路由模板的路由 ...

如何為 apache 駱駝路線編寫單元測試

[英]How to write the unit tests for the apache camel routes

有人可以幫助編寫這個 class 的單元測試嗎? ================================================ ============================================ @Component("edi820AdapterRout ...

何時 tuckey urlrewrite 將支持雅加達和 tuckey urlrewrite 的替代品

[英]when the tuckey urlrewrite will support jakarta and alternatives of tuckey urlrewrite

目前 tuckey urlrewrite 內部使用 javax,所以我面臨 jakarta 和 javax 之間的類型不匹配錯誤,因為我的項目使用 jakarta 來支持 tomcat 10。 所以我想知道 tuckey urlrewrite package 何時遷移到雅加達。 我想知道在 spri ...

Apache Camel - 在多步拆分路由中間拋出異常時跳轉到聚合器的方法快捷方式

[英]Apache Camel - method shortcut to jump to aggregator when exception thrown in the middle of a multiple step split route

我想問一下是否有某種方法可以跳過拆分路由的 rest 並直接跳轉到聚合器部分,當在異常處理程序中我將拆分路由標記為繼續時。 我有這樣的路線: 收到消息獲取 3 個端點的配置將配置和消息合並為每個端點的元組,並創建它的列表 .split() ,在拆分路由中,我根據每個端點( s1 )的配置轉換消息,獲 ...

如何在每次拆分迭代時在處理器中更新交換屬性

[英]How to get exchange property updated in processor upon each splitting iteration

我需要一個交換屬性值,我在拆分后在處理器中更新它就像, //分叉 //這是我的聚合策略 請幫忙。 在 AggeregationStrategy 中,我正在從新的交換中獲取更新的值,但無法在下一個連續的處理器中獲取相同的值。 ...

Apache Camel - Seda 端點、recipientList、BlockWhenFull=true 和 Queue full IllegalStateException

[英]Apache Camel - Seda endpoint, recipientList, BlockWhenFull=true and Queue full IllegalStateException

我有一個代碼可以從 RabbitMQ 隊列中檢索消息,聚合它們,然后將聚合分發到另一個路由,該路由將通過 recipientList 組件將它們分派到不同的路由。 問題在於,盡管在生產者端添加了 blockWhenFull=true 屬性,但后者仍會拋出“由於隊列已滿而導致執行反應式工作時出錯”異 ...

Quarkus 是否支持開箱即用的 MongoDB GridFS?

[英]Does Quarkus support MongoDB GridFS out of the box?

我正在使用 Quarkus 開始一個新項目,並希望使用 MongoDB 作為我們的數據存儲。 我們想通過 REST(多部分形式)上傳/下載大文件(> 100MB),並將它們與一些元數據一起存檔在 MongoDB 中以供以后檢索。 我讀到 GridFS 非常適合這個,想知道 Quarkus 是 ...

從 Apache Camel 3.16.0 升級到 3.17.0 - 無法加載 ApplicationContext

[英]Upgrading from Apache Camel 3.16.0 to 3.17.0 - Failed to load ApplicationContext

將 Springboot 應用程序從 Apache Camel 3.16.0 升級到 3.17.0 時,很多單元測試失敗所有失敗的測試都有以下注釋: 所有通過的測試都沒有 @SpringBootTest 注釋或具有特定類,例如: 我有以下駱駝 springboot 依賴項 CamelContex ...

如何在 Apache Camel AMQP 組件中獲取 AMQP 消息屬性

[英]How to get AMQP Message properties in Apache Camel AMQP Component

我有一個 Springboot 應用程序,它使用 Apache Camel AMQP 組件來處理來自 Solace 隊列的消息。 要向隊列發送消息,我使用Postman和Solace REST8810005121333888。為了使消息類型I添加內容i的添加到header的信息類型I添加了conte ...

在 apache 駱駝中解組后我們如何訪問原始輸入消息

[英]How can we access to original input message after unmarshal in apache camel

我從隊列中得到一個輸入 json 字符串到我的駱駝路線,我需要解組它以獲得 java object。解組后我無法通過 Exchange object 訪問我的原始消息。 如果有人遇到同樣的問題並找到解決方案,請您回答這個問題。 我試圖從傳入的駱駝路線將 json 字符串解組為 java object ...

如何在特定時間傳輸消息?

[英]How to transfer messages, each at a specific time?

我在 CSV 文件中有大約 10K 條消息。 每條消息都有一個關聯的時間戳。 到達時間后,我希望將消息傳送到 MQ。 時間戳不是均勻分布的。 這可能與 Apache 駱駝有關嗎? ...

如何在 CamelSpringBootTest 中啟動 CamelContext 之前模擬 Apache Camel Route

[英]How to mock Apache Camel Route before CamelContext is started in CamelSpringBootTest

也許是一個相當不常見的問題,但我想在JUnit 設置方法中模擬某些 Camel 路由 之前 被執行,這似乎發生了,一旦CamelContext被自動裝配 我需要做什么來防止 Camel 上下文自動啟動,以便能夠在設置方法中模擬我的路由並手動啟動它? ...

當 source 和 replyTo 相同時,在 route 停止后停止 Camel 消費

[英]When source and replyTo is the same, stop Camel from consuming after route stopped

我們的系統配置為消費和發送回復到同一個隊列,即JMSDestination和JMSReplyTo是相同的。 我現在無法更改。 在我的集成測試中,如果我設置replyToSameDestinationAllowed=true ,Camel 會繼續使用我發送到隊列的回復,即它“捕獲”源並且永不停止並進入 ...

在少數情況下,由於 toD(url) 而導致不完整的 json

[英]Getting incomplete json as result of toD(url) for few cases

我正在使用 apache 駱駝並從另一個系統擁有的數據湖中獲取數據。 雖然在大多數情況下這個流程工作得很好但是對於極少數事件我觀察到我的應用程序收到了不完整的數據並且流程中斷說com.fasterxml.jackson.databind.JsonMappingException:非法未加引號的字符 ...

Apache Camel SQL 組件 select 批量記錄全部

[英]Apache Camel SQL component select all records in a batch mode

我使用 apache camel 作為 ETL,從( select *... )PostgreSQL 到( insert... )MariaDB。 PostgreSQL里面有很多條記錄(超過1M),想批量處理。 我試過幾個標志( batchCount , batchSize ),但沒有一個有效。 ...

您好,我如何在 spring 啟動應用程序中為 Microsoft Exchange 實施 OAuth 2.0

[英]Hi how do I implement OAuth 2.0 for Microsoft exchange in spring boot application

springboot 應用程序使用駱駝配置,我想實現 OAuth 2.0 以使用 IMAPS 協議通過 Microsoft exchang 連接到不同應用程序的郵箱。 我如何實施它。 我有租戶 ID、客戶端 ID、令牌值和令牌 ID。 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM