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.
Files changed (73) hide show
  1. data/lib/gem_hook.rb +26 -3
  2. data/lib/torquebox-messaging.jar +0 -0
  3. data/lib/torquebox-messaging.rb +2 -32
  4. data/lib/torquebox/messaging.rb +16 -0
  5. data/lib/torquebox/messaging/backgroundable.rb +32 -15
  6. data/lib/torquebox/messaging/backgroundable_processor.rb +32 -0
  7. data/lib/torquebox/messaging/connection.rb +127 -0
  8. data/lib/torquebox/messaging/connection_factory.rb +70 -0
  9. data/lib/torquebox/messaging/const_missing.rb +28 -0
  10. data/lib/torquebox/messaging/core.rb +27 -0
  11. data/lib/torquebox/messaging/destination.rb +68 -111
  12. data/lib/torquebox/messaging/ext/javax_jms_queue_browser.rb +1 -3
  13. data/lib/torquebox/messaging/future_responder.rb +10 -7
  14. data/lib/torquebox/messaging/json_message.rb +50 -0
  15. data/lib/torquebox/messaging/marshal_base64_message.rb +44 -0
  16. data/lib/torquebox/messaging/marshal_message.rb +43 -0
  17. data/lib/torquebox/messaging/message.rb +123 -0
  18. data/lib/torquebox/messaging/message_processor.rb +47 -0
  19. data/lib/torquebox/messaging/processor_wrapper.rb +38 -0
  20. data/lib/torquebox/messaging/queue.rb +61 -0
  21. data/lib/torquebox/messaging/session.rb +168 -0
  22. data/lib/torquebox/messaging/task.rb +7 -6
  23. data/lib/torquebox/messaging/text_message.rb +36 -0
  24. data/lib/torquebox/messaging/topic.rb +54 -0
  25. data/lib/torquebox/messaging/xa_connection.rb +58 -0
  26. data/lib/torquebox/messaging/xa_connection_factory.rb +59 -0
  27. data/lib/torquebox/messaging/xa_session.rb +30 -0
  28. data/licenses/lgpl-2.1.txt +7 -9
  29. data/spec/backgroundable_spec.rb +17 -24
  30. data/spec/destination_spec.rb +31 -318
  31. data/spec/future_responder_spec.rb +1 -1
  32. data/spec/json_message_spec.rb +50 -0
  33. data/spec/message_processor_spec.rb +54 -0
  34. data/spec/message_spec.rb +114 -0
  35. data/spec/task_spec.rb +11 -5
  36. metadata +38 -77
  37. data/lib/acl-spi-3.0.0.CR2.jar +0 -0
  38. data/lib/activation-1.1.jar +0 -0
  39. data/lib/authorization-spi-3.0.0.CR2.jar +0 -0
  40. data/lib/dtdparser-1.21.jar +0 -0
  41. data/lib/hornetq-core-2.1.2.Final.jar +0 -0
  42. data/lib/hornetq-jms-client-2.1.2.Final.jar +0 -0
  43. data/lib/hornetq-logging-2.1.2.Final.jar +0 -0
  44. data/lib/identity-spi-3.0.0.CR2.jar +0 -0
  45. data/lib/jaxb-api-2.1.9.jar +0 -0
  46. data/lib/jboss-common-core-2.2.17.GA.jar +0 -0
  47. data/lib/jboss-jms-api_1.1_spec-1.0.0.Final.jar +0 -0
  48. data/lib/jboss-logging-3.0.0.Beta4.jar +0 -0
  49. data/lib/jboss-reflect-2.2.0.GA.jar +0 -0
  50. data/lib/jbosssx-bare-3.0.0.CR2.jar +0 -0
  51. data/lib/jbossxacml-2.0.5.CR1.jar +0 -0
  52. data/lib/jbossxb-2.0.3.GA.jar +0 -0
  53. data/lib/jnp-client-5.0.5.Final.jar +0 -0
  54. data/lib/jruby-complete-1.6.3.jar +0 -0
  55. data/lib/netty-3.2.1.Final.jar +0 -0
  56. data/lib/picketbox-acl-impl-3.0.0.CR2.jar +0 -0
  57. data/lib/picketbox-bare-3.0.0.CR2.jar +0 -0
  58. data/lib/picketbox-identity-impl-3.0.0.CR2.jar +0 -0
  59. data/lib/picketbox-spi-bare-3.0.0.CR2.jar +0 -0
  60. data/lib/torquebox-base-core.jar +0 -0
  61. data/lib/torquebox-base-metadata.jar +0 -0
  62. data/lib/torquebox-base-spi.jar +0 -0
  63. data/lib/torquebox-mc-support.jar +0 -0
  64. data/lib/torquebox-messaging-core.jar +0 -0
  65. data/lib/torquebox/messaging/client.rb +0 -75
  66. data/lib/torquebox/messaging/ext/javax_jms_session.rb +0 -153
  67. data/lib/xercesImpl-2.9.1.jar +0 -0
  68. data/lib/xml-apis-1.3.04.jar +0 -0
  69. data/spec/client_spec.rb +0 -116
  70. data/spec/dispatcher-queues.yml +0 -4
  71. data/spec/dispatcher_not_running.rb +0 -54
  72. data/spec/ext/java_jmx_session_spec.rb +0 -71
  73. 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
data/spec/queues.yml DELETED
@@ -1,6 +0,0 @@
1
-
2
- /queues/foo:
3
- durable: false
4
-
5
- /queues/bar:
6
- durable: false