persistence@glassfish.java.net

[Fwd: javax.ejb: _at_PreDestroy, _at_PostConstruct]

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Wed, 16 Nov 2005 09:18:08 +0530

Hi Tom/Gordon,
       Please have a look at the forwarded email. entity-persistence
should not depend on javax.ejb package, should it?

Thanks,
Sahoo

attached mail follows:



Hi Ken, Sahoo and Q^2,
While I tried to remove javax.ejb.PreDestroy, javax.ejb.PostConstruct, I
found that
oracle classes referenced those annotations.
So can someone contact them to remove reference of those classes?
In the meantime, I need to keep those classes there.
(I have conferened that I have removed references of those classes in
appserv-commons
in my local workspace.)
Regards,
     Shing Wai Chan

   [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:42:
c
annot find symbol
    [java] [javac] symbol : class PostConstruct
    [java] [javac] location: package javax.ejb
    [java] [javac] import javax.ejb.PostConstruct;
    [java] [javac] ^
    [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:43:
c
annot find symbol
    [java] [javac] symbol : class PreDestroy
    [java] [javac] location: package javax.ejb
    [java] [javac] import javax.ejb.PreDestroy;
    [java] [javac] ^
    [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:2052:
 cannot find symbol
    [java] [javac] symbol : class PostConstruct
    [java] [javac] location: class
oracle.toplink.essentials.internal.annota
tions.EJBAnnotationsProcessor
    [java] [javac] if
(method.isAnnotationPresent(PostConstruct.clas
s)) {
    [java] [javac] ^
    [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:2053:
 cannot find symbol
    [java] [javac] symbol : class PostConstruct
    [java] [javac] location: class
oracle.toplink.essentials.internal.annota
tions.EJBAnnotationsProcessor
    [java] [javac] throw
ValidationException.invalidAnnotationSp
ecified(cbListener.getListenerClass(), PostConstruct.class,
method.getName());
    [java]
[javac]
                                       ^
    [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:2132:
 cannot find symbol
    [java] [javac] symbol : class PreDestroy
    [java] [javac] location: class
oracle.toplink.essentials.internal.annota
tions.EJBAnnotationsProcessor
    [java] [javac] if
(method.isAnnotationPresent(PreDestroy.class))
 {
    [java] [javac] ^
    [java] [javac]
/export/s1AS9/src/glassfish/entity-persistence/src/java/o
racle/toplink/essentials/internal/annotations/EJBAnnotationsProcessor.java:2133: