Wednesday, January 17, 2007

Annotations & Jdeveloper

First time I am testing @EJB annotation on jdeveloper. As usual it dint work. After some investigation and tutorials from EJB portal, it is mentioned..

You must have version="2.5" in the web.xml for the web-app tag in order for OC4J to scan for annotations as follows:

version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">


Happy Coding...