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
7a750557
Commit
7a750557
authored
Jun 24, 2020
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging enhancements.
parent
b3ed858d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
joram/joram/tools/rest/jms/src/main/java/org/objectweb/joram/tools/rest/jms/Activator.java
...in/java/org/objectweb/joram/tools/rest/jms/Activator.java
+5
-4
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
+4
-3
No files found.
joram/joram/tools/rest/jms/src/main/java/org/objectweb/joram/tools/rest/jms/Activator.java
View file @
7a750557
/*
* JORAM: Java(TM) Open Reliable Asynchronous Messaging
* Copyright (C) 2016 - 20
17
ScalAgent Distributed Technologies
* Copyright (C) 2016 - 20
20
ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -85,11 +85,12 @@ public class Activator implements BundleActivator {
if
(
value
!=
null
&&
!
value
.
isEmpty
())
{
try
{
period
=
Integer
.
parseInt
(
value
);
logger
.
log
(
BasicLevel
.
INFO
,
"Set configuration property "
+
Helper
.
BUNDLE_CLEANER_PERIOD_PROP
+
" to "
+
value
);
}
catch
(
NumberFormatException
exc
)
{
if
(
logger
.
isLoggable
(
BasicLevel
.
WARN
))
logger
.
log
(
BasicLevel
.
WARN
,
"Bad configuration property "
+
Helper
.
BUNDLE_CLEANER_PERIOD_PROP
+
", should be a number: "
+
value
,
exc
);
}
"Bad configuration property "
+
Helper
.
BUNDLE_CLEANER_PERIOD_PROP
+
", should be a number: "
+
value
);
}
}
if
(
period
>
0
)
{
cleanerTask
=
new
CleanerTask
();
...
...
joram/joram/tools/rest/jms/src/main/java/org/objectweb/joram/tools/rest/jms/Helper.java
View file @
7a750557
...
...
@@ -146,10 +146,11 @@ public class Helper {
if
(
value
!=
null
&&
!
value
.
isEmpty
())
{
try
{
globalIdleTimeout
=
Long
.
parseLong
(
value
);
logger
.
log
(
BasicLevel
.
INFO
,
"Set configuration property "
+
BUNDLE_IDLE_TIMEOUT_PROP
+
" to "
+
value
);
}
catch
(
NumberFormatException
exc
)
{
if
(
logger
.
isLoggable
(
BasicLevel
.
WARN
))
logger
.
log
(
BasicLevel
.
WARN
,
"Bad configuration property "
+
BUNDLE_IDLE_TIMEOUT_PROP
+
", should be a number: "
+
value
,
exc
);
"Bad configuration property "
+
BUNDLE_IDLE_TIMEOUT_PROP
+
", should be a number: "
+
value
);
}
}
}
...
...
@@ -346,7 +347,7 @@ public class Helper {
else
jmsContext
=
restClientCtx
.
getConnectionFactory
().
createContext
();
jmsContext
.
setClientID
(
restClientCtx
.
getClientId
());
jmsContext
.
setAutoStart
(
false
);
//the defaul is true.
jmsContext
.
setAutoStart
(
false
);
//the defaul
t
is true.
restClientCtx
.
setJmsContext
(
jmsContext
);
if
(
logger
.
isLoggable
(
BasicLevel
.
DEBUG
))
logger
.
log
(
BasicLevel
.
DEBUG
,
"Helper.createProducer jmsContext = "
+
restClientCtx
.
getJmsContext
());
...
...
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