Ed Aihua Wu wrote:

> I understand JBoss is a container and provide the
> service to its components.
> I have a stand-alone test program (not a component
> inside the JBoss directories) and try to get a
> connection from JBoss.  If a JSP page (it is not inside
> the JBoss container) can
> get a connection,  why can't a stand-alone client program
> get a connection?

a JSP page that can get a database connection from the JBoss JNDI is 
running in the same process as JBoss. JSPs run in a web container, and 
if you integrate Tomcat (or Jetty) to run in-process with JBoss, JBoss 
takes over as the JNDI provider for things running in that web container.


> 
> In the interest tutorial program
> provided by JBoss, it has a client program
> InterestClient.java,  it is run outside the container,
> It works perfectly well.

It doesn't get a database connection, it talks to an EJB.


> 
> So I should be able to get a connection even it is
> outside of the JBoss.
> 
> Thanks for any help.
> 


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

Reply via email to