NSCA and Java

I am busy with a Java connector to NSCA. But i don’t want to do it with NagiosAppender. Now i am able to connect to NSCA with Java (making a socket). Also I hava NSCA working with mcrypt and libmcrypt library. Now i am using DES cryptorithm in Nagios. But when i recieve information on my Socket i can not decrypt it in Java. Is mcrypt not compatible in Java? Does anyone figure this out?

I have the feeling i am this close to the solution so i can also give back my solution to the community.

Can anyone help?

Is it possible to append to the nagios.cmd file? Just like any other file? This with the protocol for NSCA?

I hava made my own NSCA Adapter. Works perfect. Consider this topic as closed.