Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joram
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joram
joram
Commits
12c5362e
Commit
12c5362e
authored
Oct 04, 2017
by
afreyssin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes.
parent
8e18cc6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
joram/joram/tools/rest/jms/src/main/java/org/objectweb/joram/tools/rest/jms/Helper.java
.../main/java/org/objectweb/joram/tools/rest/jms/Helper.java
+2
-9
No files found.
joram/joram/tools/rest/jms/src/main/java/org/objectweb/joram/tools/rest/jms/Helper.java
View file @
12c5362e
...
...
@@ -29,18 +29,13 @@ import java.util.Map;
import
java.util.Properties
;
import
java.util.concurrent.atomic.AtomicLong
;
import
javax.jms.BytesMessage
;
import
javax.jms.ConnectionFactory
;
import
javax.jms.Destination
;
import
javax.jms.JMSContext
;
import
javax.jms.JMSException
;
import
javax.jms.JMSProducer
;
import
javax.jms.MapMessage
;
import
javax.jms.Message
;
import
javax.jms.ObjectMessage
;
import
javax.jms.Queue
;
import
javax.jms.StreamMessage
;
import
javax.jms.TextMessage
;
import
javax.jms.Topic
;
import
javax.naming.InitialContext
;
import
javax.naming.NamingException
;
...
...
@@ -71,7 +66,6 @@ public class Helper {
private
HashMap
<
String
,
RestClientContext
>
restClientCtxs
;
private
HashMap
<
String
,
SessionContext
>
sessionCtxs
;
private
String
cfName
;
private
BundleContext
bundleContext
;
private
long
globalIdleTimeout
=
0
;
private
Properties
jndiProps
;
...
...
@@ -87,7 +81,6 @@ public class Helper {
}
public
void
setGlobalProperties
(
BundleContext
bundleContext
)
throws
NamingException
{
this
.
bundleContext
=
bundleContext
;
// set the connection factory
setConnectionFactoryName
(
bundleContext
.
getProperty
(
BUNDLE_CF_PROP
));
...
...
@@ -439,7 +432,7 @@ public class Helper {
for
(
String
key
:
jsonMap
.
keySet
())
{
Object
value
=
jsonMap
.
get
(
key
);
if
(
value
instanceof
ArrayList
)
{
ArrayList
<
String
>
array
=(
ArrayList
<
String
>)
value
;
ArrayList
<
String
>
array
=
(
ArrayList
<
String
>)
value
;
try
{
if
(
array
.
size
()
==
2
)
{
String
className
=
array
.
get
(
1
);
...
...
@@ -508,7 +501,7 @@ public class Helper {
static
final
Object
getValue
(
Map
map
,
String
key
)
throws
Exception
{
Object
value
=
map
.
get
(
key
);
if
(
value
instanceof
ArrayList
)
{
ArrayList
<
String
>
array
=(
ArrayList
<
String
>)
value
;
ArrayList
<
String
>
array
=
(
ArrayList
<
String
>)
value
;
try
{
if
(
array
.
size
()
==
2
)
{
String
className
=
array
.
get
(
1
);
...
...
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