[jboss-user] [EJB 3.0] - EJB Timer service

2007-04-15 Thread mrchit_2000
Hello, I want to set a timer and a method to be invoked when timer expires periodically. When I have a session bean's method annotated with @Timeout, that method keeps being invoked repeatedly when Jboss starts up, even before the code create a Timer using TimerService. Is there a default

[jboss-user] [EJB 3.0] - Re: How do I send an email inside an EJB3 Session Bean

2007-04-14 Thread mrchit_2000
Hi, I managed to send an email. I download the JavaMail jar and include into my project then the complain of the javax.mail.Session is gone. Thanks, LNgo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037332#4037332 Reply to the post :

[jboss-user] [EJB/JBoss] - Schedule a task excuted periodically

2007-04-14 Thread mrchit_2000
Hello, I would like to schedule a task in my application to send out emails to all users at midnight. How can I do that? I see JBoss has Scheduler but I am not sure it's right and supported in my version Jboss 4.0.5. I tried to follow the example in the JBOSS AS Documentation in section

[jboss-user] [Beginners Corner] - JavaMail wthin EJB3 Jboss

2007-04-13 Thread mrchit_2000
Hello, I am trying to send an email from inside my EJB3 Session bean. I think I can just use JavaMail API that is claimed to be supported by JBoss application server, but I can't find any documentation or example how to configure and codes to send an email programmatically. Do I need to use

[jboss-user] [EJB 3.0] - How do I send an email inside an EJB3 Session Bean

2007-04-13 Thread mrchit_2000
Hello, Could someone give me an example or steps how to send an email from EJB3 session bean? Thanks a lot, Lngo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4036968#4036968 Reply to the post :

[jboss-user] [EJB 3.0] - Re: How do I send an email inside an EJB3 Session Bean

2007-04-13 Thread mrchit_2000
Hi, How do I inject the resource? Any library I need to download? I tried to do this but it did not work. @Resource | private javax.mail.Session session; It complains javax.mail.Session is not found. Thanks a lot, LNgo View the original post :

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Using Sun RI of JSF with JBOSS 4.0.5

2007-04-11 Thread mrchit_2000
Hi all, I want to try using Sun RI JSF with JBoss 4.0.5. According to the documentation, all I need to do is to delete the jsf-libs directory and put the Sun's jsf jars in the my web application WEB_INF/lib . I did those steps but still get this error: 00:34:07,436 ERROR [[/autosas-ui]] Error

[jboss-user] [EJB 3.0] - how to rollback a DB manipulation SQL in a method

2007-03-24 Thread mrchit_2000
Hi all, I have this question regarding rolling back and I thought it is handled by Transaction Manager of the EJB 3.0 but it doesnot seem so. The problem is I have method in a Stateless session bean that trying to remove some rows in 1 table first and and then insert some rows in the other

[jboss-user] [EJB 3.0] - Re: Composite Key is made up by foreign keys

2007-02-24 Thread mrchit_2000
Hi I found out this problem seems to be filed as a bug before. But I am not sure if it is fixed or in which version it is fixed. Here is the link and the problem stated in this link is exactly what I am encountering. Can someone have information about this problem give me advises? Here is the

[jboss-user] [EJB 3.0] - Composite Key is made up by foreign keys

2007-02-23 Thread mrchit_2000
Hi all, I have problem finding out how to specify the member of the composite key are foreign keys pointing to primary key of other tables. For example, If my composite key have 2 columns (A,B). I created wrapper like public final class CompKey implements Serializable { private int A;

[jboss-user] [EJB 3.0] - Persistence and Entity Bean questions

2007-02-07 Thread mrchit_2000
Hi all, I am new to EJB 3.0. I am exploring the entity bean and persistence and database access in EJB 3.0, but I find there is little documentation showing me how to create and set up. In the Trail Blazer tutorial, I only learn how to create a class but I have to manually create a plain

[jboss-user] [EJB 3.0] - Re: Newbie question: How to deploy EJB3.0 project in JBOSS I

2007-01-28 Thread mrchit_2000
I got it. It's the packaging configuration was wrong. It didn't have .class included. -Lngo View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4007672#4007672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4007672

[jboss-user] [Beginners Corner] - Re: ADF help

2006-12-12 Thread mrchit_2000
When I moved the jar files to WEB-INF\lib\. I get the error message of Class Not Found. 00:40:00,706 INFO [StartupServletContextListener] ServletContext 'C:\EJB3.0\Jboss4.0.5\server\default\.\tmp\deploy\tmp4335autosas-web-exp.war\' initialized. 00:40:00,706 INFO

[jboss-user] [Beginners Corner] - ADF help

2006-12-09 Thread mrchit_2000
Hi all, I posted this message on another forum but no answer yet. I don't know whether I posted on the wrong forum or no body has encountered same problem as mine so I tried it in this forum. I am new to JBoss and all web application framework thing. I 'd like to use ADF Faces and so I tried to

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - ADF Faces installation

2006-12-06 Thread mrchit_2000
Hi all, I am fairly new to JBoss and all web application framework thing. I 'd like to use ADF Faces and so I tried to install it. I had JBoss 4.0.5 with EJB3.0 profile setup and got simple hello world application running. But when I want to have ADF Faces, I encounter problem when making Jboss