对不起,没找到
这段程序是在BMP里的?和客户端获取数据是不是不一样?

解决方案 »

  1.   

    我把相关代码贴出来,请大家务必帮我看看!!!
    这是ejb中的代码
      private Connection getConnection()
      {
        InitialContext initCtx = null;
        try {
          initCtx = new InitialContext();
          DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/datasource");
          return ds.getConnection();
        }catch(Exception ex)
        {
          throw new EJBException(ex);
        }
      }我在weblogic里配置的连接池参数为:
        <JDBCConnectionPool CapacityIncrement="1"
            DriverName="sun.jdbc.odbc.JdbcOdbcDriver" InitialCapacity="1"
            LoginDelaySeconds="1" MaxCapacity="100" Name="DataSource"
            Properties="user=demo;password=demo" RefreshMinutes="1"
            ShrinkingEnabled="true" Targets="myserver"
            TestConnectionsOnRelease="false" TestConnectionsOnReserve="true"
            TestTableName="UnitedOffic" URL="jdbc:odbc:fp"/>
        <JDBCDataSource JNDIName="DemoSource"
            Name="United Office Demo Source" PoolName="DataSource"/>出错提示上面已经给出来了!!请大家务必帮忙!