java


How to Remove JMXWatchNotification function


I am Working on project there are a jar which are weblogic dependent jar . I want to remove this jar dependency so i need to remove jar dependent function.
<dependency>
<groupId>com.oracle</groupId>
<artifactId>wlfullclient</artifactId>
<scope>provided</scope>
</dependency>
This jar have depended code to be written
if ( notification instanceof JMXWatchNotification )
{
WatchNotification wNotif = ((JMXWatchNotification)notification).getExtendedInfo();
StringBuilder subject = new StringBuilder();
String environmentValue = this.metricsConfig.getEnvironment();
subject.append("JMX alert from "+ environmentValue+" : " + wNotif.getWatchServerName());
subject.append(" at " + wNotif.getWatchTime());
StringBuilder message = new StringBuilder();
message.append("WatchName:" + wNotif.getWatchName());
message.append("\nWatchRule:" + wNotif.getWatchRule());
message.append("\nWatchData:" + wNotif.getWatchDataToString());
try
{
sendMail( subject.toString(), message.toString(), metricsConfig.getNotificationEmailServerName(),
metricsConfig.getNotificationServerUsername(), metricsConfig.getNotificationEmailFrom(),
metricsConfig.getNotificationEmailTo() );
}
catch( Exception ex )
{
logger.log(Level.SEVERE,ex.getMessage(),ex);
}
}
So i need to remove JMXWatchNotification corresponding class function

Related Links

Is it possible to change the log4j level in my packages but not change the levels in api's im using e.g spring
Java dates problem
Loading Resources from the ClassPath in Java ME
How do I speed up the scroll speed in a JScrollPane when using the mouse wheel?
About Policy Enforcement with AspectJ
Selenium testing and emma code coverage
Nimbus TableHeader was not highlighted as 'pressed'
how to write a web service with soap
.properties file in java
Is it OK to use static “database helper” class?
If using maven, usually you put log4j.properties under java or resources?
What's the average line number per method/class?
what is the default page for spring-mvc application
Java application security permissions
force close at cursor line!
My class java has suddenly become un-serializable

Categories

HOME
compiler-construction
magnific-popup
getelementsbytagname
spring-cloud-stream
yarn
c#-2.0
icloud
ebean
enterprise-library-5
amazon-cloudformation
primary-key
communication
numeral.js
spring-tool-suite
windows-phone-7
percona
windows-7-x64
database-replication
ab-testing
jqwidget
alpine
emulator
object-detection
sylius
lcd
firebase-crash-reporting
pingfederate
file-rename
tinymce-4
frame
uisplitview
oracle-fusion-middleware
ioio
azure-sql-database
wixsharp
git-merge
scaffold
automake
x11-forwarding
webix-treetable
g-code
google-closure
node-sass
scrollable
pubmed
pebble-watch
powercli
mu
setter
pg-dump
windows-iot-core-10
mako
chord-diagram
firmata
instant
impresspages
plottable.js
ipconfig
ptrace
ford-fulkerson
xna-4.0
microbenchmark
interrupted-exception
ami
umbraco6
clicktag
asp.net-web-api-odata
internet-connection
openexr
fluentautomation
oracle-warehouse-builder
gnu-smalltalk
floating-point-precision
geos
ccss
spring-io
tws
padarn
enterprisedb
flashvars
coderush
funscript
broken-links
manchester-syntax
ticoredatasync
bubble-chart
hgsubversion
django-tagging
gdlib
remember-me
dmx512
rescale
webkit.net
genealogy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App