-
1. Re: How to transfer files via JBOSS
rbrtfreund Feb 11, 2010 7:31 AM (in response to timol)1 of 1 people found this helpfulIn short yes its possible with JBoss.
You don't have to republish an ear or war for that matter to add files to it once deployed. If you want FTP like access it's probably quicker to setup an ftp server. If your just uploading a file and then needing to download that file as well just set attachment in the response header (content-disposition) and force the user to download that image. Jboss really has nothing to do with this in terms of capability. You can write the file anywhere accessible in the system and then based on use case either allow access via web (ie. write to war) or no web acess but a download forced by hitting a page. You could even write outside the war have a page like download?image=imageId and then retrieve image from anywhere on the system. In your response again.. set the content as attachement and force the download. It's really implementation specific, not a jboss deal.
-
2. Re: How to transfer files via JBOSS
peterj Feb 11, 2010 11:59 AM (in response to timol)1 of 1 people found this helpfulIf you are wanting to easily add files to your app, then you could do one of the following:
a) Deploy the app as an exploded directory and then add the new files to that directory (or a subdirectory) later:
http://community.jboss.org/wiki/ExplodedDeployment
b) Set up an external directory and place your files there:
-
3. Re: How to transfer files via JBOSS
timol Feb 15, 2010 7:26 AM (in response to timol)Hi ...
Thanks for responding, i've been having a look at the and the options you have advised. For my use I am basically returning an URL of a downloadable file in an XML response message sent from JBOSS to a device. <URL>Download_me.xml</URL> This file is then to be downloaded by the device on receipt of the URL. Additionally I thefore need to have the capability to upload these files to JBOSS.
I will see if this is possible with the options suggested... any further advice would be appreciated. I will close this question in due course over the following week
Regards
Tim
-
4. Re: How to transfer files via JBOSS
timol Feb 16, 2010 6:21 AM (in response to timol)OK ...thanks for your posts, i have managed to find the solution that I was looking for.
it seems like the feature for Static external files in JBOSS 5.x has been taken out... the link below is the solution I used
http://www.coderanch.com/t/436452/JBoss/JBoss-virtual-directory-jboss
regards
Tim