Dieses Blog durchsuchen

Freitag, 24. Februar 2012

Quick ref of managed Beans config in Spring

Within your service

description="Properties Service", log=true)
public class SampleImpl implements ISampleService

      public void setName(String name) {

Within your startup of your weblogic or whatever app container


Startup jconsole and enter the hostname and the port within the "Remote Process" field.


The full address to the remote process is


Donnerstag, 9. Februar 2012

Buffered File writing Snip

        byte[] content  = "Content is overrated".getBytes();
        String filename = "C:/temp/hirsch." + lieferung.getFormat();
        BufferedOutputStream bos = null;
        try {
            FileOutputStream fos = new FileOutputStream(new File(filename));
            bos = new BufferedOutputStream(fos);
        } catch (Exception e) {
            LOG.error("Write Exception" , e);
        } finally {
            if (bos != null) {
                try {
                } catch (Exception e) {
                    LOG.error("Close or Flush Exception" , e);