Archive for January, 2010

Ejb3 basics: Entities

Entity Beans? Better than 2.1, I promise.
Ejb3 Entity beans are a type of enterprise java bean construct used to model data used by the ejb framework. The basic idea is to manipulate simple java objects, which represent in concrete terms your database data, and then have the framework handle as much of the plumbing as [...]

Posted on January 29, 2010 at 12:47 am by Ant · Permalink · One Comment
In: Java · Tagged with: , ,

XML, Xalan, Endorsed dirs and &..

So recently, we’ve been working on a project that makes use of OpenSAML. As it turns out OpenSAML required newer Xalan libraries (2.7.1 to be precise), the kind that don’t ship with the older incarnation of jboss we are using for the project – version 4.02. Some of you might be more familiar with the [...]

Posted on January 28, 2010 at 12:32 am by Ant · Permalink · 3 Comments
In: Jboss, Technobable · Tagged with: , , , ,

War deployment file structure

What’s a war deployment, do I need my own army?
When it comes to deploying an web based application we have a few options on the table. Well only one really if you stick to J2EE standards, not counting Ear deployments which also deploy web apps via wars. Outside the world of J2EE though, it becomes [...]

Posted on January 25, 2010 at 12:03 am by Ant · Permalink · One Comment
In: Java, Jboss · Tagged with: , , , ,

Java, XML and XStream

What’s an object/xml serializaing/deserializaing library?
If you’ve never worked with an object/xml serializer and are considering writing your own from scratch, you may want to consider using a library like XStream. XStream is very good at moving java into xml and back. It allows a high level of control over how the xml can be organized [...]

Posted on January 22, 2010 at 12:36 am by Ant · Permalink · 8 Comments
In: Java, Technobable, xml · Tagged with: , , , ,

Using Jboss Datasource files

If you’re using jboss and you’re storing database connection info in a properties file, you might be doing something wrong. Specifically, you’re probably not using the data source files jboss ships with to configure all that plumbing.
What’s a Datasource file?
Simply put, its a file that contains all the connection properties an application needs in order [...]

Posted on January 20, 2010 at 9:44 am by Ant · Permalink · Leave a comment
In: Java, Jboss · Tagged with: , , , ,

5 ways to make XML more XPath friendly

As java developers we should always do what we can to optimize outbound xml from our side of the fence. I mean, its our job to build and design awesome, elegant and efficient software whenever possible right? We have our data and we want to serialize it into xml, how can we make our xml [...]

Posted on January 19, 2010 at 9:26 am by Ant · Permalink · Leave a comment
In: Technobable, xml · Tagged with: , , , ,

Virtual hosting with Jboss 5.1

How do I map a web application to a url in jboss?
If you have multiple web apps deployed in a single jboss instance, you’ll probably want to figure out an effective way to tell them apart when you try to access them from a browser. On startup jboss can be configured to bind to a [...]

Posted on January 17, 2010 at 11:13 am by Ant · Permalink · Leave a comment
In: Jboss · Tagged with: , , , ,

Install Fedora

Fedora?
“Fedora is a Linux-based operating system that showcases the latest in free and open source software. Fedora is always free for anyone to use, modify, and distribute. It is built by people across the globe who work together as a community: the Fedora Project. The Fedora Project is open and anyone is welcome to join.” [...]

Posted on January 14, 2010 at 6:10 pm by Ant · Permalink · Leave a comment
In: Technobable · Tagged with: , ,

Ejb3 Basics: Bean Managed Transactions

I’m Lazy, why would I want to do my own transaction management?
While its true that the ejb3 container is usually pretty smart about persisting and handling transactions, its also not as smart as a real human being and probably isn’t able to handle complex database transactions and rollbacks. This is where bean managed transactions [...]

Posted on January 14, 2010 at 4:50 pm by Ant · Permalink · 2 Comments
In: Java, Jboss · Tagged with: , , , , ,

Basic Ant scripts

What’s an Ant script? Do I need bug spray?
Ant is a scripting tool commonly used to build, compile and deploy projects. This is in no way an all encompassing inventory of what Ant can do. It is extensible and its instructions are expressed in an xml format whose nodes comprise a framework of abilities designed [...]

Posted on January 13, 2010 at 8:22 pm by Ant · Permalink · Leave a comment
In: Technobable, xml · Tagged with: , , , , , ,