I've been away from Java for a long time now and trying to catch back up to where things are. I'm using jboss with postgresql as my database and I want to feed data from a middleware such as OpenDDS into this database. But not sure of the best approach architecturally.

Should I be creating a service layer in my application server or just use EJB's to receive the data and write it into the database? Someone mentioned JBossESB to me as well but not sure if that's what I'm looking for.

My application won't have many users initially, but I do expect a dozen hardware devices to store data several times a minute. Any help with the components of how this architecture should be layed out (just a brief summary, high-level), much appreciated.