torquebox-messaging 1.1.1-java → 2.0.0.beta1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_hook.rb +26 -3
- data/lib/torquebox-messaging.jar +0 -0
- data/lib/torquebox-messaging.rb +2 -32
- data/lib/torquebox/messaging.rb +16 -0
- data/lib/torquebox/messaging/backgroundable.rb +32 -15
- data/lib/torquebox/messaging/backgroundable_processor.rb +32 -0
- data/lib/torquebox/messaging/connection.rb +127 -0
- data/lib/torquebox/messaging/connection_factory.rb +70 -0
- data/lib/torquebox/messaging/const_missing.rb +28 -0
- data/lib/torquebox/messaging/core.rb +27 -0
- data/lib/torquebox/messaging/destination.rb +68 -111
- data/lib/torquebox/messaging/ext/javax_jms_queue_browser.rb +1 -3
- data/lib/torquebox/messaging/future_responder.rb +10 -7
- data/lib/torquebox/messaging/json_message.rb +50 -0
- data/lib/torquebox/messaging/marshal_base64_message.rb +44 -0
- data/lib/torquebox/messaging/marshal_message.rb +43 -0
- data/lib/torquebox/messaging/message.rb +123 -0
- data/lib/torquebox/messaging/message_processor.rb +47 -0
- data/lib/torquebox/messaging/processor_wrapper.rb +38 -0
- data/lib/torquebox/messaging/queue.rb +61 -0
- data/lib/torquebox/messaging/session.rb +168 -0
- data/lib/torquebox/messaging/task.rb +7 -6
- data/lib/torquebox/messaging/text_message.rb +36 -0
- data/lib/torquebox/messaging/topic.rb +54 -0
- data/lib/torquebox/messaging/xa_connection.rb +58 -0
- data/lib/torquebox/messaging/xa_connection_factory.rb +59 -0
- data/lib/torquebox/messaging/xa_session.rb +30 -0
- data/licenses/lgpl-2.1.txt +7 -9
- data/spec/backgroundable_spec.rb +17 -24
- data/spec/destination_spec.rb +31 -318
- data/spec/future_responder_spec.rb +1 -1
- data/spec/json_message_spec.rb +50 -0
- data/spec/message_processor_spec.rb +54 -0
- data/spec/message_spec.rb +114 -0
- data/spec/task_spec.rb +11 -5
- metadata +38 -77
- data/lib/acl-spi-3.0.0.CR2.jar +0 -0
- data/lib/activation-1.1.jar +0 -0
- data/lib/authorization-spi-3.0.0.CR2.jar +0 -0
- data/lib/dtdparser-1.21.jar +0 -0
- data/lib/hornetq-core-2.1.2.Final.jar +0 -0
- data/lib/hornetq-jms-client-2.1.2.Final.jar +0 -0
- data/lib/hornetq-logging-2.1.2.Final.jar +0 -0
- data/lib/identity-spi-3.0.0.CR2.jar +0 -0
- data/lib/jaxb-api-2.1.9.jar +0 -0
- data/lib/jboss-common-core-2.2.17.GA.jar +0 -0
- data/lib/jboss-jms-api_1.1_spec-1.0.0.Final.jar +0 -0
- data/lib/jboss-logging-3.0.0.Beta4.jar +0 -0
- data/lib/jboss-reflect-2.2.0.GA.jar +0 -0
- data/lib/jbosssx-bare-3.0.0.CR2.jar +0 -0
- data/lib/jbossxacml-2.0.5.CR1.jar +0 -0
- data/lib/jbossxb-2.0.3.GA.jar +0 -0
- data/lib/jnp-client-5.0.5.Final.jar +0 -0
- data/lib/jruby-complete-1.6.3.jar +0 -0
- data/lib/netty-3.2.1.Final.jar +0 -0
- data/lib/picketbox-acl-impl-3.0.0.CR2.jar +0 -0
- data/lib/picketbox-bare-3.0.0.CR2.jar +0 -0
- data/lib/picketbox-identity-impl-3.0.0.CR2.jar +0 -0
- data/lib/picketbox-spi-bare-3.0.0.CR2.jar +0 -0
- data/lib/torquebox-base-core.jar +0 -0
- data/lib/torquebox-base-metadata.jar +0 -0
- data/lib/torquebox-base-spi.jar +0 -0
- data/lib/torquebox-mc-support.jar +0 -0
- data/lib/torquebox-messaging-core.jar +0 -0
- data/lib/torquebox/messaging/client.rb +0 -75
- data/lib/torquebox/messaging/ext/javax_jms_session.rb +0 -153
- data/lib/xercesImpl-2.9.1.jar +0 -0
- data/lib/xml-apis-1.3.04.jar +0 -0
- data/spec/client_spec.rb +0 -116
- data/spec/dispatcher-queues.yml +0 -4
- data/spec/dispatcher_not_running.rb +0 -54
- data/spec/ext/java_jmx_session_spec.rb +0 -71
- data/spec/queues.yml +0 -6
@@ -1,71 +0,0 @@
|
|
1
|
-
require 'torquebox/messaging/ext/javax_jms_session'
|
2
|
-
|
3
|
-
describe javax.jms::Session do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
@session = javax.jms::Session.new
|
7
|
-
end
|
8
|
-
|
9
|
-
describe ".populate_message_properties" do
|
10
|
-
it "should do nothing if no properties are submitted" do
|
11
|
-
jms_message = mock('JMSMessage')
|
12
|
-
jms_message.should_not_receive(:setStringProperty)
|
13
|
-
|
14
|
-
@session.populate_message_properties jms_message, nil
|
15
|
-
end
|
16
|
-
|
17
|
-
it "should register properties with String keys" do
|
18
|
-
properties = {'abc' => 'def'}
|
19
|
-
|
20
|
-
jms_message = mock('JMSMessage')
|
21
|
-
jms_message.should_receive(:set_string_property).with('abc', 'def')
|
22
|
-
|
23
|
-
@session.populate_message_properties jms_message, properties
|
24
|
-
end
|
25
|
-
|
26
|
-
it "should register properties with Symbol keys" do
|
27
|
-
properties = {:abc => :def}
|
28
|
-
|
29
|
-
jms_message = mock('JMSMessage')
|
30
|
-
jms_message.should_receive(:set_string_property).with('abc', 'def')
|
31
|
-
|
32
|
-
@session.populate_message_properties jms_message, properties
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should register true as a boolean" do
|
36
|
-
properties = {:abc => true}
|
37
|
-
|
38
|
-
jms_message = mock('JMSMessage')
|
39
|
-
jms_message.should_receive(:set_boolean_property).with('abc', true)
|
40
|
-
|
41
|
-
@session.populate_message_properties jms_message, properties
|
42
|
-
end
|
43
|
-
|
44
|
-
it "should register false as a boolean" do
|
45
|
-
properties = {:abc => false}
|
46
|
-
|
47
|
-
jms_message = mock('JMSMessage')
|
48
|
-
jms_message.should_receive(:set_boolean_property).with('abc', false)
|
49
|
-
|
50
|
-
@session.populate_message_properties jms_message, properties
|
51
|
-
end
|
52
|
-
|
53
|
-
it "should register 5 as an long" do
|
54
|
-
properties = {:abc => 5}
|
55
|
-
|
56
|
-
jms_message = mock('JMSMessage')
|
57
|
-
jms_message.should_receive(:set_long_property).with('abc', 5)
|
58
|
-
|
59
|
-
@session.populate_message_properties jms_message, properties
|
60
|
-
end
|
61
|
-
|
62
|
-
it "should register 5.5 as a double" do
|
63
|
-
properties = {:abc => 5.5}
|
64
|
-
|
65
|
-
jms_message = mock('JMSMessage')
|
66
|
-
jms_message.should_receive(:set_double_property).with('abc', 5.5)
|
67
|
-
|
68
|
-
@session.populate_message_properties jms_message, properties
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|