小编Nav*_*arr的帖子

使WebMQ同步

我正在尝试使WebMQ在MULE中同步操作,以便将消息队列转换为内部项目的REST API.不幸的是,我对MULE知之甚少.

经过一番工作后,我开始理解Request-Reply范围,并尝试使用WMQ Connector,只是发现WMQ只在流程结束后发送.

我已尝试使用VM将请求放入不同的流程中以触发它

但到目前为止,只是导致它永远等待WMQ永远不会发生.

我也尝试过来回使用虚拟机:

但它似乎做了与没有相同的事情,它只是忽略了输入.

现在我知道WMQ的输入和输出正在工作,因为我之前设置了一个使用http与自身通信的流程,并让它知道消息何时通过.

我本质上想要的是这个,但使用HTTP而不是AJAX

我最近的,也许最接近的尝试看起来像这样:

XML是:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:http="http://www.mulesoft.org/schema/mule/http" version="EE-3.6.0" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:ajax="http://www.mulesoft.org/schema/mule/ajax" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:ee="http://www.mulesoft.org/schema/mule/ee/core" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:stdio="http://www.mulesoft.org/schema/mule/stdio" xmlns:test="http://www.mulesoft.org/schema/mule/test" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:wmq="http://www.mulesoft.org/schema/mule/ee/wmq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/ajax http://www.mulesoft.org/schema/mule/ajax/current/mule-ajax.xsd
http://www.mulesoft.org/schema/mule/ee/wmq http://www.mulesoft.org/schema/mule/ee/wmq/current/mule-wmq-ee.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/ee/core http://www.mulesoft.org/schema/mule/ee/core/current/mule-ee.xsd
http://www.mulesoft.org/schema/mule/stdio http://www.mulesoft.org/schema/mule/stdio/current/mule-stdio.xsd
http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/current/mule-test.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd">

    <wmq:connector channel="MAGENTO.SVRCONN" doc:name="WMQ Connector" hostName="[ip]" name="wmqConnector" port="1414" queueManager="MAGENTO" transportType="CLIENT_MQ_TCPIP" validateConnections="true" />
    <vm:connector name="VM" validateConnections="true" doc:name="VM">
        <vm:queue-profile maxOutstandingMessages="500">
            <default-persistent-queue-store/>
        </vm:queue-profile>
    </vm:connector>
    <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> …
Run Code Online (Sandbox Code Playgroud)

mule mule-studio

6
推荐指数
1
解决办法
543
查看次数

OpenGL + GLUT不填充最左上角的多边形?

我遇到了一个奇怪的OpenGL Bug.OpenGL对我来说很新,但我们需要在我的AI课程中使用它(因为老师真的是图形教授).

无论哪种方式,都会发生这种情况:http://img818.imageshack.us/img818/422/reversiothello.png

它恰好发生在最顶部,最左边的多边形上.换句话说,它会找到最远的多边形,然后是最远的多边形,它就是这样做的.(目前没有从董事会中删除多边形的任何内容).

我的显示功能是这样的:

void display_func(void)
{
    glClearColor(0.0, 0.45, 0.0, 1.0); // Background Color (Forest Green :3)
    glClear(GL_COLOR_BUFFER_BIT);
    glColor3f(1.0, 0.0, 0.0);

    draw_board();

    glFlush();

    glutSwapBuffers();
};
Run Code Online (Sandbox Code Playgroud)

我的draw_board函数是这样的:

void draw_board()
{
    int size = 8;
    int stepX = WINDOW_XS / size;
    int stepY = WINDOW_YS / size;

    glColor3f(0.0,0.0,0.0); // line color black

    glBegin(GL_LINES);

    // Draw Columns
    for(int i = 0;i <= WINDOW_XS;i += stepX)
    {
        glVertex2i(i,0);
        glVertex2i(i, WINDOW_YS);
    }

    // Draw Rows
    for(int j = 0;j <= WINDOW_YS;j …
Run Code Online (Sandbox Code Playgroud)

c++ opengl glut

5
推荐指数
1
解决办法
684
查看次数

使用PHP的回声,何时有区别.什么?

我最近注意到有两种方法可以在PHP中打印多个语句.

echo $a.$b; // Echo's $a and $b conjoined, and
echo $a,$b; // Echo's $a and echo's $b.
Run Code Online (Sandbox Code Playgroud)

是否有任何时间点这两种语法之间的区别重要?

php syntax

4
推荐指数
2
解决办法
950
查看次数

您如何防止图像扩展到其容器之外?

我有一个高度大于它的容器的图像。图像设置为 max-height: 100% 和 max-width: 100% 但它继续增长超出它的包含元素(高度 - 令人惊讶的是不是宽度)

如何在保持纵横比的同时防止它扩展到容器之外?

http://codepen.io/navarr/pen/zxZjjP提供了一个示例,该示例中的代码如下:

HTML:

.row {
  display: flex;
  .col {
    display: block;
    border: 1px solid blue;
    width: 50px;
    height: 400px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    .link {
      flex: 1 1 auto;
      img {
        max-height: 100%;
        max-width: 100%;
      }
    }
    h3 {
      flex: 0 0 auto;
      background: green;
    }
  }
}
Run Code Online (Sandbox Code Playgroud)
<div class="row">
  <div class="col">
    <div class="link">
      <img src="http://i.imgur.com/qG6NmU7.png" />
    </div>
    <h3>100 x 800 image</h3>
  </div>
  <div class="col"> …
Run Code Online (Sandbox Code Playgroud)

css flexbox

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

css ×1

flexbox ×1

glut ×1

mule ×1

mule-studio ×1

opengl ×1

php ×1

syntax ×1