GIT: How to have 2 local branch pushing to 2 different remote repositories so that you can merge code

This tutorial will explain how to create 2 local branches with the same code base, each linked to different repository. The purpose is that you can share code between repositories. For example in a multi-module project, it's possible that 1 project will have different implementation depending on the...

How to send and receive STOMP message in JBoss 7.2

The following code is an example of how we can send and receive a stomp message with JBoss 7.2.package org.meveo.util;import java.io.InputStream;import java.io.OutputStream;import java.net.Socket;import java.util.Properties;import javax.naming.InitialContext;/** * @author Edward P. Legaspi * @since...

Selg Statoil

Professor Øystein Noreng argumenterer i DN onsdag at regjeringen ikke bør selge seg ned i Statoil fordi de vil miste kontroll med selskapet og at hovedkontoret kan bli flyttet.Med 33 % minoritetsaksjonærer er det ingen politisk kontroll. Selskapet styres ved stemmegivning på generalforsamling. Statoil...

How to create an xsd and xml data from model entity in java

The following code will show how to generate a xsd base on a given model and a sample xml with data.Let's assume you have a CustomerList model, which is an array of Customer.JAXBContext context;try { context = JAXBContext.newInstance(CustomerList.class); context.generateSchema(new SchemaOutputResolver()...

How to create size-rotating-file handler in JBoss 7.2 using CLI

There are times when we require a size-rotating-file handler over the default periodic-rotating-file handler. Simply changing the properties in standalone.xml won't do because it will cause synch problem with logging.properties. So to do so we need to execute a series of JBoss cli commands.First you...