Announcement Announcement Module
Collapse
No announcement yet.
Is possibile EJB 3.0 without annotation? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is possibile EJB 3.0 without annotation?

    Hi,
    is possible to use and declare an EJB 3.0 without annotation?

    I like not to use @EJB @Remote @Local @Stateless @Autowire annotation.

    I'm using Spring 2.5.6 on JBoss Portal 2.7.2, and I'd like to use only xml configuration with spring and ejb (with ejb-jar.xml, jboss.xml and spring specific xml and so on).

  • #2
    The question is do you need EJBs....

    If not simply use spring to instantiate your objects, if you do and you need EJB 3, well your only option is basically annotations..

    Note: @Autowired is a Spring annotation and has NOTHING to do with EJBs.

    Comment


    • #3
      Thank you Marten for your reply.

      I need EJB? EBJ is a requirement ...

      Originally posted by Marten Deinum View Post
      Note: @Autowired is a Spring annotation and has NOTHING to do with EJBs.
      I wrote also @Autowired to point out that a spring bean use an ejb that use a spring service
      ... i need ejb ?

      Comment


      • #4
        Again why is it a requirement, the last 7 years I wrote a lot of enterprise applications without EJB. So again WHY do yuou need ejbs...

        And as already stated if you need really must use them then you are also bound to annotations.

        Comment


        • #5
          Thank you, it's is clear for me, I can present you the software architect we have

          Comment

          Working...
          X