我一直试图通过套接字编程向Apache 发送数据,并尝试使用Apache Mina2。其想法是通过TCP将数据发送给Camel。对于TCP,我使用套接字编程。这就是我为Mina2编写的代码from("mina2:tcp://localhost:6789?out.writeBytes("Content gets received in server\n");
client.close()
我有两个数组,我需要对它们进行排序,并找到两个数组中出现的最小数字。如果没有相等,那么它应该返回-1,如果有相等,那么它应该返回那个数字。public int solution(int[] A, int[] B) int minA = A.Min();// Get minimum number of array A
if (minA == minB)// If both arrays have the same smallest n
现在我想添加mina2协议。我在下面的代码中找到了为xml配置mina2的代码,但是如何在我的spring引导应用程序中添加这一点呢?
: org.apache.camel.FailedToCreateRouteException: Failed to create route route2: Route(route2)[[From[mina2sync=true&codec... because of Failed to resolve endpoint: mina2://tcp:/
-- Here is the HL7 Receiver -->
<from uri="mina2:tcp://0.0.0.0:19191?org.apache.camel.FailedToCreateRouteException:异常: org.apache.camel.RuntimeCamelException: JBossFuse:karaf@root>未能创建路由输入: Route[[From[mina2sync=true&codec=#hl7co...由于未能解析端点: mina