I have a binary file(Not java class file) want to be combined with a ejb jar(or ejb ear). This file will be used when my ejb is running and the file must be a seperate file(that means when running, this file can must be a standard disk file). Every time, when I generate a ejb(jar/ear) at the client side, we need to regenerate the binary file and want to deploy the binary file together with the ejb jar/ear to the server.
My question is how can I combine the binary file with ejb jar/ear? Just insert it into the jar/ear? And how can I extract the binary for the jar/ear after the deployment? Are there any ways that I can regard this file as a resource or made weblic can deploy the binary file automatically to server together with the ejb?