Sometimes you have classes,images or any other files that is used in most of your applications(apps.),
copied and pasted in each new application.
Solution for this is to deploy these files to be used between apps as a shared resource.
This is an example of how to deploy folder of images and use it in other apps.:
1- Locate the META-INF folder YOUR_PROJECT_NAME/.adf/META-INF
and put the images folder there.
3- Enter name for the Deployment Profile.
4- Now we need to get a jar file then deploy it to the server, so choose deploy for your Deployment profile.
5- A new jar has been created and ready to be deployed,
Take the path for that jar.
6- Run the integrated server of jdeveloper, At deployments make new and write the path of the jar to deploy it.
Now you can use this jar files in other applications, but you need first to add a reference for your shared jar at web.xml file.
adf/image/YOUR_IMAGE_NAME
Run the application, the image will appear as following:
No comments:
Post a Comment