rservicebus 0.0.77 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rservicebus/Agent/Beanstalk.rb +7 -7
- metadata +1 -1
@@ -20,19 +20,19 @@ class Agent_Beanstalk
|
|
20
20
|
|
21
21
|
|
22
22
|
if queueName.index( "@" ).nil? then
|
23
|
-
|
24
|
-
|
23
|
+
q = queueName
|
24
|
+
else
|
25
25
|
parts = queueName.split( "@" )
|
26
26
|
msg.setRemoteQueueName( parts[0] )
|
27
27
|
msg.setRemoteHostName( parts[1] )
|
28
|
-
|
28
|
+
q = 'transport-out'
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
-
|
32
|
+
serialized_object = YAML::dump(msg)
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
@beanstalk.use( q )
|
35
|
+
@beanstalk.put( serialized_object )
|
36
36
|
end
|
37
37
|
|
38
38
|
# Gives an agent the means to receive a reply
|
@@ -49,4 +49,4 @@ class Agent_Beanstalk
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
end
|
52
|
+
end
|