war-filedeployment

Advantages/Disadvantages to exploded WAR files

旧城冷巷雨未停 提交于 2019-12-29 02:45:10
问题 An answer to a question I read today suggested deploying an application as an exploded (unzipped) WAR. It got me thinking. Every deployment I've ever done to a JBoss/Tomcat has been with a a WAR/EAR file. At least as far as I can remember. Have I been making a mistake all these years? Are there advantages to deploying an app in its expanded form rather than packaged up? 回答1: I think that was my answer mentioning the exploded WAR in the other question. Exploded WARs are easier to navigate and

war file generated by Grails ignores dataSource URL

主宰稳场 提交于 2019-12-10 23:34:38
问题 Grails version :1.1 Tomcat version: 5.5 The problem: The application doesn't use the URL data sources. It seems like - it is using some other data source- but it doesn't seem to be in memory DB- since I can see the data persisted between sessions. I have even tried giving a non -existant database name -and the application works fine. By that I mean that I am able to persist the data and fetch it fine- in the application I am unable to figure out where the data is getting persisted !!! I

Advantages/Disadvantages to exploded WAR files

纵然是瞬间 提交于 2019-11-28 16:29:41
An answer to a question I read today suggested deploying an application as an exploded (unzipped) WAR . It got me thinking. Every deployment I've ever done to a JBoss/Tomcat has been with a a WAR/ EAR file. At least as far as I can remember. Have I been making a mistake all these years? Are there advantages to deploying an app in its expanded form rather than packaged up? I think that was my answer mentioning the exploded WAR in the other question. Exploded WARs are easier to navigate and you can deploy 'parts' of your application that much quicker (depending on how our Web/App server deals

How does class loading work when the same class exists in different applications on the same server?

一个人想着一个人 提交于 2019-11-28 03:09:10
I have multiple web-apps running on an app server and each web-app WAR file contains a copy of the same jar file. Does this mean that a class in that jar file will be loaded multiple times in the JVM, once for each WAR file it exists in? Following on from that, if I have a static synchronized method in such a class, is it only synchronized among threads within the web-app it exists in but not synchronized against the same method in the same class in a different jar file in a different WAR file? (Hope the question makes sense, will clarify if necessary). If this is the case I presume the best

How does class loading work when the same class exists in different applications on the same server?

删除回忆录丶 提交于 2019-11-26 23:57:46
问题 I have multiple web-apps running on an app server and each web-app WAR file contains a copy of the same jar file. Does this mean that a class in that jar file will be loaded multiple times in the JVM, once for each WAR file it exists in? Following on from that, if I have a static synchronized method in such a class, is it only synchronized among threads within the web-app it exists in but not synchronized against the same method in the same class in a different jar file in a different WAR