I'm going to show you in this article how to get a the ADF databindings in this case from a POJO to deploy in JBoss5GA.This is article is the second part of a previous post. As you will notice after reading this post, approach that I follow this time differs from the one in the first part regarding the location of the libraries and the addition of the JBoss classloader into my project.
The first step is to create our sample project that uses the POJO datacontrol to expose data from out java class to our WebUI. The structure of my project is shown in the image, the first new element that appears is the jboss-web.xml which we are going to use to define our own class loading configuration for our project.
The jboss-web.xml file contains:
1: <?xml version="1.0" encoding="UTF-8"?>2: <!DOCTYPE jboss-web PUBLIC3: "-//JBoss//DTD Web Application 5.0//EN"4: "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">5:6: <jboss-web>7: <class-loading>8: <loader-repository>9: com.oracle.adfpojo:loader=adfm.jar10: <loader-repository-config>java2ParentDelegation=true</loader-repository-config>11: </loader-repository>12: </class-loading>13: </jboss-web>
The loader repository setting points to any of the jars that are included into our WAR file. The last step is to include all of the necessary libraries into our project and deployment profile.In the project properties make sure the following libraries as well as individual jar files are selected.
Then on your WAR deployment profile under libraries you should have the following list of jars selected:
adf-controller-api.jar adf-controller.jar adf-controller-rt-common.jar adf-dt-at-rt.jar adfdt_common.jar adf-faces-databinding-rt.jar adflogginghandler.jar adfm.jar adfmweb.jar adf-pageflow-dtrt.jar adf-pageflow-fwk.jar adf-pageflow-impl.jar adf-pageflow-rc.jar adf-richclient-api-11.jar adf-richclient-impl-11.jar adf-share-base.jar adf-share-ca.jar adf-share-support.jar adf-transactions-dt.jar cache.jar commons-cli-1.0.jar commons-el.jar db-ca.jar dms.jar dvt-databindings.jar dvt-facesbindings.jar dvt-faces.jar dvt-jclient.jar dvt-utils.jar groovy-all-1.5.4.jar identitystore.jar inspect4.jar javatools-nodeps.jar javax.xml.bind_2.1.3.jar jaxb-impl_2.1.3.jar jdev-cm.jar jewt4.jar jmxframework.jar jmxspi.jar jps-api.jar jps-common.jar jsf-api.jar jsf-ri.jar jsp-el-api.jar jstl.jar mdsrt.jar oc4j-unsupported-api.jar ojdbc5.jar ojmisc.jar oracle-el.jar oracle.ucp_11.1.0.7.0.jar share.jar trinidad-api.jar trinidad-impl.jar weblogic-injection-provider.jar xmlef.jar xml.jar xmlparserv2.jar
After that you can deploy your War file to JBoss.

Comments (3)
Hi Juan,
This is a very useful article, thanks for sharing.
You mentioned that this is a POJO databindings project, is that different from the way that we drag-and-drop the DataControl from the jdeveloper?
Thanks very much.
Jiakuan
Posted by Jiakuan | March 30, 2009 9:14 PM
Posted on March 30, 2009 21:14
Hi Jiakuan,
What I'm referring in the article is that I'm using the Java DataControl for the sample, I'm not using (not tested) with the WebService, Business Component, PlaceHolder or URL DataControl.
But this doesn't affect any of the d-n-d functionalities provided in JDeveloper.
Juan C.
Posted by Juan Camilo | April 2, 2009 10:11 AM
Posted on April 2, 2009 10:11
Hi Juan C.
I am finding deployement oracle ADF11g application with ADFm Businesscomponents.
Do you have latest release for this types of deployemens ? Please HELP Me!
Posted by Zakir | May 1, 2009 9:14 AM
Posted on May 1, 2009 09:14