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

applying to number and order by for a column of varchar type in hibernate using criteria?
more than one return type from method
How to set .TIF image to ImageIcon in java?
why picture doesn't show up in swing in java?
Detecting field mutation using ASM
reading file , checkBox value on the server side in GWT
Java Threads: Wait Notify mechanism with ArrayList
Java equivalent of C# Array.Copy
Defining a map in Groovy using a variable
How to display data table in JSF page with database data
GetUninitializedObject in Java?
How to understand whether it is going to exceed the Java Heap Size or not?
What's the benefits of using action bar instead of standard layout?
Struts2 Validation for arraylist
Tomcat doesn't stop. How can I debug this?
Can't store UTF-8 Content in MySQL Using Java PreparedStatement

Categories

HOME
asp.net-core
coq
openmp
azure-data-factory
deezer
cvs
spring-jdbc
paw-app
django-imagekit
multiple-records
volttron
zend-framework3
static-libraries
django-simple-history
openrefine
finite-automata
visual-composer
cx-freeze
orleans
kvc
bootstrap-material-design
greendao
fluentvalidation
primitive
srcset
r-raster
galsim
karaf
perlin-noise
commit
textmate
environment-modules
nssegmentedcontrol
unobtrusive-validation
streamreader
azure-ml
squib
sas-visual-analytics
vao
galleria
logfiles
promela
pnotify
git-diff
brightcove
feeds
np-complete
sqlbulkcopy
linode
flutterwave
watchconnectivity
elements
database-optimization
file-writing
multi-level
django-debug-toolbar
ubuntu-10.04
qcustomplot
wapiti
iad
wso2cloud
security-testing
browser-bugs
android-listview
deis
sankey-diagram
skos
ng-animate
xc16
neolane
php-5.4
ceil
jquery-layout
cloud-connect
typo3-neos
terminal-services
jplaton
padarn
rabl
plasma
trusted
quickdialog
coderush
removeclass
transactionscope
doh
netbeans-7.1
locate
xfbml
w3wp.exe
yslow
createwindow
database-management
user-friendly
meego
sef
libs
project-hosting
aquaticprime
post-build
ugc

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