Which APIs does EJB 2.0 guarantee?

Supported APIs

  • Java 2 Standard Edition, v 1.3 (J2SE)

  • JNDI API 1.2

  • JTA 1.01 extension (the UserTransaction interface only)

  • JDBC 2.0 extension

  • JMS 1.02 extension

  • JavaMail 1.1, sending mail only

  • JAXP 1.0

Note

J2SE support is Java 1.3, NOT 1.4!

Just because an API is in the J2SE standard library for version 1.4, does not mean that API is guaranteed for EJB! The EJB spec requires only J2SE version 1.3, so if you write a bean that relies on something in J2SE 1.4, your bean is not guaranteed to be portable across any EJB 2.0 container.

That means, for example, that the Java Cryptography Extension (JCE) APIs are not guaranteed to be supported by EJB 2.0, even though they are now part of the J2SE platform as of version 1.4.

Relax

You don’t have to memorize all of the exact version numbers

The exam isn’t going to trick you on something as trivial as remember whether JavaMail is 1.1 or 1.2, or whether the JTA extension is 1.01 or 1.03. The only numbers you really need to know (besides the 2.0 in EJB 2.0!) are the JDBC 2.0 extension, and that only version 1.3 (not necessarily 1.4) of J2SE is guaranteed.

Get Head First EJB now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.