torquebox-messaging 3.2.0-java → 4.0.0.alpha1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/lib/torquebox-messaging.rb +19 -20
  3. data/lib/torquebox/messaging.rb +80 -20
  4. data/lib/torquebox/messaging/context.rb +174 -0
  5. data/lib/torquebox/messaging/destination.rb +164 -215
  6. data/lib/torquebox/messaging/helpers.rb +34 -0
  7. data/lib/torquebox/messaging/hornetq.rb +70 -0
  8. data/lib/torquebox/messaging/hornetq/address_settings.rb +228 -0
  9. data/lib/torquebox/messaging/queue.rb +139 -301
  10. data/lib/torquebox/messaging/topic.rb +84 -46
  11. data/lib/wunderboss-jars/hornetq-commons-2.4.5.Final.jar +0 -0
  12. data/lib/wunderboss-jars/hornetq-core-client-2.4.5.Final.jar +0 -0
  13. data/lib/wunderboss-jars/hornetq-jms-client-2.4.5.Final.jar +0 -0
  14. data/lib/wunderboss-jars/hornetq-jms-server-2.4.5.Final.jar +0 -0
  15. data/lib/wunderboss-jars/hornetq-journal-2.4.5.Final.jar +0 -0
  16. data/lib/wunderboss-jars/hornetq-native-2.4.5.Final.jar +0 -0
  17. data/lib/wunderboss-jars/hornetq-server-2.4.5.Final.jar +0 -0
  18. data/lib/wunderboss-jars/javax.inject-1.jar +0 -0
  19. data/lib/wunderboss-jars/jboss-common-core-2.2.10.GA.jar +0 -0
  20. data/lib/wunderboss-jars/jboss-connector-api_1.5_spec-1.0.0.Final.jar +0 -0
  21. data/lib/wunderboss-jars/jboss-jms-api_2.0_spec-1.0.0.Final.jar +0 -0
  22. data/lib/wunderboss-jars/jboss-transaction-api_1.1_spec-1.0.0.Final.jar +0 -0
  23. data/lib/wunderboss-jars/jboss-transaction-spi-7.0.0.Final.jar +0 -0
  24. data/lib/wunderboss-jars/jnpserver-5.0.3.GA.jar +0 -0
  25. data/lib/wunderboss-jars/netty-all-4.0.13.Final.jar +0 -0
  26. data/lib/wunderboss-jars/wunderboss-messaging-1.x.incremental.174.jar +0 -0
  27. metadata +88 -98
  28. data/lib/gem_hook.rb +0 -51
  29. data/lib/hornetq-commons-2.3.1.Final.jar +0 -0
  30. data/lib/hornetq-core-client-2.3.1.Final.jar +0 -0
  31. data/lib/hornetq-jms-client-2.3.1.Final.jar +0 -0
  32. data/lib/hornetq-journal-2.3.1.Final.jar +0 -0
  33. data/lib/jboss-jms-api_1.1_spec-1.0.1.Final.jar +0 -0
  34. data/lib/jboss-logging-3.1.2.GA.jar +0 -0
  35. data/lib/jboss-logmanager-1.4.0.Final.jar +0 -0
  36. data/lib/jboss-transaction-api_1.1_spec-1.0.1.Final.jar +0 -0
  37. data/lib/netty-3.6.2.Final.jar +0 -0
  38. data/lib/org.torquebox.messaging-client.rb +0 -20
  39. data/lib/torquebox-messaging.jar +0 -0
  40. data/lib/torquebox/messaging/backgroundable.rb +0 -250
  41. data/lib/torquebox/messaging/backgroundable_processor.rb +0 -52
  42. data/lib/torquebox/messaging/connection.rb +0 -74
  43. data/lib/torquebox/messaging/connection_factory.rb +0 -115
  44. data/lib/torquebox/messaging/const_missing.rb +0 -28
  45. data/lib/torquebox/messaging/core.rb +0 -27
  46. data/lib/torquebox/messaging/datamapper_marshaling.rb +0 -43
  47. data/lib/torquebox/messaging/echo_processor.rb +0 -35
  48. data/lib/torquebox/messaging/edn_message.rb +0 -26
  49. data/lib/torquebox/messaging/ext/javax_jms_queue_browser.rb +0 -25
  50. data/lib/torquebox/messaging/future.rb +0 -131
  51. data/lib/torquebox/messaging/future_responder.rb +0 -109
  52. data/lib/torquebox/messaging/future_status.rb +0 -37
  53. data/lib/torquebox/messaging/json_message.rb +0 -26
  54. data/lib/torquebox/messaging/marshal_base64_message.rb +0 -26
  55. data/lib/torquebox/messaging/marshal_message.rb +0 -43
  56. data/lib/torquebox/messaging/message.rb +0 -137
  57. data/lib/torquebox/messaging/message_processor.rb +0 -209
  58. data/lib/torquebox/messaging/processor_middleware/chain.rb +0 -89
  59. data/lib/torquebox/messaging/processor_middleware/default_middleware.rb +0 -39
  60. data/lib/torquebox/messaging/processor_middleware/with_transaction.rb +0 -35
  61. data/lib/torquebox/messaging/session.rb +0 -173
  62. data/lib/torquebox/messaging/task.rb +0 -66
  63. data/lib/torquebox/messaging/text_message.rb +0 -36
  64. data/lib/torquebox/messaging/xa_connection.rb +0 -55
  65. data/lib/torquebox/messaging/xa_connection_factory.rb +0 -45
  66. data/lib/torquebox/messaging/xa_session.rb +0 -51
  67. data/licenses/cc0-1.0.txt +0 -121
  68. data/spec/backgroundable_spec.rb +0 -319
  69. data/spec/chain_spec.rb +0 -160
  70. data/spec/datamapper_marshaling_spec.rb +0 -25
  71. data/spec/default_middleware_spec.rb +0 -21
  72. data/spec/destination_spec.rb +0 -248
  73. data/spec/future_responder_spec.rb +0 -81
  74. data/spec/future_spec.rb +0 -163
  75. data/spec/message_processor_spec.rb +0 -211
  76. data/spec/message_spec.rb +0 -135
  77. data/spec/task_spec.rb +0 -111
@@ -1,65 +1,103 @@
1
- # Copyright 2008-2013 Red Hat, Inc, and individual contributors.
2
- #
3
- # This is free software; you can redistribute it and/or modify it
4
- # under the terms of the GNU Lesser General Public License as
5
- # published by the Free Software Foundation; either version 2.1 of
6
- # the License, or (at your option) any later version.
7
- #
8
- # This software is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
- # Lesser General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU Lesser General Public
14
- # License along with this software; if not, write to the Free
15
- # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16
- # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
1
+ # Copyright 2014 Red Hat, Inc, and individual contributors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
17
14
 
18
- require 'torquebox/messaging/destination'
19
- require 'torquebox/service_registry'
20
15
 
21
16
  module TorqueBox
22
17
  module Messaging
18
+ # Represents a messaging topic.
19
+ #
20
+ # Obtain a topic object by calling {TorqueBox::Messaging.topic}.
23
21
  class Topic < Destination
24
22
 
25
- DEFAULT_SUBSCRIBER_NAME = 'subscriber-1'
23
+ # Valid options for topic creation.
24
+ TOPIC_OPTIONS = optset(WBMessaging::CreateTopicOption, :default_options)
26
25
 
27
- class << self
26
+ # Valid options for {#subscribe}.
27
+ SUBSCRIBE_OPTIONS = optset(WBTopic::SubscribeOption)
28
28
 
29
- # Creates the topic, starts and return a Topic object.
30
- #
31
- # @param name The name of the topic
32
- # @param options Optional parameters (a Hash), including:
33
- # @option options [Boolean] :exported If the topic should be visible in remote JNDI lookups
34
- # @return [Topic] if the service is created and started
35
- # @return [nil] if the service is not created in the specified time (30 s)
36
- def start(name, options={})
37
- exported = options.fetch(:exported, false)
38
-
39
- with_destinationizer do |destinationizer|
40
- destinationizer.create_topic(name, exported)
41
- end
29
+ # Sets up a durable subscription to this topic, and registers a
30
+ # listener with the given block to receive messages on the
31
+ # subscription.
32
+ #
33
+ # A name is used to identify the subscription, allowing you to
34
+ # stop the listener and resubscribe with the same name in the
35
+ # future without losing messages sent in the interim.
36
+ #
37
+ # If a selector is provided, then only messages having
38
+ # properties matching that expression may be received.
39
+ #
40
+ # If no context is provided, a new context is created for this
41
+ # subscriber. If a context is provided, it must have its :client_id
42
+ # set (see Context).
43
+ #
44
+ # Subscriptions should be torn down when no longer needed - (see
45
+ # #unsubscribe).
42
46
 
43
- new(name, options)
47
+ # @param name [String] The name of the subscription.
48
+ # @param options [Hash] Options for the subscription.
49
+ # @option options :decode [true, false] If true, the decoded
50
+ # message body is passed to the block. Otherwise, the
51
+ # base message object is passed.
52
+ # @option options :context [Context] a context to use;
53
+ # caller expected to close.
54
+ # @return A listener object that can be stopped by
55
+ # calling .close on it.
56
+ def subscribe(name, options = {}, &block)
57
+ validate_options(options, SUBSCRIBE_OPTIONS)
58
+ options = apply_default_options(options)
59
+ options = coerce_context(options)
60
+ handler = MessageHandler.new do |message|
61
+ block.call(options.fetch(:decode, true) ? message.body : message)
44
62
  end
63
+ @internal_destination.subscribe(name, handler,
64
+ Codecs.java_codecs,
65
+ extract_options(options, WBTopic::SubscribeOption))
45
66
  end
46
67
 
47
- # Unsubscribes the selected subscriber from the topic
68
+ # Valid options for {#unsubscribe}.
69
+ UNSUBSCRIBE_OPTIONS = optset(WBTopic::UnsubscribeOption)
70
+
71
+ # Tears down a durable topic subscription.
48
72
  #
49
- # @param subscriber_name The subscriber name to unsubscribe
50
- # @param options Optional parameters (a Hash)
73
+ # If no context is provided, a new context is created for
74
+ # this action. If a context is provided, it must have its
75
+ # :client_id set to the same value used when creating the
76
+ # subscription (see #subscribe).
77
+ #
78
+ # @param name [String] The name of the subscription.
79
+ # @param options [Hash] Options for the subscription.
80
+ # @option options :context [Context] a context to use;
81
+ # caller expected to close.
51
82
  # @return [void]
52
- def unsubscribe(subscriber_name = DEFAULT_SUBSCRIBER_NAME, options = { })
53
- wait_for_destination(options[:startup_timeout]) do
54
- with_session do |session|
55
- session.unsubscribe( subscriber_name )
56
- end
57
- end
83
+ def unsubscribe(name, options = {})
84
+ validate_options(options, UNSUBSCRIBE_OPTIONS)
85
+ options = apply_default_options(options)
86
+ options = coerce_context(options)
87
+ @internal_destination.unsubscribe(name,
88
+ extract_options(options, WBTopic::UnsubscribeOption))
58
89
  end
59
-
60
- def to_s
61
- "[Topic: #{super}]"
90
+
91
+ protected
92
+
93
+ def initialize(name, options = {})
94
+ validate_options(options, TOPIC_OPTIONS)
95
+ coerced_opts = coerce_context(options)
96
+ create_options = extract_options(coerced_opts, WBMessaging::CreateTopicOption)
97
+ super(default_broker.find_or_create_topic(name, create_options),
98
+ options)
62
99
  end
100
+
63
101
  end
64
102
  end
65
103
  end
metadata CHANGED
@@ -1,136 +1,133 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquebox-messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0.alpha1
5
5
  platform: java
6
6
  authors:
7
7
  - The TorqueBox Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: torquebox-core
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.0
20
- version_requirements: !ruby/object:Gem::Requirement
19
+ version: 4.0.0.alpha1
20
+ requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - '='
23
23
  - !ruby/object:Gem::Version
24
- version: 3.2.0
24
+ version: 4.0.0.alpha1
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
- name: torquebox-transactions
29
- requirement: !ruby/object:Gem::Requirement
28
+ name: jbundler
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.0
34
- version_requirements: !ruby/object:Gem::Requirement
33
+ version: '0'
34
+ requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '='
36
+ - - '>='
37
37
  - !ruby/object:Gem::Version
38
- version: 3.2.0
38
+ version: '0'
39
39
  prerelease: false
40
- type: :runtime
40
+ type: :development
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - '='
50
+ - - '>='
46
51
  - !ruby/object:Gem::Version
47
- version: 2.14.1
52
+ version: '0'
53
+ prerelease: false
54
+ type: :development
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
48
57
  version_requirements: !ruby/object:Gem::Requirement
49
58
  requirements:
50
- - - '='
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
51
65
  - !ruby/object:Gem::Version
52
- version: 2.14.1
66
+ version: '0'
53
67
  prerelease: false
54
68
  type: :development
55
69
  - !ruby/object:Gem::Dependency
56
- name: newrelic_rpm
70
+ name: rspec
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '2.14'
57
76
  requirement: !ruby/object:Gem::Requirement
58
77
  requirements:
59
- - - '='
78
+ - - ~>
60
79
  - !ruby/object:Gem::Version
61
- version: 3.3.2
80
+ version: '2.14'
81
+ prerelease: false
82
+ type: :development
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard-rspec
62
85
  version_requirements: !ruby/object:Gem::Requirement
63
86
  requirements:
64
- - - '='
87
+ - - ~>
65
88
  - !ruby/object:Gem::Version
66
- version: 3.3.2
89
+ version: '4.2'
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: '4.2'
67
95
  prerelease: false
68
96
  type: :development
69
- description: ''
70
- email:
71
- - torquebox-dev@torquebox.org
97
+ description:
98
+ email: torquebox-dev@torquebox.org
72
99
  executables: []
73
100
  extensions: []
74
101
  extra_rdoc_files: []
75
102
  files:
76
- - lib/gem_hook.rb
77
- - lib/hornetq-commons-2.3.1.Final.jar
78
- - lib/hornetq-core-client-2.3.1.Final.jar
79
- - lib/hornetq-jms-client-2.3.1.Final.jar
80
- - lib/hornetq-journal-2.3.1.Final.jar
81
- - lib/jboss-jms-api_1.1_spec-1.0.1.Final.jar
82
- - lib/jboss-logging-3.1.2.GA.jar
83
- - lib/jboss-logmanager-1.4.0.Final.jar
84
- - lib/jboss-transaction-api_1.1_spec-1.0.1.Final.jar
85
- - lib/netty-3.6.2.Final.jar
86
- - lib/org.torquebox.messaging-client.rb
87
- - lib/torquebox-messaging.jar
88
103
  - lib/torquebox-messaging.rb
104
+ - lib/wunderboss-jars/jboss-jms-api_2.0_spec-1.0.0.Final.jar
105
+ - lib/wunderboss-jars/hornetq-server-2.4.5.Final.jar
106
+ - lib/wunderboss-jars/hornetq-core-client-2.4.5.Final.jar
107
+ - lib/wunderboss-jars/javax.inject-1.jar
108
+ - lib/wunderboss-jars/netty-all-4.0.13.Final.jar
109
+ - lib/wunderboss-jars/jboss-connector-api_1.5_spec-1.0.0.Final.jar
110
+ - lib/wunderboss-jars/hornetq-native-2.4.5.Final.jar
111
+ - lib/wunderboss-jars/jboss-common-core-2.2.10.GA.jar
112
+ - lib/wunderboss-jars/jboss-transaction-spi-7.0.0.Final.jar
113
+ - lib/wunderboss-jars/hornetq-jms-server-2.4.5.Final.jar
114
+ - lib/wunderboss-jars/hornetq-jms-client-2.4.5.Final.jar
115
+ - lib/wunderboss-jars/hornetq-commons-2.4.5.Final.jar
116
+ - lib/wunderboss-jars/jnpserver-5.0.3.GA.jar
117
+ - lib/wunderboss-jars/hornetq-journal-2.4.5.Final.jar
118
+ - lib/wunderboss-jars/jboss-transaction-api_1.1_spec-1.0.0.Final.jar
119
+ - lib/wunderboss-jars/wunderboss-messaging-1.x.incremental.174.jar
89
120
  - lib/torquebox/messaging.rb
90
- - lib/torquebox/messaging/backgroundable.rb
91
- - lib/torquebox/messaging/backgroundable_processor.rb
92
- - lib/torquebox/messaging/connection.rb
93
- - lib/torquebox/messaging/connection_factory.rb
94
- - lib/torquebox/messaging/const_missing.rb
95
- - lib/torquebox/messaging/core.rb
96
- - lib/torquebox/messaging/datamapper_marshaling.rb
97
- - lib/torquebox/messaging/destination.rb
98
- - lib/torquebox/messaging/echo_processor.rb
99
- - lib/torquebox/messaging/edn_message.rb
100
- - lib/torquebox/messaging/ext/javax_jms_queue_browser.rb
101
- - lib/torquebox/messaging/future.rb
102
- - lib/torquebox/messaging/future_responder.rb
103
- - lib/torquebox/messaging/future_status.rb
104
- - lib/torquebox/messaging/json_message.rb
105
- - lib/torquebox/messaging/marshal_base64_message.rb
106
- - lib/torquebox/messaging/marshal_message.rb
107
- - lib/torquebox/messaging/message.rb
108
- - lib/torquebox/messaging/message_processor.rb
109
- - lib/torquebox/messaging/processor_middleware/chain.rb
110
- - lib/torquebox/messaging/processor_middleware/default_middleware.rb
111
- - lib/torquebox/messaging/processor_middleware/with_transaction.rb
112
121
  - lib/torquebox/messaging/queue.rb
113
- - lib/torquebox/messaging/session.rb
114
- - lib/torquebox/messaging/task.rb
115
- - lib/torquebox/messaging/text_message.rb
122
+ - lib/torquebox/messaging/context.rb
123
+ - lib/torquebox/messaging/helpers.rb
116
124
  - lib/torquebox/messaging/topic.rb
117
- - lib/torquebox/messaging/xa_connection.rb
118
- - lib/torquebox/messaging/xa_connection_factory.rb
119
- - lib/torquebox/messaging/xa_session.rb
120
- - licenses/cc0-1.0.txt
121
- - spec/backgroundable_spec.rb
122
- - spec/chain_spec.rb
123
- - spec/datamapper_marshaling_spec.rb
124
- - spec/default_middleware_spec.rb
125
- - spec/destination_spec.rb
126
- - spec/future_responder_spec.rb
127
- - spec/future_spec.rb
128
- - spec/message_processor_spec.rb
129
- - spec/message_spec.rb
130
- - spec/task_spec.rb
131
- homepage: http://torquebox.org/
125
+ - lib/torquebox/messaging/hornetq.rb
126
+ - lib/torquebox/messaging/destination.rb
127
+ - lib/torquebox/messaging/hornetq/address_settings.rb
128
+ homepage: http://torquebox.org/torqbox
132
129
  licenses:
133
- - Public Domain
130
+ - Apache-2.0
134
131
  metadata: {}
135
132
  post_install_message:
136
133
  rdoc_options: []
@@ -138,28 +135,21 @@ require_paths:
138
135
  - lib
139
136
  required_ruby_version: !ruby/object:Gem::Requirement
140
137
  requirements:
141
- - - ">="
138
+ - - '>='
142
139
  - !ruby/object:Gem::Version
143
- version: '0'
140
+ version: 1.9.3
144
141
  required_rubygems_version: !ruby/object:Gem::Requirement
145
142
  requirements:
146
- - - ">="
143
+ - - '>'
147
144
  - !ruby/object:Gem::Version
148
- version: '0'
149
- requirements: []
145
+ version: 1.3.1
146
+ requirements:
147
+ - jar org.projectodd.wunderboss:wunderboss-ruby, 1.x.incremental.174
148
+ - jar org.projectodd.wunderboss:wunderboss-messaging, 1.x.incremental.174
150
149
  rubyforge_project:
151
- rubygems_version: 2.6.6
150
+ rubygems_version: 2.1.9
152
151
  signing_key:
153
152
  specification_version: 4
154
- summary: TorqueBox Messaging Client
155
- test_files:
156
- - spec/future_spec.rb
157
- - spec/future_responder_spec.rb
158
- - spec/destination_spec.rb
159
- - spec/message_processor_spec.rb
160
- - spec/datamapper_marshaling_spec.rb
161
- - spec/backgroundable_spec.rb
162
- - spec/default_middleware_spec.rb
163
- - spec/task_spec.rb
164
- - spec/chain_spec.rb
165
- - spec/message_spec.rb
153
+ summary: TorqueBox Next Generation
154
+ test_files: []
155
+ has_rdoc:
data/lib/gem_hook.rb DELETED
@@ -1,51 +0,0 @@
1
- # Copyright 2008-2013 Red Hat, Inc, and individual contributors.
2
- #
3
- # This is free software; you can redistribute it and/or modify it
4
- # under the terms of the GNU Lesser General Public License as
5
- # published by the Free Software Foundation; either version 2.1 of
6
- # the License, or (at your option) any later version.
7
- #
8
- # This software is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
- # Lesser General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU Lesser General Public
14
- # License along with this software; if not, write to the Free
15
- # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
16
- # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
17
-
18
- begin
19
- javax.jms::Session
20
- rescue
21
- # $stderr.puts "Will not load torquebox-messaging: javax.jms.* cannot be loaded"
22
- return
23
- end
24
-
25
- require 'torquebox/messaging/connection_factory'
26
- require 'torquebox/messaging/connection'
27
- require 'torquebox/messaging/session'
28
-
29
- require 'torquebox/messaging/message'
30
- require 'torquebox/messaging/json_message'
31
- require 'torquebox/messaging/edn_message'
32
- require 'torquebox/messaging/text_message'
33
- require 'torquebox/messaging/marshal_base64_message'
34
- require 'torquebox/messaging/marshal_message'
35
-
36
- require 'torquebox/messaging/destination'
37
- require 'torquebox/messaging/queue'
38
- require 'torquebox/messaging/topic'
39
-
40
- require 'torquebox/messaging/xa_connection_factory'
41
- require 'torquebox/messaging/xa_connection'
42
- require 'torquebox/messaging/xa_session'
43
-
44
- require 'torquebox/messaging/processor_middleware/chain'
45
- require 'torquebox/messaging/processor_middleware/with_transaction'
46
- require 'torquebox/messaging/message_processor'
47
- require 'torquebox/messaging/task'
48
- require 'torquebox/messaging/backgroundable'
49
-
50
-
51
- require 'torquebox/messaging/datamapper_marshaling'