Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Products
/
LILOM
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
2
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c13d67b9
...
c13d67b927d9b1ba3c5dceaa10364de121481337
authored
2017-09-06 18:18:05 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug in parsing the short version jdbc connection string
1 parent
b747bb02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
JavaMonWeb/jetty/JavaMonWeb.war
JavaMonWeb/src/OraMonRESTgetData.java
JavaMonWeb/src/OraMonRESTgetMetrics.java
LILOM Library/se/lil/om/TestRunner.java
JavaMonWeb/jetty/JavaMonWeb.war
View file @
c13d67b
No preview for this file type
JavaMonWeb/src/OraMonRESTgetData.java
View file @
c13d67b
...
...
@@ -94,11 +94,11 @@ public class OraMonRESTgetData extends HttpServlet {
}
String
conStr
,
usrStr
,
pwdStr
;
if
(
serviceName
)
{
conStr
=
"jdbc:oracle:thin:@"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
];
conStr
=
"jdbc:oracle:thin:@
//
"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
];
usrStr
=
conStrParamArray
[
2
];
pwdStr
=
conStrParamArray
[
3
];
}
else
{
conStr
=
"jdbc:oracle:thin:@"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
]
+
":"
+
conStrParamArray
[
2
];
conStr
=
"jdbc:oracle:thin:@
//
"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
]
+
":"
+
conStrParamArray
[
2
];
usrStr
=
conStrParamArray
[
3
];
pwdStr
=
conStrParamArray
[
4
];
}
...
...
JavaMonWeb/src/OraMonRESTgetMetrics.java
View file @
c13d67b
...
...
@@ -89,9 +89,9 @@ public class OraMonRESTgetMetrics extends HttpServlet {
}
String
conStr
;
if
(
serviceName
)
{
conStr
=
"jdbc:oracle:thin:@"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
];
conStr
=
"jdbc:oracle:thin:@
//
"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
];
}
else
{
conStr
=
"jdbc:oracle:thin:@"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
]
+
":"
+
conStrParamArray
[
2
];
conStr
=
"jdbc:oracle:thin:@
//
"
+
conStrParamArray
[
0
]
+
":"
+
conStrParamArray
[
1
]
+
":"
+
conStrParamArray
[
2
];
}
monitor
=
Registry
.
find
(
conStr
);
if
(
monitor
==
null
)
{
...
...
LILOM Library/se/lil/om/TestRunner.java
View file @
c13d67b
...
...
@@ -17,7 +17,9 @@ public class TestRunner {
//ArrayList<OraMon> oraList = new ArrayList<OraMon>();
ArrayList
<
OraMon
>
oraList
=
Registry
.
getList
();
OraMon
mon1
=
new
OraMon
(
"jdbc:oracle:thin:@uvp3dbkappkg:1550:VP1K03"
,
"dbsnmp"
,
"dbsnmp"
);
// SID eller Service Name format
//OraMon mon1 = new OraMon("jdbc:oracle:thin:@uvp3dbkappkg:1550:VP1K03","dbsnmp","dbsnmp"); // SID eller Service Name format
//OraMon mon1 = new OraMon("jdbc:oracle:thin:@//u00154.kap.rsv.se:1526/DB1K01","dbsnmp","dbsnmp");
OraMon
mon1
=
new
OraMon
(
"jdbc:oracle:thin:@//u03634.kap.rsv.se:1526/DA1K001"
,
"dbsnmp"
,
"dbsnmp"
);
//OraMon mon2 = new OraMon("jdbc:oracle:thin:@host:port:sid","user","pass"); // SID format
mon1
.
open
();
//mon2.open();
...
...
Please
register
or
sign in
to post a comment