Monday, September 24, 2012

JBoss AS 7.1

JBoss AS 7.x

JBoss directory structure has been changed completely compared to earlier versions (for example JBoss 5.x).

Deployment of a JAR, WAR, EAR :

There are two modes in JBoss 7.x (1) standalone (2) domain

I have deployed some sample jar, war files to standalone/deployments/ folder and successfully accessed the web pages.

EJB:

JBoss 7.x replaced the JBoss.xml with JBoss-ejb3.xml.

Excerpt from JBoss AS 7.1:

Replace the jboss.xml deployment descriptor file

The jboss-ejb3.xml deployment descriptor replaces the jboss.xml deployment descriptor to override and add to the features provided by the Java Enterprise Edition (EE) defined ejb3-jar.xml deployment descriptor. The new file is incompatible with jboss.xml, and the jboss.xml is now ignored in deployments.

Tuesday, July 24, 2012

CRON expressions


I change the cron expressions for the local development and here is the useful information.

CRON Expressions :

Cron expressions are used to schedule a job to execute at specific intervals of time.

Cron Expressions Allowed Fields and Values
Name Required Allowed Values Allowed Special Characters
Seconds Y 0-59 , - * /
Minutes Y 0-59 , - * /
Hours Y 0-23 , - * /
Day of month Y 1-31 , - * ? / L W C
Month Y 0-11 or JAN-DEC , - * /
Day of week Y 1-7 or SUN-SAT , - * ? / L C #
Year N empty or 1970-2099 , - * /

Examples:

Expression Means
0 0 12 * * ? Fire at 12:00 PM (noon) every day
0 15 10 ? * * Fire at 10:15 AM every day
0 * 14 * * ? Fire every minute starting at 2:00 PM and ending at 2:59 PM, every day
0 0/5 14 * * ? Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, every day
0 0/5 14,18 * * ? Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, AND fire every 5 minutes starting at 6:00 PM and ending at 6:55 PM, every day
0 0-5 14 * * ? Fire every minute starting at 2:00 PM and ending at 2:05 PM, every day

Courtesy : Google, Oracle

XML to PDF :

To get a space   in XML:
use the following Decimal value code: