![]() Add jrebel.jar to the weblogic domain home directory. Build the war file as usual to the deployment directory.ĥ. Only thing I needed to change is the Web directory since we didn't put our web stuff under default WebContent directory.Ĥ. Check the auto generated rebel.xml file for each java project to make sure the monitored target directories are correct. Enable the Eclipse projects with JRebel by "Add JRebel Nature".ģ. Download JRebel plugin for Eclipse, validate with a license.Ģ. Here is a summary of what I did to enable JRebel with WebLogic and Eclipse:ġ. I can see the result of my Java or xhtml code changes on the website in a flash. ![]() I found it is very easy to setup and give me a great improvement in web development. Recently I used JRebel to do hot deployment of a complicated Web application on BEA WebLogic 12. The fix would be always put “compile()” statement in the SP class constructor to allow Spring initialize/compile it before it can be referred/used. Also because weblogic will queue up the requests during server starts up, we always end up with multiple threads calling to the same proc when the class initialization is done. This causes failure for all the future calls to the proc.īecause this proc is a frequent call when the server starts up, we always see trouble in this proc but not in the others. When the same proc being called by multiple threads, the proc compilation is messed up. Looking at Spring source code of StoredProcedure class, we found the “isCompiled()” method is not synchronized/thread safe. Seems like Spring executed the proc before it was compiled. We see the proc execute time exception immediately without the “proc compiled” log line. 14:42:04,148 DEBUG () ExecuteThread: '2' for queue: ' (self-tuning)'] RdbmsOperation with SQL compiledīut at times when we have trouble we don’t see the above. : CallableStatementCallback bad SQL grammar On production server, we see SP error when server starts up as below: Perhaps MNG-4565 will be implemented as a feature in some future version of Maven.Recently, I resolved a weird Spring JDBC problem related to stored procedure compilation on multi-threading environment. This is an approach that can be used in Maven 2/3. Target/weblogic-portlet-war-activation.tmp It does not work in a sub-module (like a war project), because the temporary file is created after all of the profiles have been activated.Įxample: Only include Xerces as a dependency for portlet WAR projects that are to be deployed on WebLogic: this only works when Maven is executed in a directory that contains a parent pom. Using this knowledge of profile execution, I came up with a way of activating profiles when multiple conditions are true, based on the presence of a temporary file whose name has one or more property values. All other profiles that might conditionally activate, such as profiles that activate based on the existence of a file in the current module.Profiles that were specified with the "-P" command line switch, according to their order of appearance in the pom.When Maven executes profiles, it executes them in the following manner: Although the element in pom.xml lets you specify more than one condition, the conditions are evaluated with the OR operator rather than the AND operator. When working with Maven profiles, sometimes you need to activate a profile when multiple conditions are true.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |