dev@glassfish.java.net

Re: changed events are not called?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 27 Jul 2009 17:57:26 -0700

Jerome, Ken, Tim,

I know why TM is not getting events, but I don't know what to do about it...

For transaction-service events to be sent, the TransactionService field need to
be *injected* into TM.

But(!) TransactionService can't be injected when executed in ACC (at least this
is what was happening back in April when I switched from injection to habitat
access):

[exec] INFO: Cannot inject private
com.sun.enterprise.config.serverbeans.TransactionService com .sun .enterprise
.transaction.JavaEETransactionManagerSimplified.txnService in componentcom
.sun.enterprise.transaction.JavaEETransactionManagerSimplified_at_3a835d

Tim, Ken, did it change since then?

Are there any other options?

thanks,
-marina

Marina Vatkina wrote:
> JavaEETransactionManagerSimplified doesn't get any TransactionService
> events (all of them would be change).
>
> To reproduce - deploy any app to start the TM, enable 'jta' logger to
> FINE, then do e.g.
>
> asadmin set server.transaction-service.retry-timeout-in-seconds=50
>
> (I didn't try admingui).
>
> If the change() method is called, you get 'Got TransactionService change
> event ==== ' append with the event name, the old and the new value log
> message.
>
> thanks,
> -marina
>
> Anissa Lam wrote:
>
>>
>>
>> Yes, i have filed bug
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=8815
>> Adding jvm option eg. -Djava.security.manager will not trigger the
>> server-restart-required status. Changing value of existing jvm
>> option does and behaves correctly.
>>
>> thanks
>> Anissa
>>
>>
>> Jerome Dochez wrote:
>>
>>> I don't remember changing anything but I will look at it. do you have
>>> a reproduceable case to speed things up.
>>>
>>> thx, jerome
>>> On Jul 24, 2009, at 5:03 PM, Lloyd Chambers wrote:
>>>
>>>> Anissa tells me she is not seeing restart required events.
>>>>
>>>> So yes, I think something was broken somewhere.
>>>>
>>>> Lloyd
>>>>
>>>> On Jul 24, 2009, at 4:57 PM, Marina Vatkina wrote:
>>>>
>>>>> Did something change recently? Tx manager does not get any
>>>>> notifications when the transaction-service element is changed. The
>>>>> value is correctly stored in the domain.xml.
>>>>>
>>>>> I call asadmin set after I see the message in the log that Tx
>>>>> manager had been initialized.
>>>>>
>>>>> thanks,
>>>>> -marina
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> Lloyd Chambers
>>>> lloyd.chambers_at_sun.com
>>>> GlassFish Team
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>