Hey thanks for your concern, i will try this way and get back to you, but I want to intimate that I tried my code like this:
@Id
@Column (name="id")
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
In this i m not generating the value with the @GenerateValue, and thus it inserts one id in the table and does not allows us to enter the second record id. i m getting the error, of Inserting duplicate key...
Please look into the issue, if you could help us with some code sample in such a case. Thanks...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054707#4054707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054707
Hi,
I have a "simple" problem and I was wondering if there is a easy solution...
I have an EJB3
| @Stateless
| public class SendSettlementEmailBean implements SendSettlementEmail {
| public void sendEmail() {
| System.out.println("Running Now");
| }
| }
Now I want this piece of code to run on the 1st day of every month? How do I go about doing that?
I tried using quartz, but it only works with ejb 2.1, and I had a brief look at the EJB3 Timer but it looks like it can't take a cron expression?
Is there a standard way to do this?
Thanks Sean.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054702#4054702
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054702
The original hsql-ds.xml worked. The problem with the DefaultDS is gone.
I have two web projects MyPortal, containing my-object.xml and portlet-instances.xml and MyPortlet which contains portlet.xml and the MyPortlet.class in /WEB-INF/classes/org/jboss/portlet/hello/MyPortlet.class
Both the portal-pages from my-object.xml and MyPortlet are listed in the management-portlet from the jboss default-portal only the instance is missing. If I create it via management-portlet everything works great but then I wouldn't need the portlet-instances.xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054698#4054698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054698