Gabi Perets wrote:

> Hi All,
> 
> Can I add a jndi name to the "Global JNDI Namespace", I want the jndi name
> for my DataSource to be there and not in the "Java: JNDI Namespace". This
> way I will have the option to look for the DataSource from remote client. Is
> it possible? 

Well, you could hack up the code to put it there but it still won't work 
- DataSource is not serializable.


> (It is with WebLogic, I am trying to move from WL ...)

Weblogic's datasource implementation is an RMI server object. Just 
because they do this doesn't make it a good idea - think about it - 
You're in one process, the datasource is in another, and the database in 
a third. That means that if you use this feature, your doubling the 
number of times you go through the OS network stack, doubling the number 
of times your poor data gets bounced around. This is just from a 
physical architecture point of view - from a logical point of view how 
do you intend to maintain a system where data access can happen from any 
random bit of code in any layer? How many classes will you need to touch 
when your schema changes?






_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to