Usage of WebApp and WebArtifactEdit [message #155253] |
Sat, 07 January 2006 05:00 |
Eclipse User |
|
|
|
Originally posted by: daniel.rohe.stud.tu-ilmenau.de
Hello,
I've a problem understanding the usage of WebApp and WebArtifactEdit. Is
it allowed to use the WebApp model after the WebArtifactEdit with which
the WebApp is retrieved is disposed?
example code:
WebArtifactEdit artifactEdit = null;
WebApp webApp = null;
try {
artifactEdit = WebArtifactEdit.getWebArtifactEditForRead(project);
webApp = artifactEdit.getWebApp();
} finally {
if (artifactEdit != null) {
artifactEdit.dispose();
}
}
// is this allowed?
List servlets = webApp.getServlets();
Kind regards,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03388 seconds