Friday, April 29, 2011

Adding adf library jar to the project or Reusing adf library

Here I am going to tell how to add the adf library jar to the project,
In Java, we can make the jar file that contains meta data info and generally class files, but the special features of ADF library jar that contains xml, jspx , class files etc.. i.e., we can make the whole project as jar. Its a good one adf.

We can make the adf project as adf library jar and you can add the jar to another project.

1. create the sample application with a model contains view object. In my case TestSharedApp the application with DepartmentVO as a view object.2. Deploy this project as adflib jar



3. If you want to change the deploy path and the file name, right click on the project - > Project properties then go to Deployment - >


Click edit and you can change the name of the deployment file.


4. Create another project that is going to use this library jar.. then go to Resource palette expand IDE Conncetions ->


5. Then give the name of the connection and directory path of the jar and test the connection



6. You will get the File system in the tree and expand your connection,
The library jar will appear, on expanding the jar file you can see the Data controls and Business Components.

Expand the library jar ->choose App Module -> right click on that -> Add to project.

7. Go to Data control and click Refresh icon, you will get the DepartmentVO, you can use that in the current project.. Similarly you can also add the Business components the same way by right click on App Module in the file system then Add to project


Thanks,
Gops

2 comments: