rservicebus 0.0.78 → 0.0.79
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rservicebus/Transporter.rb +4 -10
- metadata +1 -1
@@ -66,24 +66,18 @@ class Transporter
|
|
66
66
|
|
67
67
|
log "Connect to destination beanstalk"
|
68
68
|
begin
|
69
|
-
|
70
|
-
destination = Beanstalk::Pool.new([
|
69
|
+
destinationUrl = '127.0.0.1:27018'
|
70
|
+
destination = Beanstalk::Pool.new([destinationUrl])
|
71
71
|
rescue Exception => e
|
72
72
|
if e.message == "Beanstalk::NotConnected" then
|
73
|
-
puts "***Could not connect to destination, check beanstalk is running at, #{
|
73
|
+
puts "***Could not connect to destination, check beanstalk is running at, #{destinationUrl}"
|
74
74
|
raise CouldNotConnectToDestination.new
|
75
75
|
end
|
76
76
|
raise
|
77
77
|
end
|
78
78
|
|
79
|
-
|
80
|
-
#getDestinationQueueName
|
81
|
-
destinationQueueName = "transportIn"
|
82
|
-
queueName = msg.destinationQueueName
|
83
|
-
|
84
|
-
#putMsg
|
85
79
|
log "Put msg, #{job.body}", true
|
86
|
-
destination.use(
|
80
|
+
destination.use( msg.remoteQueueName )
|
87
81
|
destination.put( job.body )
|
88
82
|
|
89
83
|
|