Close

Hudson – Continuous Integration

People (developers) pricierComputers CheaperWhy not use more computers than people? Hudson in many companies used (not in Google?) community release every week detects changesbuilds record resultssend notifications cron – before hudson (+some customization using perl)can send emails only not anymore hudson – aggregate results, from different platform, different JVMs and so on (great feature) hudson…

VM arguments

Have you ever wondered where that value came from in a Java program? One place to look for is the VM arguments. They are set in the system and not when you are writing your code. A code like this will give you some good understanding of VM arguments. import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; RuntimeMXBean RuntimemxBean…

Access EJB via HTTP in JBoss AS

If you are trying to acccess EJB through HTTP, you need to use org.jboss.naming.HttpNamingContextFactory for your context factory. However, there is only one small twitch in using that. You need to specify credentials accessing that invoker. This is what you need to add: env.put(Context.SECURITY_PRINCIPAL, “admin”);env.put(Context.SECURITY_CREDENTIALS, “admin”); This is complete code: Hashtable env = new Hashtable();env.put(Context.INITIAL_CONTEXT_FACTORY,”org.jboss.naming.HttpNamingContextFactory”);env.put(Context.PROVIDER_URL,…