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

Screen goes blank and app force closes itself [closed]
Palindrome parser logic error
Getting error in client-server programming
Parsing Soap Service use of Retrofit I am facing exception like this(i.e)mismatched body model in the class envelope model in the response
How to get a spring bean in a bean-defining method
In java codes, what is the purpose that of declaring a local reference to refer member to do further things? [duplicate]
where to put ActionListener interface?
Disappearing objects in ArrayList
Monte-Carlo-Tree Search not working
Format time in java
JMX Notification on Abstract class
how to mvn clean install only scala/java modules?
Intellij replace getClass() with ClassName.class
Spring Property From Command Line
Netbeans 8: how to deploy on save with tomcat 8.5
Hibernate insert with join and foreign key

Categories

HOME
image
gerrit
minimum-spanning-tree
nullpointerexception
electron
vmware
mean-stack
sqlite-net-extensions
amortized-analysis
ip
podio
handsontable
ibm-odm
flask-wtforms
after-effects
pc
pugjs
flux
jprofiler
grails3
autocad-plugin
one-hot-encoding
arabic
tar
ehcache
language-agnostic
tibco-mdm
format-specifiers
lcd
tdd
bootstrap-material-design
atlassian-crucible
windowbuilder
vision
http-get
usbserial
http-referer
picasso
wixsharp
vxworks
az-application-insights
angularjs-factory
optix
texmaker
password-encryption
import-from-excel
revapi
alphabet
togetherjs
redundancy
grails-tomcat-plugin
gstreamer-0.10
prettytensor
make-install
asp.net5
pyke
unity-networking
content-length
sailfish-os
createprocessasuser
kineticjs
operator-precedence
google-style-guide
angularjs-ng-click
applescript-objc
reactfx
stxxl
floating-point-precision
access-rights
dataservice
ril
gwt-rpc
clipper
nsnetservice
javaspaces
semantic-diff
external-accessory
gcj
sproutcore-2
virtual-functions
procedural-music

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