HOW TO REPL ACE A TIMER BY A JAVA BEANS
55930Aug 9 2005 — edited Aug 31 2005Hi,
for increase my application performance, I read that I must change the timer by
a java bean, but I don't know how to do it I am not very confortable with java
tools.
my goal is :
- I have 2 blocks A , B
* the block B is only for display.
* after each insert in the block A we must insert automaticly in the block B,
then after inserting in the block A we insert in the block B and must refresh
the block B to display the new record insert in the block B.
- then I need in the post insert of the block we must made a go block to block B but this built-in (go_block) are not allowed in the post-insert trigger.
- for a workaround, I create a timer
the timer code :
* in the post-insert of the block A
IF Id_Null(RRE_POSTINS) THEN
RRE_POSTINS := Create_Timer('TIMER_RRE_POSTINS',1,NO_REPEAT);
ELSE
Set_Timer(RRE_POSTINS,1,NO_REPEAT);
END IF;
* the when timer expired :
expired_timer := GET_APPLICATION_PROPERTY(TIMER_NAME);
if expired_timer in ('TIMER_RRE_POSTINS') then
go_block('B');
execute_query;
end if;
how can do all thing by using a java bean component ?
is there any component to remplace the timer ?
thank's