• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

How do I get a dataSourceProperty from a JDNI DataSource

 
Greenhorn
Posts: 3
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a project that is deployed on WAS 6.0 in which a jdni connection has been set up which points to an IBM iSeries.
I have been using the jdni in my application to execute a CallableStatement on the iSeries which is working correctly.
I now need to retrieve the libraries where were set up in the jdni's "Custom Properties" I can see the property in the dataSourceProperties when I debug.
I just can't figure out how to get at it.

Below the DataConnection variable stack is shown.
I the property "libraries" is what I am trying to get reference to.

Any help would be greatly appreciated.


ds= com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource (id=26106244)
class$com$ibm$websphere$rsadapter$WSCciConnectionSpec= null
class$com$ibm$ws$rsadapter$jdbc$WSJdbcDataSource= java.lang.Class (com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource) (id=109681612)
class$java$io$PrintWriter= null
class$javax$sql$DataSource= null
cm= com.ibm.ejs.j2c.ConnectionManager (id=26105844)
cmConfigData= com.ibm.ejs.j2c.CMConfigDataImpl (id=26106252)
configID= 0
defaultIsolationLevel= 4
dSHelper= com.ibm.websphere.rsadapter.DB2AS400DataStoreHelper (id=26105860)
internalHelper= com.ibm.ws.rsadapter.spi.InternalDB2AS400ToolboxDataStoreHelper (id=26106260)
managedConnFactor=y com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl (id=26105884)
class$com$ibm$ws$rsadapter$jdbc$WSJdbcDataSource= null
class$com$ibm$ws$rsadapter$spi$WSManagedConnectionFactoryImpl= java.lang.Class (com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl) (id=26109388)
class$javax$resource$cci$ConnectionFactory= null
class$javax$resource$spi$ManagedConnectionFactory= null
class$javax$resource$spi$security$GenericCredential= null
class$javax$sql$DataSource= null
locationRestrictedFunction= com.ibm.ws.rsadapter.spi.RestrictedServerFunction (id=26106308)
tc= com.ibm.ejs.ras.TraceComponent (id=26106316)
connectionFactoryType= java.lang.Integer (id=26106324)
connMgr= com.ibm.ejs.j2c.ConnectionManager (id=26105844)
databaseType= null
dataSource= com.ibm.ws.rsadapter.spi.WSRdbDataSource (id=26106332)
dataSourceProperties= java.util.Properties (id=26106340)
[0]= java.util.Hashtable$HashtableEntry (id=26106500)
[1]= java.util.Hashtable$HashtableEntry (id=26106508)
[2]= java.util.Hashtable$HashtableEntry (id=26106516)
[3]= java.util.Hashtable$HashtableEntry (id=26106524)
[4]= java.util.Hashtable$HashtableEntry (id=26106532)
[5]= java.util.Hashtable$HashtableEntry (id=26106540)
[6]= java.util.Hashtable$HashtableEntry (id=26106548)
[7]= java.util.Hashtable$HashtableEntry (id=26106556)
[8]= java.util.Hashtable$HashtableEntry (id=26106564)
[9]= java.util.Hashtable$HashtableEntry (id=26106572)
[10]= java.util.Hashtable$HashtableEntry (id=26106580)
[11]= java.util.Hashtable$HashtableEntry (id=26106588)
[12]= java.util.Hashtable$HashtableEntry (id=26106596)
[13]= java.util.Hashtable$HashtableEntry (id=26106604)
[14]= java.util.Hashtable$HashtableEntry (id=26106612)
[15]= java.util.Hashtable$HashtableEntry (id=26106620)
[16]= java.util.Hashtable$HashtableEntry (id=26106628)
[17]= java.util.Hashtable$HashtableEntry (id=26106636)
[18]= java.util.Hashtable$HashtableEntry (id=26106644)
[19]= java.util.Hashtable$HashtableEntry (id=26106652)
[20]= java.util.Hashtable$HashtableEntry (id=26106660)
[21]= java.util.Hashtable$HashtableEntry (id=26106668)
--- This property ------------> key= "libraries"
value= "SR#012378,sstest,SSOBJ,IDATE"
[22]= java.util.Hashtable$HashtableEntry (id=26106676)
[23]= java.util.Hashtable$HashtableEntry (id=26106684)
[24]= java.util.Hashtable$HashtableEntry (id=26106692)
[25]= java.util.Hashtable$HashtableEntry (id=26106700)
[26]= java.util.Hashtable$HashtableEntry (id=26106708)
[27]= java.util.Hashtable$HashtableEntry (id=26106716)
[28]= java.util.Hashtable$HashtableEntry (id=26106724)
[29]= java.util.Hashtable$HashtableEntry (id=26106732)
[30]= java.util.Hashtable$HashtableEntry (id=26106740)
[31]= java.util.Hashtable$HashtableEntry (id=26106748)
[32]= java.util.Hashtable$HashtableEntry (id=26106756)
[33]= java.util.Hashtable$HashtableEntry (id=26106764)
[34]= java.util.Hashtable$HashtableEntry (id=26106772)
[35]= java.util.Hashtable$HashtableEntry (id=26106780)
[36]= java.util.Hashtable$HashtableEntry (id=26106788)
[37]= java.util.Hashtable$HashtableEntry (id=26106796)
[38]= java.util.Hashtable$HashtableEntry (id=26106804)
[39]= java.util.Hashtable$HashtableEntry (id=26106812)
[40]= java.util.Hashtable$HashtableEntry (id=26106820)
[41]= java.util.Hashtable$HashtableEntry (id=26106828)
[42]= java.util.Hashtable$HashtableEntry (id=26106836)
[43]= java.util.Hashtable$HashtableEntry (id=26106844)
[44]= java.util.Hashtable$HashtableEntry (id=26106852)
[45]= java.util.Hashtable$HashtableEntry (id=26106860)
[46]= java.util.Hashtable$HashtableEntry (id=26106868)
[47]= java.util.Hashtable$HashtableEntry (id=26106876)
[48]= java.util.Hashtable$HashtableEntry (id=26106884)
[49]= java.util.Hashtable$HashtableEntry (id=26106892)
[50]= java.util.Hashtable$HashtableEntry (id=26106900)
[51]= java.util.Hashtable$HashtableEntry (id=26106908)
[52]= java.util.Hashtable$HashtableEntry (id=26106916)
[53]= java.util.Hashtable$HashtableEntry (id=26106924)
[54]= java.util.Hashtable$HashtableEntry (id=26106932)
[55]= java.util.Hashtable$HashtableEntry (id=26106940)
[56]= java.util.Hashtable$HashtableEntry (id=26106948)
[57]= java.util.Hashtable$HashtableEntry (id=26106956)
[58]= java.util.Hashtable$HashtableEntry (id=26106964)
[59]= java.util.Hashtable$HashtableEntry (id=26106972)
[60]= java.util.Hashtable$HashtableEntry (id=26106980)
[61]= java.util.Hashtable$HashtableEntry (id=26106988)
[62]= java.util.Hashtable$HashtableEntry (id=26106996)
[63]= java.util.Hashtable$HashtableEntry (id=26107004)
[64]= java.util.Hashtable$HashtableEntry (id=26107012)
[65]= java.util.Hashtable$HashtableEntry (id=26107020)
[66]= java.util.Hashtable$HashtableEntry (id=26107028)
[67]= java.util.Hashtable$HashtableEntry (id=26107036)
[68]= java.util.Hashtable$HashtableEntry (id=26107044)
[69]= java.util.Hashtable$HashtableEntry (id=26107052)
[70]= java.util.Hashtable$HashtableEntry (id=26107060)
[71]= java.util.Hashtable$HashtableEntry (id=26107068)
[72]= java.util.Hashtable$HashtableEntry (id=26107076)
[73]= java.util.Hashtable$HashtableEntry (id=26107084)
[74]= java.util.Hashtable$HashtableEntry (id=26107092)
dataStoreHelper= com.ibm.websphere.rsadapter.DB2AS400DataStoreHelper (id=26105860)
defaultConnectionManager= com.ibm.ws.rsadapter.spi.WSDefaultConnectionManagerImpl (id=26106348)
description= null
detectedMultithreadedAccess= false
detectMultithreadedAccess= false
disableBackendIdchecking= false
disableWASConnectionPooling= false
e= com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl$Equals (id=26106356)
fatalErrorCount= 0
hashCode= 182972056
internalHelper= com.ibm.ws.rsadapter.spi.InternalDB2AS400ToolboxDataStoreHelper (id=26106260)
jmsOnePhaseOptimization= false
jndiName= "jdbc/safway"
loggingEnabled= false
logWriter= null
pmi= com.ibm.ws.pmi.server.modules.J2CModule (id=26105892)
preTestSQLString= "SELECT 1 FROM TABLE1"
propertyListeners= null
reauthEnabled= false
resetConnectionByBackendDatabase= false
resourceAdapter= com.ibm.ws.rsadapter.spi.WSResourceAdapterImpl (id=26106380)
statementCacheSize= 10
transactionBranchesLooselyCoupled= false
validateAfterConnectionError= true
reference= null
supportIsolvlSwitching= false
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!