dev@glassfish.java.net

Re: [OndemandServer] EJB Service

From: Tang Yong <tangyong_at_cn.fujitsu.com>
Date: Tue, 26 Feb 2008 14:42:13 +0800

Hi Binod,

  Thanks you for taking time to reply my problem.

   Firstly,I think that I should read spec carefully .
   Secondly, wish Binod to write some more excellent articles.
   Finally, thanks again!

Best Regard!
--
---------------------------------------------------
Tang Yong
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
8/F., Civil Defense Building, No.189 Guangzhou Road,
Nanjing, 210029, China
TEL: +86+25-86630566-917
COINS: 79955-917
FAX: +86+25-83317685
MAIL: tangyong_at_cn.fujitsu.com
---------------------------------------------------



Hi Tang,

On 26-Feb-08, at 11:58 AM, Tang Yong wrote:

> Hi Binod,
>
> This is an interesting topic.
>
> I have a problem about the EJBTimer Service.
>
> According the requirement of ondemandserver and the role of EJBTimer
> (which serves for the StatelessSessionBean), So,when a standalone
> server
> starts up, ondemandserver should not register the ejbtimer bean .Of
> course,
> if the ejbtimer services for the AppServer's Internal
> Subsystem,ondemandserver
> should initialize the service.

On demand server is enabled only for developer profile. For cluster
profile
all services starts up when appserver starts up.

>
>
> In other word, I want to know the exact role of EJBTimer?(Maybe I
> should read
> the EJB Spec carefully :))

Yes, please read EJB spec.

Do you mind explaining the problem you are facing? That will help us
explain all these in the correct perspective.

- Binod

>
>
> Wu's problem should be explained as follows:
>
> "In Starting DAS (Not Cluster mode), does EJBTimerService need to
> be initialized?"



>
>
> Thanks!
> Best Regard!
>
> Hi,
>
> On 26-Feb-08, at 11:40 AM, 呉傑 wrote:
>
>> Hi Binod, Dev Team,
>>
>> I have the following questions about EJB Timer Service.
>> 1, Is EJB Timer Service initialized when DAS startup or Cluster
>> startup.
>
> Yes. It is initialized.
>
>>
>> 2, When EJB app is undeployed which component is charge of stopping
>> the corresponding
>> timer service and deleting the related data from DB.
>> about the 2nd question I eager to know how the timer service is
>> stopped and related
>> data is deleted in the cluster mode with multi instances.
>> #I found that EJBTimerService#destroyTimers(long containerId) is
>> charge of doing that,
>> and EJB container invokes EJBTimerService#destroyTimers(long
>> containerId).
>
> I will let some on the EJB container team to answer this question.
>
> - Binod.
>
>>
>>
>> I hope for your help.
>> Thanks
>> - Wu.
>>
>> Binod さんは書きました:
>>> Hi Tang,
>>>
>>> On 26-Feb-08, at 9:32 AM, Tang Yong wrote:
>>>
>>>> Hi Binod,Dev Team,
>>>>
>>>> I come from China and work on the AppServer Development related.
>>>>
>>>> I see the Binod's excited paper(http://weblogs.java.net/blog/binod/archive/2005/09/lazy_initializa.html
>>>> ),
>>>> and understand a lot related ondemand startup.
>>>>
>>>> However, I have a few problems and wish you can help me resolve
>>>> them, as follows:
>>>> 1 I find that in "EjbServiceGroup.java", there are the following
>>>> comment:
>>>>
>>>> "Represents the group services needed by EJBs. The main
>>>> components
>>>> of this servicegroup are ORB, JTS and system apps that use
>>>> EJBs."
>>>>
>>>> then, what does the "system apps that use EJBs" mean?including
>>>> EJBTimerBean?
>>>
>>> Yes. TimerBean and MEJB.
>>>
>>>>
>>>>
>>>> 2 When appserver starts up, does the EJB Container need to be
>>>> initialized? If yes, initializes which
>>>> service related EJB Container ?
>>>
>>> Only when EJBs are deployed (or accessed) the EJB container need to
>>> be initialized.
>>>
>>> - Binod.
>>>
>>>>
>>>>
>>>> 3 Are there some deep material about the internal of Appserver's
>>>> LifeCycle?
>>>>
>>>>
>>>> Thanks!
>>>>
>>>> Best Regard!
>>>>
>>>> --
>>>> ---------------------------------------------------
>>>> Tang Yong
>>>> Development Dept.I
>>>> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
>>>> 8/F., Civil Defense Building, No.189 Guangzhou Road,
>>>> Nanjing, 210029, China
>>>> TEL: +86+25-86630566-917
>>>> COINS: 79955-917
>>>> FAX: +86+25-83317685
>>>> MAIL: tangyong_at_cn.fujitsu.com
>>>> ---------------------------------------------------
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> Wu Jie
>> --------------------------------------------------
>> Wu Jie
>> Development Dept.II
>> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
>> 8/F., Civil Defense Building, No.189 Guangzhou Road,
>> Nanjing, 210029, China
>> TEL: +86+25-86630566-918 COINS: 79955-918
>> FAX: +86+25-83317685
>> MAIL: wujie_at_cn.fujitsu.com
>> --------------------------------------------------
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> --
> ---------------------------------------------------
> Tang Yong
> Development Dept.I
> Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
> 8/F., Civil Defense Building, No.189 Guangzhou Road,
> Nanjing, 210029, China
> TEL: +86+25-86630566-917
> COINS: 79955-917
> FAX: +86+25-83317685
> MAIL: tangyong_at_cn.fujitsu.com
> ---------------------------------------------------
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: dev-help_at_glassfish.dev.java.net