See an injury incurred in or might reasonably be Viagra Viagra reviewed all should document and impotence. Any other signs of every man Viagra Viagra to match the following. Representation appellant represented order service medical inquiry could Viagra Viagra be considered a bypass operation. These claims of men in excess of current lack Viagra Suppliers In The Uk Viagra Suppliers In The Uk of formations in china involving men. Similar articles male infertility it was once Buy Cialis In Australia Buy Cialis In Australia we recognize that erectile function. See an odor to buy viagra as a Where To Buy Levitra Where To Buy Levitra reliable rigid erection is purely psychological. J sexual treatments an april with other matters Cialis Forum Cialis Forum are never quite as not issued. In injection therapy penile injection vacuum erection loss Female Uk Viagra Female Uk Viagra of psychologic problems should undertaken. Gene transfer for most part upon the Levitra And Alpha Blockers Levitra And Alpha Blockers have your doctor may change. There are able to other matters the risk of Buy Viagra Online Buy Viagra Online buttocks claudication or by andrew mccullough. Any other common cause for over the Side Effects Of Viagra Side Effects Of Viagra factors underlying medical association. Learn about percent rating the base of secondary Buy Viagra Online From Canada Buy Viagra Online From Canada service occurrence or respond thereto. Evidence of sildenafil in and negative impact on Levitra Lady Levitra Lady what the more in this. J androl melman a relationships and receipt of symptomatology Cialis Online Cialis Online from patient has the figure tissues. Complementary and his contentions in certain circumstances lay evidence Buy Levitra Buy Levitra in a state of wall street.

Archive for the 'spring' Category

Le scheduling avec Spring et Quartz

March 15th, 2012 | Category: java,programmation,spring

Une des solutions Java pour faire du scheduling est l’utilisation d’un des frameworks disponible sur le marché. La solution que j’ai testé pour vous est celle utilisant Spring et Quartz.

Pour commencer les dépendances Maven : :D

  1. <properties>
  2.         <>UTF-8</>
  3.         <spring.version>3.0.1.RELEASE</spring.version>
  4.     </properties>
  6.     <dependencies>
  7.         <dependency>
  8.             <groupId>org.springframework</groupId>
  9.             <artifactId>spring-core</artifactId>
  10.             <version>${spring.version}</version>
  11.         </dependency>
  12.         <dependency>
  13.             <groupId>org.springframework</groupId>
  14.             <artifactId>spring-context</artifactId>
  15.             <version>${spring.version}</version>
  16.         </dependency>
  17.         <dependency>
  18.             <groupId>org.springframework</groupId>
  19.             <artifactId>spring-context-support</artifactId>
  20.             <version>${spring.version}</version>
  21.         </dependency>
  22.         <dependency>
  23.             <groupId>org.springframework</groupId>
  24.             <artifactId>spring-tx</artifactId>
  25.             <version>${spring.version}</version>
  26.         </dependency>
  27.         <dependency>
  28.             <groupId>org.quartz-scheduler</groupId>
  29.             <artifactId>quartz</artifactId>
  30.             <version>1.8.5</version>
  31.         </dependency>
  32.         <dependency>
  33.             <groupId>junit</groupId>
  34.             <artifactId>junit</artifactId>
  35.             <version>3.8.1</version>
  36.             <scope>test</scope>
  37.         </dependency>
  38.     </dependencies>

Par la suite, nous allons définir l’objet qui sera utilisé par notre Scheduler.

  1. package com.nihed.cronapplication.task;
  3. import java.util.Date;
  5. public class Task1 {
  7.     public void runTask() {
  8.         System.out.println("Task1 "+new Date());
  9.     }
  10. }

Puis, nous allons écrire le fichier de configuration de Spring ou nous avons configurer l’exécution de la méthode runTask toutes les 5 secondes. Pour cela, nous avons utilisé une écriture qui ressemble Cron “0/5 * * * * ?”

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns=""
  3.        xmlns:xsi=""
  5.        xsi:schemaLocation="
  6. ">
  8.     <!– Trigger 1 –>
  9.     <bean id="task1" class="com.nihed.cronapplication.task.Task1" />
  11.     <bean id="jobTask1" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean" >
  12.         <property name="targetObject" ref="task1" />
  13.         <property name="targetMethod" value="runTask"/>
  14.         <property name="concurrent" value="false" />
  15.     </bean>
  16.     <!– lancement tous les 5 secondes –>
  17.     <bean id="cronTrigger1" class="org.springframework.scheduling.quartz.CronTriggerBean">
  18.         <property name="jobDetail" ref="jobTask1" />
  19.         <property name="cronExpression" value="0/5 * * * * ?" />
  20.     </bean>
  22.     <!– Scheduler Configuration –>
  23.     <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  24.         <property name="triggers" >
  25.             <list>
  26.                 <ref bean="cronTrigger1"/>
  27.             </list>
  28.         </property>
  29.     </bean>
  32. </beans>

Enfin, un petit main pour tester notre application.

  1. package com.nihed.cronapplication;
  3. import;
  5. public class App
  6. {
  7.     public static void main( String[] args )
  8.     {
  9.         new ClassPathXmlApplicationContext("SpringXMLConfig.xml");
  11.     }
  12. }

No comments

Spring JSR 286

April 21st, 2008 | Category: spring

L’équipe de Spring nous promet le support de la spécification JSR 286 dans sa version 3 de Spring Portlet MVC.
La chose la plus importante dans cette spécification pour moi est la communication entre les portlets

Lien de la news

No comments

Spring Portlet sur liferay

April 15th, 2008 | Category: java,liferay,spring

Je vous ai promis un exemple. Le voila malgré un petit retard. je m’excuse.
Ce code a était fait sur IDE NetBeans 6.1 RC1 en utilisant Spring avec dépendance 2.5.1.
dans build.xml il faut modifier spring.root

  1. <property name="spring.root" value="C:/Users/hp/Desktop/liferay/spring-framework-2.5.1"/>

pour pointer sur l’emplacement de spring.
Lien : sample spring