rservicebus 0.0.76 → 0.0.77
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rservicebus/Agent/Beanstalk.rb +15 -3
- data/lib/rservicebus/Host.rb +6 -6
- metadata +2 -2
@@ -17,10 +17,22 @@ class Agent_Beanstalk
|
|
17
17
|
# @param [String] returnAddress the name of a queue to send replies to
|
18
18
|
def sendMsg(messageObj, queueName, returnAddress=nil)
|
19
19
|
msg = RServiceBus::Message.new( messageObj, returnAddress )
|
20
|
-
|
20
|
+
|
21
|
+
|
22
|
+
if queueName.index( "@" ).nil? then
|
23
|
+
@mq.send( queueName, serialized_object )
|
24
|
+
else
|
25
|
+
parts = queueName.split( "@" )
|
26
|
+
msg.setRemoteQueueName( parts[0] )
|
27
|
+
msg.setRemoteHostName( parts[1] )
|
28
|
+
@mq.send( 'transport-out', serialized_object )
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# serialized_object = YAML::dump(msg)
|
21
33
|
|
22
|
-
|
23
|
-
|
34
|
+
#@beanstalk.use( queueName )
|
35
|
+
#@beanstalk.put( serialized_object )
|
24
36
|
end
|
25
37
|
|
26
38
|
# Gives an agent the means to receive a reply
|
data/lib/rservicebus/Host.rb
CHANGED
@@ -345,16 +345,16 @@ module RServiceBus
|
|
345
345
|
def _SendNeedsWrapping( msg, queueName )
|
346
346
|
log "Bus._SendNeedsWrapping", true
|
347
347
|
|
348
|
+
rMsg = RServiceBus::Message.new( msg, @config.localQueueName )
|
348
349
|
if queueName.index( "@" ).nil? then
|
349
|
-
|
350
|
+
q = queueName
|
350
351
|
else
|
351
352
|
parts = queueName.split( "@" )
|
352
|
-
|
353
|
-
|
354
|
-
|
353
|
+
rMsg.setRemoteQueueName( parts[0] )
|
354
|
+
rMsg.setRemoteHostName( parts[1] )
|
355
|
+
q = 'transport-out'
|
355
356
|
end
|
356
|
-
|
357
|
-
rMsg = RServiceBus::Message.new( msg, @config.localQueueName )
|
357
|
+
|
358
358
|
serialized_object = YAML::dump(rMsg)
|
359
359
|
log "Sending: " + msg.class.name + " to: " + queueName, true
|
360
360
|
self._SendAlreadyWrappedAndSerialised( serialized_object, queueName )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rservicebus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.77
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby interpretation of NServiceBus
|
15
15
|
email: guy@guyirvine.com
|