cancel
Showing results for 
Search instead for 
Did you mean: 

annotations to replace ejb-jar.xml?

lee_dong
Explorer
0 Kudos

Hi gurus,

Seems that the newest NWDS7.1 does not create ejb-jar.xml for EJB project. And I was told that currently all what we can do in ejb-jar.xml can be done with annotations right now. But where can I find available annotation list? Particularly I need the annotation to get environment entry from JNDI, which can be done using ejb-jar.xml before.

Thanks in advance.

B.R.

Accepted Solutions (0)

Answers (2)

Answers (2)

lee_dong
Explorer
0 Kudos

refer to for detail information.

Vlado
Advisor
Advisor
0 Kudos

Hi Lee,

You can find all EJB annotations in the EJB 3.0 Simplified API spec and EJB 3.0 Persistence (JPA) spec.

The NWDS also gives you tips as to the available annotations from the context menus of different nodes, e.g. in the Outline view, Java editor, etc.

Last but not least, you can find pieces of annotation reference in the various subnodes of the [online help|http://help.sap.com/saphelp_nwce10/helpdata/en/44/e9af22b9dc03fde10000000a1553f6/frameset.htm].

Particularly, you should be using @Resource for injecting env entry.

HTH!

\-- Vladimir

lee_dong
Explorer
0 Kudos

refer to for detail information.