Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
e04e6ca6
Commit
e04e6ca6
authored
Jun 29, 2016
by
Nicolas Tachker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JORAM-255: remove a bad Connection cast on createContext method.
parent
44448f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/OutboundConnectionFactory.java
...web/joram/client/connector/OutboundConnectionFactory.java
+5
-5
No files found.
joram/joram/client/jca/src/main/java/org/objectweb/joram/client/connector/OutboundConnectionFactory.java
View file @
e04e6ca6
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2004 - 201
3
ScalAgent Distributed Technologies
* Copyright (C) 2004 - 201
6
ScalAgent Distributed Technologies
* Copyright (C) 2004 Bull SA
*
* This library is free software; you can redistribute it and/or
...
...
@@ -157,7 +157,7 @@ public class OutboundConnectionFactory implements javax.jms.ConnectionFactory,
public
javax
.
jms
.
JMSContext
createContext
()
{
try
{
return
new
JMSContext
(
(
Connection
)
createConnection
());
return
new
JMSContext
(
createConnection
());
}
catch
(
JMSSecurityException
e
)
{
logger
.
log
(
BasicLevel
.
ERROR
,
"Unable to create JMSContext"
,
e
);
throw
new
JMSSecurityRuntimeException
(
"Unable to create JMSContext"
,
e
.
getMessage
(),
e
);
...
...
@@ -170,7 +170,7 @@ public class OutboundConnectionFactory implements javax.jms.ConnectionFactory,
public
javax
.
jms
.
JMSContext
createContext
(
String
userName
,
String
password
)
{
try
{
return
new
JMSContext
(
(
Connection
)
createConnection
(
userName
,
password
));
return
new
JMSContext
(
createConnection
(
userName
,
password
));
}
catch
(
JMSSecurityException
e
)
{
logger
.
log
(
BasicLevel
.
ERROR
,
"Unable to create JMSContext"
,
e
);
throw
new
JMSSecurityRuntimeException
(
"Unable to create JMSContext"
,
e
.
getMessage
(),
e
);
...
...
@@ -182,7 +182,7 @@ public class OutboundConnectionFactory implements javax.jms.ConnectionFactory,
public
javax
.
jms
.
JMSContext
createContext
(
String
userName
,
String
password
,
int
sessionMode
)
{
try
{
return
new
JMSContext
(
(
Connection
)
createConnection
(
userName
,
password
),
sessionMode
);
return
new
JMSContext
(
createConnection
(
userName
,
password
),
sessionMode
);
}
catch
(
JMSSecurityException
e
)
{
logger
.
log
(
BasicLevel
.
ERROR
,
"Unable to create JMSContext"
,
e
);
throw
new
JMSSecurityRuntimeException
(
"Unable to create JMSContext"
,
e
.
getMessage
(),
e
);
...
...
@@ -194,7 +194,7 @@ public class OutboundConnectionFactory implements javax.jms.ConnectionFactory,
public
javax
.
jms
.
JMSContext
createContext
(
int
sessionMode
)
{
try
{
return
new
JMSContext
(
(
Connection
)
createConnection
(),
sessionMode
);
return
new
JMSContext
(
createConnection
(),
sessionMode
);
}
catch
(
JMSSecurityException
e
)
{
logger
.
log
(
BasicLevel
.
ERROR
,
"Unable to create JMSContext"
,
e
);
throw
new
JMSSecurityRuntimeException
(
"Unable to create JMSContext"
,
e
.
getMessage
(),
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment