org.torquebox.torquebox-naming-client 1.0.0.Beta22-java → 1.0.0.Beta23-java
Sign up to get free protection for your applications and to get access to all the features.
Binary file
|
data/lib/torquebox/naming.rb
CHANGED
@@ -57,6 +57,7 @@ module TorqueBox
|
|
57
57
|
props = java.util.Hashtable.new( {
|
58
58
|
'java.naming.provider.url'=>"jnp://#{host}:#{port}/",
|
59
59
|
'java.naming.factory.initial'=>FACTORY,
|
60
|
+
'java.naming.factory.url.pkgs'=>'org.jboss.naming:org.jnp.interfaces'
|
60
61
|
} )
|
61
62
|
javax.naming::InitialContext.new(props)
|
62
63
|
else
|
@@ -65,10 +66,10 @@ module TorqueBox
|
|
65
66
|
end
|
66
67
|
|
67
68
|
def self.connect(host, port, &block)
|
68
|
-
return context if ( block.nil? )
|
69
|
+
return context(host, port) if ( block.nil? )
|
69
70
|
|
70
71
|
reconfigure_on_error do
|
71
|
-
ctx = context
|
72
|
+
ctx = context(host, port)
|
72
73
|
begin
|
73
74
|
block.call( ctx )
|
74
75
|
ensure
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
9
|
+
- Beta23
|
10
|
+
version: 1.0.0.Beta23
|
11
11
|
platform: java
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-06 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|