[Persistence, JBoss/CMP, Hibernate, Database] - Re: org.jboss.resource.adapter.jdbc.WrappedCallableStatement
by jaikiran
Try this
| import org.jboss.resource.adapter.jdbc.WrappedCallableStatement;
| import oracle.jdbc.OracleCallableStatement;
| import oracle.jdbc.OracleTypes;
| import oracle.jdbc.pool.OracleDataSource;
| import java.lang.*;
| import java.util.*;
| import java.io.*;
| import java.sql.*;
| ............
| ........
| .....
|
| OracleCallableStatement cstmt = null;
| WrappedCallableStatement wcs = null;
| String[] orgNames = null;
| int maxTablLen = 250;
| int eleMaxLen = 100;
|
| try{
| ConnPool conObj = new ConnPool();
| con = conObj.getConnection();
|
|
| wcs = (WrappedCallableStatement) con.prepareCall(" begin"+
| "GETS_LMS_RECAP_DEFECTS_PKG.GETS_PL_SQL_TEST(?);"+
| " end;");
| cstmt = (OracleCallableStatement) wcs.getUnderlyingStatement();
| cstmt.registerIndexTableOutParameter(1,maxTablLen,OracleTypes.VARCHAR,eleMaxLen);
|
| cstmt.execute();
|
| orgNames = (String [])cstmt.getObject(1);
|
| System.out.println("Number of rows= "+orgNames.length);
| for (int i=0; i<orgNames.length; i++){
| System.out.print(orgNames);
| System.out.println();
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112817#4112817
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112817
18 years, 4 months
[JBoss Portal] - tab issue
by marimuthub
Hi All,
We are developing JBoss portal application which having multi level hierarchy tabs. We are using JBoss portal server 2.6.1.
Our multi level hierarchy look like
- Home
-- testHome 1
-- testHome 2
- Garden
-- testGarden1
-- testGarden2
HOme is main tab. testHome1 and testHOme2 are sub tabs for Home tab
Garden is main tab. testGarden1 and testGarden2 are sub tabs are Garden tab.
We have configured testHome1 and testGarden1 pages as default for Home and Garden main tab respectively.
The Scenario details as follows
Once the user successfully logged into our application, by default we are displaying Home -> testHome1 (sub tab page).
Secondly he clicks on Garden link. So he gets into testGarden1 sub tab page by default.
Thirdly he clicks on testGarden2 sub tab link under Garden main tab. He gets into testGarden2 sub page.
Till this point the flow is ok.
Now when tries to click on Garden Main tab the user redirects to testGarden2 page instead of testGarden1 page, which is configured default page for Garden main tab.
The same issue occurs for Home tab also.
We appriciate your help.
Thanks and Regards
Marimuthu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112811#4112811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112811
18 years, 4 months