Tuesday, October 8, 2013

Wednesday, October 2, 2013

CloudBees: The Java PaaS Company

CloudBees: The Java PaaS Company: "CloudBees is transforming the way Java applications are built and deployed. Our Platform as a Service (PaaS) is focused on simplifying and accelerating the entire Java application lifecycle, making it easier and faster than ever to build, run and manage Java applications"

'via Blog this'

Monday, April 22, 2013

WebSockets in Jelastic: Better, Faster, Stronger

WebSockets in Jelastic: Better, Faster, Stronger: "WebSockets are part of a long expected evolution in client/server web technology. They allow a long-held single TCP socket connection to be established between the client and server which allows for bi-directional, full-duplex messages to be instantly di"

'via Blog this'

Thursday, March 21, 2013

Java bytecode:

Java bytecode:: "An often overlooked aspect of Java is the bytecode that is generated by the javac compiler. Understanding bytecode and what bytecode is likely to be generated by a Java compiler helps the Java programmer in the same way that knowledge of assembler helps the C or C++ programmer."

'via Blog this'

Thursday, March 7, 2013

java - JSF backing bean structure (best practices) - Stack Overflow

java - JSF backing bean structure (best practices) - Stack Overflow: "You might want to check this out: making distinctions between different kinds of JSF managed beans.

Here is a description of the different bean types, as defined in the above article by Neil Griffin:

Model Managed-Bean: Normally session scope. This type of managed-bean participates in the "Model" concern of the MVC design pattern. When you see the word "model" -- think DATA. A JSF model-bean should be a POJO that follows the JavaBean design pattern with getters/setters encapsulating properties. The most common use case for a model bean is to be a database entity, or to simply represent a set of rows from the result set of a database query."

'via Blog this'

Wednesday, February 13, 2013

Taxonomy of class loader problems with Jakarta Commons Logging

Taxonomy of class loader problems with Jakarta Commons Logging: "Class loading problems encountered when using JCL fall into three main categories:

Type-I: A java.lang.NoClassDefFoundError thrown when a class is inaccessible from a parent class loader even if the said class is available to a child class loader
Type-II: Assignment incompatibility of two classes loaded by distinct class loaders, even in case where the two classes are bit-wise identical.
Type-III: Holding references to a given class loader will prevent the resources loaded by that class loader from being garbage collected.
At least on a superficial level, Type-I problems are relatively easy to understand whereas Type-II problems are a bit harder to grasp at first glance. Consequently, we will start by illustrating problems of Type-I. Given their different nature, Type-III problems will be discussed only briefly towards the end of this document."

'via Blog this'

Understanding Classloaders: log4j in a J2EE Environment - O'Reilly Media

Understanding Classloaders: log4j in a J2EE Environment - O'Reilly Media: "Classloaders, as the name suggests, are responsible for loading classes within the JVM. Before your class can be executed or accessed, it must become available via a classloader. Given a class name, a classloader locates the class and loads it into the JVM. Classloaders are Java classes themselves. This brings the question: if classloaders are Java classes themselves, who or what loads them?

When you execute a Java program (i.e., by typing java at a command prompt), it executes and launches a native Java launcher. By native, I mean native to your current platform and environment. This native Java launcher contains a classloader called the bootstrap classloader. This bootstrap classloader is native to your environment and is not written in Java. The main function of the bootstrap classloader is to load the core Java classes."

'via Blog this'

Tuesday, February 12, 2013

Java Application Architecture

Java Application Architecture: "Welcome to the homepage of Java Application Architecture: Modularity Patterns with Examples Using OSGi. The book is now available on Amazon in print and Kindle versions, iBooks, and other sites. You can also download an example to see what the book is all about."

'via Blog this'

Monday, February 11, 2013

How Classes are Found

How Classes are Found: "How the Java Launcher Finds Classes

The Java launcher, java, initiates the Java virtual machine. The virtual machine searches for and loads classes in this order:

Bootstrap classes - Classes that comprise the Java platform, including the classes in rt.jar and several other important jar files.
Extension classes - Classes that use the Java Extension mechanism. These are bundled as .jar files located in the extensions directory.
User classes - Classes defined by developers and third parties that do not take advantage of the extension mechanism. You identify the location of these classes using the"

'via Blog this'

Monday, February 4, 2013

java - How to configure classloader for ear in websphere 6.1 (specifically wsdl4j) - Stack Overflow

java - How to configure classloader for ear in websphere 6.1 (specifically wsdl4j) - Stack Overflow: "You have three simple steps to accomplish this

Place the jar file in the ear, we typically create a lib directory, but that is not necessary.
Update the manifest for the war to include this jar file.
Set the classloading policy for your ear to PARENT_LAST. This is required to load your local (to the ear) classes before those loaded by the server.
Edit: As an alternative, since you are only using the EAR to wrap the WAR and not actually sharing the jar file.

Put the jar in the lib directory of the WAR.
Set the classloading policy for your ear to PARENT_LAST. This is required to load your local (to the ear) classes before those loaded by the server. I do this via RAD by editing the application.xml file. It is IBM specific configuration, so if you are not using RAD you will have to figure out what files to change manually.
This should leave you with a consistent war between app servers."

'via Blog this'

java ee - Reasons to use WEB-INF/lib over EAR's lib? - Stack Overflow

java ee - Reasons to use WEB-INF/lib over EAR's lib? - Stack Overflow:

'via Blog this'

Wednesday, January 9, 2013

Java Productivity Tool - JRebel | zeroturnaround.com

Java Productivity Tool - JRebel | zeroturnaround.com: "o redeploys. Tons of frameworks. Just code.
This little JVM plugin will change the way you program in Java forever. See how enjoyable coding becomes when you don't have to restart anymore while making changes to class structures, resource files and framework configuration files. Just code, beautiful code!"

'via Blog this'