[JBoss-user] [Beginners Corner] - Re: CMP vs. BMP

2004-03-24 Thread larry054
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

[JBoss-user] [Beginners Corner] - Re: Accessing EJB from applet over http

2004-03-15 Thread larry054
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.

[JBoss-user] [Beginners Corner] - Re: CMP vs. BMP

2004-03-13 Thread larry054
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

[JBoss-user] [Datasource Configuration] - Re: How to get the name of the datasource from within an EJB

2004-03-11 Thread larry054
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

[JBoss-user] [Datasource Configuration] - Re: How to get the name of the datasource from within an EJB

2004-03-08 Thread larry054
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