[EJB/JBoss] - Re: ejbTimeout called when Timer.cancel is called
by icruz
Hello,
I have the same problem with JBoss 4.2.1GA. I have a @Service EJB, in start() method I create a EJB timer, and it works.
The first problem is when I shutdown jboss, in the stop() method of the Service EJB I call the method timer.cancel(), and it throws an exception with the message "timer was canceled", but the timer remains in the database (if I call stop() from the JMX console, it is cancelled correctly)
The second problem is when I restart jboss, in the start() method of my service EJB, the function timerService.getTimers() returns an empty collection (even the timer *is* in the database), and when I try to create the timer it fails with a "duplicate key" exception from MySQL driver
Thanks in advance,
Isaac
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070518#4070518
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070518
18Â years, 8Â months
[Beginners Corner] - logging with log4j under JBoss4
by groscurth
Hi,
i'd like to use log4j.xml to log a web application in a seperate file
According to JBOSS the following has to be added to the log4j.xml
<appender name="App1Log" class="org.apache.log4j.FileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Append" value="false"/>
| <param name="File" value="${jboss.server.home.dir}/log/app1.log"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| <filter class="org.jboss.logging.filter.TCLFilter">
| <param name="AcceptOnMatch" value="true"/>
| <param name="DeployURL" value="app1.ear"/>
| </filter>
| </appender>
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| <appender-ref ref="App1Log"/>
| </root>
which I did (with my .war file)
in the application i tried :
private static Logger LOGGER = Logger.getLogger( GetApplicationsServlet.class );
| private static Logger LOGGER2 = Logger.getRootLogger();
and printed out some error messages.
JBoss logs normal on the console and in the server.log. It also creates the app1.log file but without any content :(
What is wrong.. why does it log not in the file but anywhere else ?
THANKS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070513#4070513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070513
18Â years, 8Â months
Jboss cluster testing
by Nayyar Ahmad
Hi All,
We are planing to scale our JBoss AS to 5 or more servers with Failover/HA
capabilities, for the reason i have to make a simulation of cluster, i am
thinking to use VMware machines on my notebook to demo the production
environment, is there any case study available to test JBoss cluster with
Failover/HA ?
please guide me, i am very new to JBoss.
thanks in advance
--
Nayyar Ahmad
RHCE (ID:804006858622745)
Skype: nayyares
18Â years, 8Â months