If you have ever sent or received mail messages via Java, chances are high that you have used JavaMail for this task. Most of the time JavaMail does an excellent job and a lot of use cases are described in the JavaMail FAQ. But there are still some additional quirks you should be aware of when doing advanced mail operations like adding or removing attachments (or “Parts”) from existing mails retreived from some IMAP or POP3 store. This post gives a showcase for how to remove an attachment from a mail at an arbitrary level which has been obtained from an IMAP store. It points to the pitfalls which are waiting and shows some possible solutions. The principles laid out here are important for adding new attachments to a mail as well, but that’s yet another story.

more...

Author:Roland Huß
Tags:J2EE, Java, javamail
Categories:java mail, development
Osgish

This is the first announcement about my new toy osgish [os-gish], a shell for
OSGi containers.

more...

Author:Roland Huß
Tags:jmx, Jmx4Perl, OSGi
Categories:osgish
Jmx4Perl 0.60 released

Jmx4Perl’s next release 0.60 is out in the wild.

more...

Author:Roland Huß
Tags:jmx, Jmx4Perl
Categories:jmx4perl

Folgende Anfrage wurde von einem Kunden an mich gerichtet:

Jetzt kam von den Admin die Anfrage ob es nicht möglich ist alle Meldungen (winwarncrit) erstmal als Warning an Nagios zu melden, um dann bestimmte Meldungen nach und nach als Critical einzustufen, oder komplett zu verwerfen (exclude).
Geht das?

more...

Author:Gerhard Laußer
Tags:check_logfiles, Eventlog, Nagios
Categories:nagios

In my last post (citrus-xpath-validation-power) I solved a validation problem regarding generic XML data structures with some XPath expression power. Now in latest 1.1-SNAPSHOT version of Citrus things become even more straightforward.

more...

Author:Christoph Deppisch
Tags:Citrus, XPath
Categories:citrus, development

I recently struggled with the validation of a very generic XML data structure in some message payload. It turned out to be a good example where XPath validation can overcome the normal XML tree comparison. I’d like to share my thoughts about this issue, because others might run into similar problems too and the solution with XPath really impressed me with its powerful validation possibilities.

more...

Author:Christoph Deppisch
Tags:Citrus, XPath
Categories:citrus, development
Citrus sources on GitHub

The Citrus project sources are now available on GitHub for public checkout. You can clone/fork the Citrus project via Git and build your own version on your local machine. Visit the Citrus project site on GitHub for more details.

more...

Author:Christoph Deppisch
Tags:Citrus
Categories:citrus, development

In larger projects usually a team of testers is working on Citrus integration tests. This means that we need to localize the citrus.properties for testing on different machines, as each tester executes test cases with individual environment settings. In this post I’d like to share an easy way to localize the Citrus settings with Maven.

more...

Author:Christoph Deppisch
Tags:Citrus, Maven
Categories:citrus, development

We put a further Citrtus 1.1-SNAPSHOT version online (see http://www.citrusframework.org).

more...

Author:Christoph Deppisch
Tags:Citrus
Categories:citrus, development

Test cases in Citrus are usually provided with some meta information like the author’s name or the date of creation. This post shows how to extend on this to include your very specific meta data on your own.

more...

Author:Christoph Deppisch
Tags:Citrus, reporting
Categories:citrus, development