Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about JBoss

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i am newbie to jboss4.2. how to change server port number and also how to deploy war file into jboss

i studied from google also,but still i want more information.

please explain me
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

some day back, I asked the same question and they gave me this link !

and regarding your question , you can change this file (same as tomcat server.xml) server\default\deploy\jboss-web.deployer\server.xml for the port

and

put your .war file in this directory , server\default\deploy, It deployed by JBoss, observe the console ! I`m using JBoss 4.2.2
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Sagar,

Thanks, now i deploy and i can run the war.

in tomcat, we put war under webapp then after starting the folder structure of war will come...but i can not find in jbosss...where can i find that?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I`m just a week older than you in using JBoss and thing is that , the JBoss is deployed it without extracting it to a "folder" . It ll work whenever you start the jBoss!

The same question I Have (about extracted folder) .May be we hav to look deeper into JBoss wiki !!
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You both are looking for this?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohhh, Thanks Jaikiran !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sagar Rohankar:
ohhh, Thanks Jaikiran !


i can not understand.

can you explain?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thank Jikiran for pointing me to solution , the link he had given !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sagar Rohankar:
I thank Jikiran for pointing me to solution , the link he had given !



hi,, i read the link..i can not understand the link...

can you explain?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
link says that, either you can paste the war file as it is OR you post the exploded form of war , Exploded means just unzipped the war and paste the folder in deply directory , The advantage of using exploded form is you can change the web apps resources on the fly , like JSPs !!

If there is other than this , then I failed to understand !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Sagar Rohankar
 
Sondre Kval�
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

In JBoss all packaged deployments (war,ear,rar,sar files etc) are extracted to a temporary folder when they are deployed.
Look at the folder JBOSS_HOME/server/default/tmp/deploy
The folders created for the extracted archives are given names such as "tmpXXXXXarchivename.ext" (your yourapp.war file may be extracted to a folder named "tmp23623yourapp.war")

What happens when you redeploy (i.e copies a new version of yourapp.war to the "deploy" folder) is that this also gets extracted to the temp deploy folder but under a different name. This means that you may find more than one folder under tmp/deploy for your application.

The tmp/deploy folder is always emptied during startup, so it is now point in making alterations to any of the files stored there.

With "exploded deployment" JBoss will not create any temporary files but will load the files directly from the "server/servername/deploy" folder.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sondre, crystal clear now ,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic