Session size

2003-02-13 Thread Marcio Fuckner
Hi

How can i know the size of a current session ?

Thanks,

Marcio




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




NamingException using DataSource from JNDI

2003-01-30 Thread Marcio Fuckner
Hi,

I created a DataSource resource in server.xml file and a reference in the
web.xml. But i receive a null reference and a Exception
javax.naming.NamingException
when i want to get the DataSource instance from the context.

Someone know what is happening?

in server.xml file:



maxWait5000
maxActive4
passwordpass

urljdbc:jdbcprogress:T:localhost:35001:testdb


driverClassNamecom.progress.sql.jdbc.JdbcProg
ressDriver
maxIdle2
usernamesuper



in web.xml file:


( ... )

SQLExplorer DataSource
jdbc/DBSample
javax.sql.DataSource
Container




My code:

try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

DataSource ds = (DataSource) envCtx.lookup("jdbc/DBSample"); <
Returns a NamingException

} catch( 

Here is some piece of Stack

javax.naming.NamingException: Cannot create resource instance
 at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:189)
 at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
(...)

I´m using Tomcat 4.1.18 and J2sdk 1.4.1

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]