git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1044418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-12-10 16:22:41 +00:00
parent 31ed6d550e
commit bf20aa514c
2 changed files with 0 additions and 106 deletions

View File

@ -1,55 +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.
-->
<html>
<head>
<title>Consume</title>
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/amq_jquery_adapter.js"></script>
<script type="text/javascript" src="../js/amq.js"></script>
<script>
var amq = org.activemq.Amq;
amq.init({ uri: '../amq', logging: true, timeout: 45 });
amq.sendMessage("queue://test", "passed");
setTimeout(function() {
var testHandler = function(message) {
document.getElementById("received").innerHTML = message.textContent;
amq.removeListener("test", "queue://test");
}
amq.addListener("test", "queue://test", testHandler);
}, (3 * 1000));
</script>
</head>
<body>
<div id="received">
failed
</div>
</body>
</html>

View File

@ -1,51 +0,0 @@
<html>
<!--
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.
-->
<head>
<title>Consume</title>
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/amq_jquery_adapter.js"></script>
<script type="text/javascript" src="../js/amq.js"></script>
<script>
var amq = org.activemq.Amq;
amq.init({ uri: '../amq', logging: true, timeout: 45 });
var testHandler = function(message) {
document.getElementById("received").innerHTML = message.textContent;
amq.removeListener("test", "queue://test");
}
amq.addListener("test", "queue://test", testHandler);
amq.sendMessage("queue://test", "passed");
</script>
</head>
<body>
<div id="received">
failed
</div>
</body>
</html>