Use mbean/xmbean, which is a singleton service available for JNDI lookup, as your business interface to model.
JBoss Forums Lead
JBoss Labs Team
Thanks for the reply. I'm a jboss noob, sorry. Can you point me to some docs or explain some of the grittier details. Like what do i jar up .. where do i put it, stuff like that?
That explained Mbeans. But im still unclear, I think at a high level how it all fits together. I need to understand how both web apps and portlets can share a datasource, preferably through a hibernate session.
I've got my datasource set up and Im sure i can make calls on it through both a web app and a portlet but im unclear on the best approach for how to make my connections / how to set up hibernate for it. I'm just getting started and am confused.