How to convert ZonedDateTime to XMLGregorianCalendar
ZonedDateTime now = ZonedDateTime.now();
GregorianCalendar gregorianCalendar = GregorianCalendar.from(now); 
XMLGregorianCalendar xmlGregorianCalendar = 
            DatatypeFactory.newInstance().newXMLGregorianCalendar(gregorianCalendar);

Kilde : How to convert java.time.ZonedDateTime to XMLGregorianCalendar

Tags : Java
Created 07/10-2016 by Michael Bornholdt Nielsen
Script to uninstall java-1.7.0-openjdk

#!/bin/bash
#title                 :uninstall-java.sh
#description   :The script to uninstall java-1.7.0-openjdk from CentOs 7 (Gnome Desktop)
#author            :Michael Bornholdt Nielsen
#date               :20151013
#usage           :/bin/bash uninstall-java.sh

rpm -e unoconv-0.6-7.el7

rpm -e libreoffice-calc
libreoffice-core
libreoffice-draw
libreoffice-graphicfilter
libreoffice-impress
libreoffice-langpack-en
libreoffice-opensymbol-fonts
libreoffice-pdfimport
libreoffice-pyuno
libreoffice-ure
libreoffice-writer

rpm -e jline-1.0-8.el7
rhino-1.7R4-5.el7
icedtea-web-1.5.2-0.el7

rpm -e java-1.7.0-openjdk java-1.7.0-openjdk-headless
 

Tags : Java
Created 13/10-2015 by Michael Bornholdt Nielsen
Java Code Coverage

Getting Started with Code Coverage by Jacoco

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.5.201505241946</version>
  <executions>
  <execution>
      <goals>
        <goal>prepare-agent</goal>
      </goals>
    </execution>
    <execution>
      <id>report</id>
      <phase>prepare-package</phase>
      <goals>
        <goal>report</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Tags : Java Jacoco
Created 15/09-2015 by Michael Bornholdt Nielsen
Search with Apache Lucene
Tags : Java Lucene
Created 06/08-2014 by Michael Bornholdt Nielsen
Updated 01/09-2015 by Michael Bornholdt Nielsen
Java and Nashorn
Tags : Java Nashorn
Created 26/03-2015 by Michael Bornholdt Nielsen
Test sending email from Java

GreenMail - Open Source suite of lightweight and sand boxed email servers supporting SMTP, POP3 and IMAP. (Github).

Integration Testing IMAP, SMTP and POP3 with GreenMail

How do I send an email in Java?

How do I receive email in Java?

Tags : Java
Created 25/03-2015 by Michael Bornholdt Nielsen
Java MongoDB: Get/Save Image using GridFS APIs
Tags : Java MongoDB
Created 27/02-2015 by Michael Bornholdt Nielsen
Java 8 Features – The ULTIMATE Guide
Tags : Java
Created 15/10-2014 by Michael Bornholdt Nielsen
How can i config module and application name for JNDI Lookups
Created 30/09-2014 by Michael Bornholdt Nielsen
first page - next page
About
This site is used as a place to dump my ideas, links and other stuff I normaly forget.

Made by Michael Bornholdt Nielsen => Jarry.dk