Skip to main content

Posts

Showing posts from 2012

How to create a Tomcat Instance

Prerequisite: How to set JAVA_HOME / PATH variables in Windows How to set CATALINA_HOME/PATH variables in Windows 1. Create a serverA directory in C:\Apache\Tomcat. This should result to C:\Apache\Tomcat\serverA 2. Create the following empty folders bin, conf, lib, log, temp, webapps, work. There the same folders found in C:\Apache\Tomcat\apache-tomcat-6.0.26 3. In C:\Apache\Tomcat\serverA\bin create startup.bat and put the following          set CATALINA_HOME=C:\Apache\Tomcat\serverA C:\Apache\Tomcat\apache-tomcat-6.0.26\bin\startup.bat     4. In C:\Apache\Tomcat\serverA\bin create shutdown.bat and put the following set CATALINA_HOME=C:\Apache\Tomcat\serverA C:\Apache\Tomcat\apache-tomcat-6.0.26\bin\shutdown.bat 5. In C:\Apache\Tomcat\serverA\bin create setenv.bat and put the following. Note that this is where heap size is set. 6. Copy the content of C:\Apache\Tomcat\apache-...

Integrate Redmine with Eclipse

Install Mylyn Tasks Connector: Web Templates  1. Add Mylyn Incubator plugin into eclipse Name : Mylyn Incubator Location : http://download.eclipse.org/mylyn/incubator/3.8 Adding Redmine Task Repository 1. Open Task Repository View 2. Click Add Task Repository 3. Select Web Template (Advanced) 4. Next 5. Add the following  Server :  http://serverurl /redmine Label : Redmine Instance User ID : Password : Under Additional Settings  - Add loginToken Under Advanced Configuration add the following Task URL : ${serverURL}/issues/ New Task URL :  ${serverURL}/projects/ /issues/new Login Request URL :  ${serverUrl}/login?username=${userId}&password=${password}&authenticity_token=${loginToken}   Login Form URL :  ${serverUrl}/login  Login Token Pattern :  Adding Query to Task List View 1. Open Task List View 2. Right Click - New - Query 3. Select Redmine Instance in the List of Re...

Setting ${user} in Eclipse

Everytime I created a new eclipse workspace, I had to modify my @author template to display my full name instead instead of the name given to my computer by the admin team. I found out that I could set the ${user} variable in the STS.ini which all workspaces can use. Instructions: 1. locate and edit your STS.ini 2. Add -Duser.name="your name" example -Duser.name=<a href="mailto:fvinluan@princesscruises.com">Francis Vinluan</a>

Trigger Quartz Job to run at start-up

To trigger the a specific quartz job to run at start-up in Spring-Quartz environment, you must create two triggers. 1. The trigger that will run on schedule. <bean id="someJobCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="someJob" /> <property name="cronExpression" value="0 0 0,6,12,18 ? * *" /> </bean> 2. Trigger that will only run 10 seconds after start-up with zero repeat. <bean id="someJobStartUpTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"> <property name="jobDetail" ref="someJob" /> <property name="startDelay" value="10000" /> <!-- repeat every 50 seconds --> <property name="repeatInterval" value="50000" /> <property name="repeatCount" value="0"...