I want to know how configure the ear to connect his database without modify the source code ?
what does the source code refer to here?
Is this the configuration related change in the -ds.xml and the corresponding deployment descriptor files?
thanks for your reply,
source code here means java code in backingbean or ejb.
in ejb : context.lookup("jdbc/datasource")
in -ds.xml : <jndi_name>ear_name_ds</jndi_name>
somewhere in ear : ear_name_ds = jdbc/datasource.
I know i can do it with web.xml,jboss-web.xml and declare it for every ejb.
what i want is to do it in ONE place.