Archive for the ‘Jboss’ Category

Ejb3 Basics: Deploying Message Driven Beans

Farewell to lazy auto queue generation in JBoss 5
MDB’s were never so easy to deploy and manage when ejb3 first came out. In Jboss 4, all you have to do was annotate a class with @MessageDriven, sprinkle some meta data here and there, stick it in the oven and wham! Instant “I cant believe I [...]

Posted on February 2, 2010 at 12:37 am by Ant · Permalink · Leave a comment
In: Java, Jboss · 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: , , , ,

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: , , , ,

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: , , , ,

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: , , , , ,

Using Jboss System Properties

So if I have a jboss application set up on different environments, is there an easy way for me to load environment specific properties on a per instance basis?
Yes there is, read on.
So normally, in most applications you might end up with some property values you’ll want to override based on the environment. For example, [...]

Posted on January 11, 2010 at 8:47 pm by Ant · Permalink · 2 Comments
In: Java, Jboss · Tagged with: , ,

External Jboss deploy directories

Why not use the default jboss deploy directory?
To keep things Out of the box, jboss has a bunch of .sar, .war, and .jar deployment artifacts as well as a bunch of xml files in the default deploy directory (whose path is “jboss-install-dir/server/configured-server-instance/deploy”). For the sake of being neat and cautious, I prefer to break [...]

Posted on January 11, 2010 at 5:36 pm by Ant · Permalink · Leave a comment
In: Jboss · Tagged with: , ,

Set up Jboss 5.1 as a service

Run JBoss not as root
First off, you’ll need to add a user named jboss to your system. Do this so you wont have to run jboss as root. Running anything as root is usually dangerous and is usually never recommended. Its very easy to break stuff if you don’t know what you’re doing. To add [...]

Posted on January 2, 2010 at 3:27 pm by Ant · Permalink · Leave a comment
In: Jboss · Tagged with: , ,