i have to zip the property files( property file are not part of war they are maintained externally in folder) .These property file contains database information for all env. I want to zip then and upload in nexus repository.please let me know how we can do it in maven
We are migrating the legacy application in spring hibernate.we have use maven for dependency management.My structure of the application is as below currently
src/main/java -> java file
src/main/rersource-> all properties file
src/main/test-> all test cases
After creating the war and deploying in a tomcat. The application is running fine.
Now problem is
We want all these resources not to be as part of build because we have separate team who will responsible for changing properties like hibernate database passwords and database url etc...
Developer will just checked in the code in bitbucket and jenkins will create war and deploy in tomcat.
Other Team will have liberty change the those properties.
Q1)How can i referred external properties from war file?
I am trying to upload the file from local system to the tomcat server installed on linux. In local tomcat it is able to upload the file and see the complete file path in logs from location i am uploading.
When i am trying to upload the file to tomcat on linux server.It does't give me complete file path in logs.it just show name of file.
In local Tomcat it return :C:\folder1\folder2\filename
I am having xml files in src/main/java under package com.src.A. These .xml files are not getting added while created a war file.But if i try to run the project from tomcat integrate with eclipse its able to run.After creating a war and deploying in on web apps it does't find those .xml in that package?
After creating war file from maven i don't see those xml file in that pakage.
Q1)Please let me know what should be added in war plugin to include those xml file?
Q1) Second Scenario matches my question asked earlier.In legacy save(),Object is created with the commented line using b as reference.How can i replicate same in spring using DI?
Hi Tim Holloway & Ron McLeod,
we can't use tomee. We want to use only tomcat.
I need some code snippets or steps for converting EJB1.x application into Spring.
We have been asked clean up ejb1.x code into spring code.Please help
1)how to convert ejb1.2 starless bean into spring bean?
2) how to convert jndi lookup into spring annotations?