« Oracle Open World Latin America | Main | OTN Developer Day in Pasadena – March 31st »

ADF 11g on JBoss5 part 2 – POJO Databindings

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.

image

The jboss-web.xml file contains:

  1: <?xml version="1.0" encoding="UTF-8"?>
  2:  <!DOCTYPE jboss-web PUBLIC
  3:     "-//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.jar
 10:             <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.

imageThen 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.

image

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mt/mt-tb.cgi/10457

Comments (3)

Jiakuan:

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

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.

Zakir :

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!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on March 6, 2009 5:27 PM.

The previous post in this blog was Oracle Open World Latin America.

The next post in this blog is OTN Developer Day in Pasadena – March 31st.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type and Oracle