Pages

Tuesday, December 21, 2010

Production Issue search enhancement


Issue history: 
added username to all custom search api’s queries. We must ignore username from search results.
Changes done on common file’s method which all custom search api’s being used.
Issue raised: some custom search api’s missed out with out adding username.
Impact: required values also missed from search results of the custom search apis which doesn’t have username.
Severity: High
Priority: Top

Getting OC4J Admin Console to work in OC4J 9 0 4


What you say? There's no management console with OC4J 9.0.4 standalone. Well yes, officially you are 100% correct. There is no supported management console for the 9.0.4 release.

But ....

With a little bit of configuration, you can get the prototype admin console we've been using to test out a few things on the server side, up and running for OC4J 9.0.4 standalone. It's basically the same thing as the OC4J Admin Console that's configured out of the box in the OC4J 10.0.3 Developer Preview we have available now on OTN.

Sorting the the List of Objects using Collections


A List l may be sorted as follows.
Collections.sort(l);
If the List consists of String elements, it will be sorted into alphabetical order. If it consists of Date elements, it will be sorted into chronological order. How does this happen? String and Date both implement the Comparable interface. Comparable implementations provide a natural ordering for a class, which allows objects of that class to be sorted automatically.

How to redirect the IO Streams

In Java IO streams are flows of data you can either read from, or write to. Streams are typically connected to a data source, or data destination, like a file, network connection etc.

A stream has no concept of an index of the read or written data, like an array does. Nor can you typically move forth and back in a stream, like you can in an array, or in a file using RandomAccessFile. A stream is just a continuous flow of data.