[otj-users] OTJ-Issues
Carsten Pfeiffer
carsten.pfeiffer at first.fraunhofer.de
Mon Jul 24 14:29:17 CEST 2006
On Friday 21 July 2006 09:29, Oliver Neumann wrote:
Hi Oliver,
> where CompiereTeam is the teamclass. These files are missing for every
> generated team, not just one.
do you use team-inheritance somewhere? If yes, are the class files for all
roles generated properly at all times or are they missing as well when you
hit this bug?
> Oh and the generated class-files of the
> previous-build are getting deleted everytime before the builder starts his
> work so the preconditions ( in the way of available files) for the builder
> are the same on each new start.
This is good to know!
> 2. Problem - Team activation
>
> I have several teamclasses which should be activated in the destination
> application. Its all working like it should if i use the OT-Configfile to
> activate them with the -Dot.teamconfig=%CONFIG_FILE% parameter. But now i'd
> like to use the dynamic Team-activation/deactivation. For this i wrote a
> thread which run-method gets called by a timer continuesly. Each of the
> teamclasses is generated once by:
> Class teamC = Class.forName(teamClassName);
> Object obj = teamC.newInstance();
>
> The instantiated teamclass is stored within a list. On each run-cycle i
> check if each of these teamclasses should be active or not and i
> (de)actiavtion them by:
> theTeam.activate(Team.ALL_THREADS);
> theTeam.deactivate(Team.ALL_THREADS);
This approach seems a bit.. let me say unusual :-) Is there no other means to
(de)activate your teams? Is your whole program controlled by the timer? Isn't
it possible to (de)activate your teams based on some "events" in the
application, captured e.g. by a callin?
> This is working good for many teams but not for all. Some just dont get
> activated like they do with the config-file. Well i think its a great
> feature of OT and thus i'd like to have it running - but till now i cant
> use it :/
It's not easy to judge with just that information. Can you provide some more
details? I.e. is it always the same teams that are not activated? Is this
always reproduceable? What does isActive() return?
Cheers,
Carsten
--
Fraunhofer Institute Computer Architecture and Software Technology, FIRST
Kekuléstraße 7, 12489 Berlin
Tel.: +49 (0)30 6392-1900, Fax: +49 (0)30 6392-1805
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2045 bytes
Desc: not available
Url : http://collegium-musicum.tu-berlin.de/pipermail/otj-users/attachments/20060724/1df4e8d9/smime.bin
More information about the otj-users
mailing list