I have been trying to make the sample code at http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/app_jmx_monitoring.htm work for all morning now. I hope to write a post about getting these statistics and putting them in to a report, but for now I just wanted to point out this missing piece in the instructions.
The official documentation lists the following jars as requested;
- weblogic.jar
- sb-kernel-api.jar
- com.bea.common.configfwk_version.jar
- com.bea.core.management.core_version.jar
- om.bea.core.management.jmx_version.jar
Unfortunately, this list is not complete (at least for my configuration) . First thing you need is the wlfullclient.jar. This jar needs to be built before being used. In order to build it;
- Go to $WLHOME/server/lib
- Issue java -jar wljarbuilder.jar
After the process completes, you should have it in the same folder.
You still need class DelegatedServiceDomainMBean in your classpath. This class resides in sb-kernel-impl.jar.
So the final list is;
- weblogic.jar
- sb-kernel-api.jar
- sb-kernel-impl.jar
- com.bea.common.configfwk_version.jar
- com.bea.core.management.core_version.jar
- om.bea.core.management.jmx_version.jar
- wlfullclient.jar
Filed under: Uncategorized | Leave a Comment
Tags: DelegatedServiceDomainMBean, jar, JMX, oracle, OSB
sudo make me a sandwich :)
Filed under: Uncategorized | Leave a Comment
Tags: cartoon, sudo, xkcd
Recently I ran into a question on StackOverflow regarding what would be compatible (non-breaking) changes to a Web Service contract. I had spent some time in the past on this particular subject while I was researching contract versioning. There is a great book on this subject from Thomas Erl et al; The name is Web Service Contract Design & Versioning for SOA.
Here is what they have to say;
Compatible Changes
- adding a new WSDL operation definition and associated message definitions
- adding a new WSDL port type definition and associated operation definitions
- adding new WSDL binding and service definitions
- adding a new optional XML Schema element or attribute declaration to a message definition
- reducing the constraint granularity of an XML Schema element or attribute of a message definition type
- adding a new XML Schema wildcard to a message definition type
- adding a new optional WS-Policy assertion
- adding a new WS-Policy alternative
Incompatible Changes
- renaming an existing WSDL operation definition
- removing an existing WSDL operation definition
- changing the MEP of an existing WSDL operation definition
- adding a fault message to an existing WSDL operation definition
- adding a new required XML Schema element or attribute declaration to a message definition
- increasing the constraint granularity of an XML Schema element or attribute declaration of a message definition
- renaming an optional or required XML Schema element or attribute in a message definition
- removing an optional or required XML Schema element or attribute or wildcard from a message definition
- adding a new required WS-Policy assertion or expression
- adding a new ignorable WS-Policy expression (most of the time)
HTH.
Disclaimer: As I’ve mentioned, this is work done by the authors of the book and I’m merely sharing it. I’m also not affiliated in anyway; just liked the book
Filed under: Web Services | Leave a Comment
Tags: WSDL, Schema, XML, Web Services
I recently finished reading this interesting book. It is intended to be a practical book like the others from Packt Publishing, but don’t be mistaken when I say practical. This book cuts the hype and rather than the regular architect/business compliant talk that is not really worth much for the regular developer, focuses on different approaches on developing SOA. On the other hand despite the name, this is not a tutorial book either. It rather fills in the gap between what the everyday developer needs to just get the job done and what the fancy architect preaches. It gives you best practices and eye opener approaches to different problems.
The book takes touches on many subjects and leverages different tools to demonstrate these. At times, it also deviates from what the tools offer and sets on to suggest custom solutions. The examples in the book are sufficiently complex to demonstrate subjects unlike many out there with trivial scenarios which do not in any way relate to what waits out there in the wild. I also particularly like the Process centric approach the writer takes.
I would definitely suggest this book to any serious developer working on integration. There are many good ideas to take from this book, although after reading it you’ll probably end up needing to dig deeper into these ideas.
Here is the amazon page..
Filed under: Uncategorized | Leave a Comment
Hello all,
Obviously I haven’t posted anything in a while now. The reason for this is, I have accepted a new job and now working in Switzerland (More info on this later).. Since I have relocated and didn’t have a project for the past 3 months, I didn’t have anything to post. I have recently started my new assignment which is a very cool one so expect to hear a lot more from me in the coming days. So here is a small tip on changing the langauge settings..
In my case, I have a computer with Windows XP which has German language as it’s primary language. When I installed MQ Explorer it picked up German as it’s main language which is a showstopper for me. Fortunately it is very easy to change it back into English:
- Open <InstallDir>/Eclipse SDK30/eclipse/configuration/config.ini
- Add these two lines before eof
org.osgi.framework.language=en
osgi.nl=en_US
Reboot and there it is
Filed under: java, Programming | 2 Comments
Tags: Websphere MQ
There is going to be a 4 day course on Domain Driven Design by the guy who literally wrote the book on it
Here are the details: http://www.domainlanguage.com/services/training/index.html
Filed under: Programming | Leave a Comment
Tags: book, event, Software design, training
Deploying Hibernate Apps on OC4J
I’ve spent a good deal of time today trying to deploy an application I’ve recently completed on Oracle IAS 10g. I still haven’t decided if I like the beast or not. I already knew about the bug regarding the antlr.jar, but in the past I dealt with it by renaming the antlr.jar in the toplink directory under JDeveloper. Since I had to deploy on a server that already hosts a dozen of other applications developed by other people, this was not an option.
Luckily, it wasn’t very hard to figure out my way. After tweaking the deployment options for a while, I noticed on the third step of the deployment wizard, there was an option to modify classloading. I turned of loading of the toplink library for my app, and voila. It started working like a charm.
A quick note for the people who has no idea about this issue: The antlr.jar version required by the hibernate causes problems since a different version of antlr is included with the toplink library.
My Setup: Oracle IAS 10.1.3.3 on Linux
Filed under: java | Leave a Comment
Tags: hibernate, oc4j, oracle
Yesterday I spent a good part of my day trying to use the JNI bridge. I was trying to build a very simple spike (basically a HelloWorld example) and call that code from Java. After the usual process of generating headers and including it in C++ code, I run my java code just to get the following exception;
Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidemojava.Main.nativePrint()V
at jnidemojava.Main.nativePrint(Native Method)
at jnidemojava.Main.main(Main.java:27)
After searching for long hours, inspecting the compiled DLL using Anywhere PE Viewer, etc. I found out that that GCC compiler exports function names in shared libraries with a suffix indicating the number of bytes required to hold the arguments passed to the function which is known as name mangling. Therefore, the JNI bridge cannot locate the necessary method! In order to fix this,
-Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at
should be added to compiler options during compilation of the DLL. This is explained on the MinGW frequently asked questions.
Thanks to the folks on the Java forums. Here is the link I found out about this information. There are other posible reasons causing you trouble so I’m including the link here which discusses other possible solutions.
BTW, my setup is:
Win XP + MinGW 5.1.4 + MSYS 1.0 + Netbeans 6.1 + Sun JDK 6
Filed under: C++ | 7 Comments
Tags: C++, Java, MinGW



