I am preparing .ear file of a java file through servicegen script and in that i am using service tag to add my java class which i need to call from my web service ,but in one of those files,i want to read data from xml file but i am not able to add my own xml file in the ear file.I am including java files other that required web sevice file through javaClassComponents tag.Kindly tell me how i can add my xml file in the ear file.
I havent used the servicegen task, just had a look at it on the BEA site. Even though you cant add those xmls to the ear file through the servicegen task, you can still write a ant task which does this for you. That ant task can take the ear file, generated by servicegen task, as an input, unzip it and add the xml file and then zip it back to ear. There are ant tasks which allow you to zip/unzip archives and add contents to the archives.