What Phil says is correct, and to build on that -
Taking a look at the OFBiz framework it looks like it is specifically made for accessing back-end data sources (text files, databases, or EJB) through a web front-end (JSP/servlets). It looks like it needs a web container (like Tomcat) to even run. If it wasn't web specific, you could probably just make custom models in Swing to call OFBiz components. Since it needs a web container, though, you'll need to do something like this -
Run the OFBiz framework in a web-container, along with a controller
servlet that simply takes requests and returns data. Don't worry about presentation (i.e. HTML forms, table, etc.), just return the data as an XML file or text data in some format. Have your Swing program request data from the controller servlet by using the java.net.URL class to get a connection to the servlet and send it a request. Parse the response the same as if you are reading a text or XML file to get the data. If your primary data source is a servlet, you're going to have to build your interface kind of like a browser... the data in the models is seen as temporary, and the application uses button presses to 'submit' requests or changes, which tells the application it needs to pull data from the servlet again. You have to worry about your data getting stale, and you can't have the server notify you if data changes, you always have to request all the data you are concerned with.
When you mention JBoss, you probably aren't talking about the same kind of beans. OFBiz probably uses regular JavaBeans (sometimes called POJOs - Plain Old Java Objects) to access the back-end data. JBoss is mainly used to provide EJBs (Enterprise JavaBeans). EJBs are quite different than regular JavaBeans. EJBs are more like the front part of the back-end... they can be thought of like an Object-Oriented wrapper around the actual back-end data. (EJBs also provide a lot more, but I'm just making a short mention of them here.) In this case you would use run JBoss as an EJB container and you would use JNDI to look up the Home interface of the EJB you wanted to get a connection to in your Swing application.