Guys,
one doubt..
in a Container managed Entity Bean, can we switch the datasource runtime?
looks impossible but is there a way out?
or can we do this atleast in a Bean managed Entity Bean?
are there any merits / demerits for this kind of approach ?
I have a table 'A' in three mahcines '1', '2' and '3'..
ie., 3 datasources configured for each machine ie., '1', '2' and '3'
but all have the exact copy of table 'A' with the same name too
So, in reality, I really don't require seperate entity beans to represent
any of this data as the representation is the same
so, the requirement..
Is the JNDI server one per the application server or per EJB Container?
doubt is because, we are thinking of registering same JNDI name for same
bean using different datasources in different container instances.. !!
any suggestions?
I am pretty much confused with all these..
help me out, guys..
thankx in advance..
mns
lecMns
B'lore
one doubt..
in a Container managed Entity Bean, can we switch the datasource runtime?
looks impossible but is there a way out?
or can we do this atleast in a Bean managed Entity Bean?
are there any merits / demerits for this kind of approach ?
I have a table 'A' in three mahcines '1', '2' and '3'..
ie., 3 datasources configured for each machine ie., '1', '2' and '3'
but all have the exact copy of table 'A' with the same name too
So, in reality, I really don't require seperate entity beans to represent
any of this data as the representation is the same
so, the requirement..
Is the JNDI server one per the application server or per EJB Container?
doubt is because, we are thinking of registering same JNDI name for same
bean using different datasources in different container instances.. !!
any suggestions?
I am pretty much confused with all these..
help me out, guys..
thankx in advance..
mns
lecMns
B'lore