Forum Stats

  • 3,814,069 Users
  • 2,258,814 Discussions
  • 7,892,523 Comments

Discussions

Related Annotations

harshad
harshad Member Posts: 12
edited Jun 4, 2013 11:31AM in Java Cloud Service
http://docs.oracle.com/cloud/CSJSU/feat_implement.htm

says - Applications using Servlet 2.5, JavaServer Pages (JSP) 2.1, Java Server Faces (JSF) release 1.2 and release 2.0. Use of web.xml, weblogic.xml deployment descriptors and related annotations is supported.

Does "related annotations" here mean that I can use annotations for my Servlets, Filters, Listeners...?

Or is declaring them in the web.xml my only option?

Could you please provide details of the annotations support on the Java Cloud?

Thanks!
Tagged:

Answers

  • Michael OBrien
    Michael OBrien Member Posts: 26 Blue Ribbon
    Harshad,
    I am in the process of vetting all injection support for Java EE 6 on the cloud managed version of WebLogic 12.1.1.0
    So far I have been able to use @ManagedBean (no faces-config.xml tags required)
    I have not been able to use @Singleton, @Stateless or inject an @EJB on my @ManagedBean
    The use of the new EJB 3.1 @Schedule timer bean is not kicking in after cloud deployment either.
    2546888

    Also the @PersistenceUnit EMF injection in the SDK example only works because the JPA2 entity .class files are statically weaved (do a diff between your complilation and the distributed .class file to see the instrumentation).
    I am having difficulties using standard ejb container proxy injection that works fine on a local WebLogic server.
    I will repost to this forum when I get non-JNDI and non-XML injected EJB's working.

    thank you
    /michael
This discussion has been closed.