July 17th, 2008 by krishna
Please donate to Andrii Nikitin’s (MySQL engineer) son Ivan. Donations are requested to help Andrii Nikitin, a MySQL support engineer in Ukraine, provide for his son Ivan who requires a bone marrow transplant operation. The cost of this operation is expected to be between €150,000 - €250,000 ($235,000 - $400,000). Please help us [...]
Read More
January 4th, 2008 by krishna
Last week, I shopped online for the first time. I want to make a photo calendar. I tried with iPhoto on Mac, but have to order prints from US. So I looked for a provider in India and came across printo.in
Printo is printing services located in Bangalore. They have a pretty decent site to order [...]
Read More
November 28th, 2007 by krishna
I am looking at using Spring and EJB3 in a application. There are few blog entries & presentations debating on either Spring or EJB3 case. I prefer to be in EJB3(session beans) + JPA for persistence configured in Spring container camp.
Some resources are below
http://www.devx.com/Java/Article/32314/0/page/1
A comparative analysis of Spring vs EJB3 by EJB3 in Action author [...]
Read More
November 28th, 2007 by krishna
Reliance Communications has announced Rural Mobile Application Development Contest. I got a mailer from them with lot of images and only images. It is not even hyperlinked and the site name is in a small font at the bottom. It doesn’t look professional coming from a big company like Reliance.
Anyways, after some searching, here is [...]
Read More
October 31st, 2007 by krishna
This is a sample of using Spring 2.5 with JPA provided by Hibernate 3.2.
This is the model class Trip.java
package sample.model;import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.Column;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;import java.util.Date;
@Entity
@Table(name = “trips”)
@NamedQueries({
@NamedQuery(name=”Trip.allTrips”, query=”from Trip”)
})
public class Trip {
@Id
@GeneratedValue
private Long id;
@Column(length = 30)
private String tripName;
@Column(length = 3)
private int duration;
@Column(length = 20)
private Date startDate;
@Column(length = 500)
private String description;
public Long getId() [...]
Read More
September 13th, 2007 by admin
A Job Scheduler using commonj api on weblogic server. The commonj is supported by websphere also.
Refer Anthony Jen’s Blog for detailed tutorial including configuring the scheduler using JMX & Spring annotations.
The following entry should be in web.xml. This will create a Timer called BatchTimer.
<resource-ref>
<res-ref-name>timer/BatchTimer</res-ref-name>
<res-type>commonj.timers.TimerManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
The batch timer with JNDI name is injected into the Spring bean, [...]
Read More