rjack-qpid-client 0.14.1-java → 0.14.2-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/lib/rjack-qpid-client/base.rb +1 -1
- data/lib/rjack-qpid-client/qpid_jms_context.rb +3 -2
- data/test/test_qpid_client.rb +9 -0
- metadata +147 -121
data/History.rdoc
CHANGED
@@ -128,10 +128,11 @@ module RJack::QpidClient
|
|
128
128
|
#
|
129
129
|
# Throws javax.naming.NamingException
|
130
130
|
def lookup_destination( name )
|
131
|
+
dest = context.lookup( name )
|
131
132
|
@log.info( "Lookup of destinations[ '%s' ] =\n %s" %
|
132
133
|
[ name,
|
133
134
|
address_serialize( name, @destinations[ name ] ) ] )
|
134
|
-
|
135
|
+
dest
|
135
136
|
rescue NativeException => x
|
136
137
|
raise x.cause
|
137
138
|
end
|
@@ -165,7 +166,7 @@ module RJack::QpidClient
|
|
165
166
|
# Serialize destination
|
166
167
|
# {Addresses}[http://qpid.apache.org/books/0.14/Programming-In-Apache-Qpid/html/ch02s04.html]
|
167
168
|
# (new format). Reference: section 2.4.3.5
|
168
|
-
def address_serialize( name, opts =
|
169
|
+
def address_serialize( name, opts = {} )
|
169
170
|
opts = opts.dup
|
170
171
|
out = ( opts.delete( :address ) || name ).to_s
|
171
172
|
subject = opts.delete( :subject )
|
data/test/test_qpid_client.rb
CHANGED
@@ -74,6 +74,15 @@ class TestQpidClient < MiniTest::Unit::TestCase
|
|
74
74
|
con.close if con
|
75
75
|
end
|
76
76
|
|
77
|
+
def test_destination_not_found
|
78
|
+
con = nil
|
79
|
+
with_context do |ctx|
|
80
|
+
assert_raises( Java::javax.naming.NameNotFoundException ) do
|
81
|
+
ctx.lookup_destination( 'no-existe' )
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
77
86
|
def test_dest_exchange
|
78
87
|
con = nil
|
79
88
|
with_context do |ctx|
|
metadata
CHANGED
@@ -1,135 +1,161 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjack-qpid-client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.14.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.14.2
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- David Kellum
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
12
|
+
date: 2012-11-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rjack-jms
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 1.0.0
|
21
|
+
- - <
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '1.2'
|
24
|
+
none: false
|
25
|
+
requirement: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.0
|
30
|
+
- - <
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.2'
|
33
|
+
none: false
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rjack-slf4j
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.6.5
|
43
|
+
- - <
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.8'
|
46
|
+
none: false
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 1.6.5
|
52
|
+
- - <
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.8'
|
55
|
+
none: false
|
56
|
+
prerelease: false
|
57
|
+
type: :runtime
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rjack-logback
|
60
|
+
version_requirements: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ~>
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '1.2'
|
65
|
+
none: false
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.2'
|
71
|
+
none: false
|
72
|
+
prerelease: false
|
73
|
+
type: :development
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: minitest
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ~>
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '2.2'
|
81
|
+
none: false
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '2.2'
|
87
|
+
none: false
|
88
|
+
prerelease: false
|
89
|
+
type: :development
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rjack-tarpit
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.0'
|
97
|
+
none: false
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ~>
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2.0'
|
103
|
+
none: false
|
104
|
+
prerelease: false
|
105
|
+
type: :development
|
106
|
+
description:
|
107
|
+
email:
|
108
|
+
- dek-oss@gravitext.com
|
79
109
|
executables: []
|
80
|
-
|
81
110
|
extensions: []
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
- lib/rjack-qpid-client/qpid-common-0.14.jar
|
111
|
+
extra_rdoc_files:
|
112
|
+
- History.rdoc
|
113
|
+
- README.rdoc
|
114
|
+
files:
|
115
|
+
- History.rdoc
|
116
|
+
- Manifest.txt
|
117
|
+
- NOTICE.txt
|
118
|
+
- README.rdoc
|
119
|
+
- Rakefile
|
120
|
+
- assembly.xml
|
121
|
+
- pom.xml
|
122
|
+
- lib/rjack-qpid-client/base.rb
|
123
|
+
- lib/rjack-qpid-client.rb
|
124
|
+
- lib/rjack-qpid-client/qpid_jms_context.rb
|
125
|
+
- test/test_qpid_client.rb
|
126
|
+
- lib/rjack-qpid-client/qpid-client-0.14.jar
|
127
|
+
- lib/rjack-qpid-client/qpid-common-0.14.jar
|
100
128
|
homepage: http://rjack.rubyforge.org/qpid-client
|
101
129
|
licenses: []
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options:
|
132
|
+
- --main
|
133
|
+
- README.rdoc
|
134
|
+
require_paths:
|
135
|
+
- lib
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
hash: 2
|
110
144
|
none: false
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
segments:
|
151
|
+
- 0
|
152
|
+
hash: 2
|
119
153
|
none: false
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
hash: 2
|
124
|
-
segments:
|
125
|
-
- 0
|
126
|
-
version: "0"
|
127
154
|
requirements: []
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
signing_key:
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 1.8.24
|
157
|
+
signing_key:
|
132
158
|
specification_version: 3
|
133
159
|
summary: A gem packaging of the Qpid AMQP Java Client.
|
134
160
|
test_files: []
|
135
|
-
|
161
|
+
...
|