I think cancelling should work the same as
now. Cancelling is done by passing the IProgressMonitor. I think we only need
one. If cancel flag is set, the publish code should return as soon as it can
leave a consistent state, so does other sub task.
The current publish operation is workspace
modifying. I think the schedule rule is set in the PublishJob level. So, we do
not need a change on schedule rule.
wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of David M Williams
Sent: Sunday, March 26, 2006 2:00
To: General discussion of
project-wide or architectural issues.
Subject: Re: [wtp-dev] Server API
change proposal -- Jobs and scheduling rules
One thing I'd like to see "well spec'd" with
the full spec of this API change, is the effect and requirements on publishing
Jobs. Such as, do the "sub steps" have to run in a certain
order? Are they all within a Publishing Job, or somehow separate from it. Plus,
I'm assuming they'd each have to have the ability to be canceled, but if one
canceled, are the rest canceled?. Also, it sounds like in your proposal, the
publishing job/operation could be a workspace modifying operation? Whereas
before, I think it was not, right? If so, then if nothing else, I think some
scheduling rule would have to be provided for clients to obtain, before
the answers to these questions are obvious to you experts in this server area,
but hopefully that will make it easy for you to document for the rest of us.
03/20/2006 10:01 PM
"General discussion of project-wide or architectural issues."
"General discussion of project-wide or
architectural issues." <wtp-dev@xxxxxxxxxxx>
<kosta@xxxxxxx>, Timothy Deboer <deboer@xxxxxxxxxx>, Ted Bashor
<tbashor@xxxxxxx>, Gorkem Ercan <gorkem.ercan@xxxxxxxxx>
[wtp-dev] Server API change proposal
This proposal briefs the limitation we see with current server publish API, and
it suggests a solution. We had a short discussion during a conference call on
Mar 13th, 2006. (mainly around the ServerBehaviourDelegate). The
problem is also related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=123676
We learned the original design was driven by a need of a very simply publish
an adopter should able to implement a
simply delegate and do the publish work.
publish tasks was intent to be simple
most methods can be overridden.
We found the current API is not ideal for BEA needs.
We delay much of publish process until user do an explicit publish action (menu
item publish, or Run on Server).
We generates *.java file based on
annotation of Java file in publish time. We trigger project rebuild during
We insert information into application
descriptors (web.xml, application.xml) based on files on the project.
Generated artifacts can cause changes
to the EAR or other modules in the same application.
Publish application by application.
Publish failure should be isolated
For us, the publish process is better described as a 3 steps process: Assembly
(artifact generation), Packaging (we package virtually), and Distribution
(calls JSR-88 to distribute the application to the server).
The current SPI was driven by the need of simple publishing. The publish
process iterates module by a flattend module list (not application by
Because that most methods can be overridden, we can achieve our goal reasonably
well. However, it incurs maintenance risk, because are not really implementing
the delegate’s SPI. For example,
if a fix or an enhancement is made to
PublishOperation, our server adapter lag behind, and enhancement will not be
We short circuit a few methods, such
as publishModules() (which is a violate the interface). If any of the methods
is called by new code that we haven’t overridden, it causes unexpected
Because of the different design goal, we don’t implement the full spec of
ServerBehaviourDelegate. While such changes might not be likely, an adopter
should not be required to implement their delegate in a way to violate the SPI
We can eliminate the problem by the following changes:
Introduce another delegate.
Let’s call it BaseServerBehaviourDelegate for now. The current
ServerBehaviourDelegate should make extended of BaseServerBehaviourDelegate.
Most generic methods can be push up. (such as state settings, module controls,
resource delta maintaince. But, it leaves out
code related to published module list,
and the kind. PublishOperation, and
all the publish methods. Introduce an
adapter interface to indicate PublishOperation is supported.
The changes will maintain compatibility for all current adopter, and the
original design goal. It enables adopter with different needs to have full
control of the publish process.
Either, makes publish operation
optional. Push down PublsihOperation related code to the original
Or, factors out PublishOperation into
utility class or method.
Or, made PublishOperation not depends
on the flatten module path (IModule representing the sub module and its
Introducing another extension point
for UI to replace the hard-coded publishTask page fragment. Move UI for
publishOperation as an extension.
A brief study of the code indicated that we should able to implement it in a
way that it doesn’t affect existing adopter.
A few optional changes can be introduced to ease the work of an adopter.
is common to many servers. We might want to introduce another
Generic server is already use
application-by-application approach. We should look into merging the
Going further, we can also introduce
the 3 steps publish process for adopter with complicated publish use-case.
Senior Software Engineer
Email: tyip@xxxxxxx YIM: thomasleaf
Phone: (206) 926-2906 Blog: http://theBigGrid.com/
"The complexity you
remove can never fail." Burt Rutan.
Notice: This email message, together with
any attachments, may contain
information of BEA Systems,
Inc., its subsidiaries and affiliated
entities, that may be confidential,
proprietary, copyrighted and/or
legally privileged, and is intended solely for the
use of the individual
or entity named in this message. If you are not
the intended recipient,
and have received this message in error, please
immediately return this
by email and then delete it.
wtp-dev mailing list
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.