List: jboss-user
Subject: [jboss-user] Using timers in jboss modules
From: Prateek Jain J <prateek.j.jain () ericsson ! com>
Date: 2017-02-10 16:27:00
Message-ID: VI1PR07MB1696F58EF55A0C3B2D40C7F3B3440 () VI1PR07MB1696 ! eurprd07 ! prod ! outlook ! com
[Download RAW message or body]
Hi,
I am required to create a timer/schedule service in jboss (JEE6). The issue is, it \
gets deployed as jboss module. I know that following code works if deployed as EJB \
@Schedule(hour="*/1", persistent=false) but it doesnt work if deployed otherwise. Are \
there any recommendations or standard ways to create and use timers in jboss modules? \
I want to avoid core-java way of creating TimerTask.
Regards,
Prateek Jain
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
mso-fareast-language:EN-IE;}
span.lit
{mso-style-name:lit;}
span.pun
{mso-style-name:pun;}
span.pln
{mso-style-name:pln;}
span.str
{mso-style-name:str;}
span.kwd
{mso-style-name:kwd;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span \
style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729;mso-fareast-language:EN-IE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span \
style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729;mso-fareast-language:EN-IE">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span \
style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729;mso-fareast-language:EN-IE">I \
am required to create a timer/schedule service in jboss (JEE6). The issue is, it gets \
deployed as jboss module. I know that following code works if deployed as \
EJB<o:p></o:p></span></p> <p class="MsoNormal" style="background:#EFF0F1"><span \
style="font-size:10.0pt;font-family:Consolas;color:#7D2727;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">@Schedule</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#303336;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">(hour=</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#7D2727;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">"*/1"</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#303336;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">, \
persistent=</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#101094;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">false</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#303336;border:none windowtext \
1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:EN-IE">)</span><span \
style="font-size:10.0pt;font-family:Consolas;color:#393318;mso-fareast-language:EN-IE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span \
style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729;mso-fareast-language:EN-IE">but \
it doesnt work if deployed otherwise. Are there any recommendations or standard ways \
to create and use timers in jboss modules? I want to avoid core-java way of creating \
TimerTask.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:12.0pt;font-family:"Cambria",serif;color:#1F497D;mso-fareast-language:EN-IE">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" \
style="font-size:12.0pt;font-family:"Cambria",serif;color:#1F497D;mso-fareast-language:EN-IE">Prateek \
Jain<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
--===============0214921338809076094==--
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic