smn_onrocks
smn_onrocks

Reputation: 1342

Showing an image as url using jboss 7.1

Friends I want to show an image like

http://xxx.xxx.xx.xx:8085/images/c4.jpg

But don't understand how to do it from my server cane any one helpme i am using jboss-as-7.1.1.Final all the helps are available foe Jboss 6. Actually my requirement is in server i want to keep a directory where all the image will be store and I can access any image will url I am using Linux environment .

Upvotes: 0

Views: 332

Answers (1)

Federico Sierra
Federico Sierra

Reputation: 5208

You can create a images directory under jboss-as-7.1.1.Final/welcome-content, as long as you haven't disabled that in your configuration. Your config file (e.g. standalone.xml) should have:

<virtual-server name="default-host" enable-welcome-root="true">

Alternatively you can deploy static content. See a example in http://java.dzone.com/articles/deploying-static-content-jboss

Upvotes: 1

Related Questions