This content has been marked as final.
Show 2 replies
-
1. Re: question about datasource configuration.
vickyk Nov 17, 2009 5:06 AM (in response to liuliu)"liuliu" wrote:
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? -
2. Re: question about datasource configuration.
liuliu Nov 17, 2009 6:50 AM (in response to liuliu)
thanks for your reply,
source code here means java code in backingbean or ejb.
by example:
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.