You're quite right Nickman. I didn't mean to change the subject. I was responding to
"CMP is all you need to know" post.
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827225#3827225";>View
the original post
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827225>R
Parag,
EJB containers don't speak HTTP. When you say HTTP, do you mean internet? Connecting
to an EJB requires ports that most firewalls do not allow. (I don't remember which
port numbers; its documented somewhere.) You should probably put a servlet between
your applet and any EJBs in your app.
Sorry Loubyansky, I don't quite agree. CMP is fast, but there are times when I can't
make CMP do what I want. Some applications require the flexibility of BMP.
Larry
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825505#3825505";>View
the original post
http://www.jboss.org/index.htm
Hi again Adrian,
That's a slightly different question than I thought you were asking. If I understand
correctly, you want to be able to connect to different databases with the same
application without changing the source code. You may not realize it, but your
datasource is not "cardcoded". You
Adrian,
I don't know if there's a Jboss way to do this, but I use getMetaData. It works in any
JDBC application. For example, assume con is your connection object:
DatabaseMetaData dbmd=con.getMetaData();
System.out.println("You are connected to: "+dbmd.getDatabaseProductName());
B