Category Archives: Java

Scripting Languages and COBOL

The use of scripting languages with other languages has increased over the last couple of years, from a simple case of interoperability, reuse of scripting code to allowing your code to customised via the user of external scripts. All of … Continue reading

Posted in COBOL, Java, JVM, Scripting, Tips | Tagged , , , , , , , , , | 2 Comments

Using sun.jvmstat.monitor to see active Java processes

Monitor’ing Java processes can be achieved using the jvmstat monitor classes provided in the JVM. The documentation is a bit sketchy but with a little experimenting it can be done. Below is a little example that shows you how to … Continue reading

Posted in Java, JVM | Tagged , , | Comments Off on Using sun.jvmstat.monitor to see active Java processes

Java process id via java.lang.management

While working on a project recently I need to find out the current process of the active running Java process (for tracing/auditing), however I never found a 100% perfect solution but did come across an acceptable solution to use the … Continue reading

Posted in Java, JVM, Tips | Tagged , , | Comments Off on Java process id via java.lang.management

Fiddling with the JVM

Java is a very safe language if used in a normal way, however just like the CLR it can be used in an unsafe manor. The main reason for using Java in a unsafe manor is performance, some unsafe operations … Continue reading

Posted in Java, JVM, Tips | Tagged , , , | Comments Off on Fiddling with the JVM

Object COBOL/Java default exception handler

While working on some support recently for our compiler (Micro Focus COBOL compiler that is), I became annoyed with the lack of a reasonable error messages/stack trace output from our Java/COBOL Object support. I have no idea why our default … Continue reading

Posted in COBOL, Java, Tips | Tagged , , | Comments Off on Object COBOL/Java default exception handler