//AMIS Technology Blog » data source

Posts tagged data source

Vacatures bij AMIS services

WLST script to add DataSource and DBAdapter EIS Connection Factory

5

Creating a EIS ConnectionFactory in your Database Adapter can be done with the WebLogic Administration Console, but of course this is also “scriptable”. What I needed was a script that created a Data Source with EIS Connection factory bound to the specific datasource.

First I created a properties file, let’s call it DsCf.properties. Everything between <> should be replaced with your own values:

# Propertie file for creating datasource and EIS DB Adapter # Created by Michel Schildmeijer # Domain settings domainname="&lt;your WLS DOMAIN&gt;" adminurl=&lt;WLS HOST:Admin Port&gt; adminusername=weblogic adminpassword=&lt;passwd weblogic&gt; #datasource settings datasourcename=&lt;Name DataSource&gt; datasourcedatabasename=&lt;database&gt; datasourcetarget=&lt;targeted manaegd server&gt; datasourcefilename= datasourcename + '.xml' datasourcejndiname= 'jdbc/' + datasourcename datasourcedriverclass=oracle.jdbc.OracleDriver datasourceurl=jdbc:oracle:thin:@&lt;db host&gt;:1521:&lt;db sid&gt; datasourceusername=&lt;db user&gt; datasourcepassword=&lt;db user password datasourcetestquery=SQL SELECT * FROM DUAL #EIS Connection Factory settings connfactname=eis/DB/&lt;Connection factory More >
SIG Event

Some more details on ADF Placeholder Data Control (rebind component, master detail, load sample data from CSV file)

In a recent article I gave a brief introduction of the ADF 11g Placeholder Data Control – see: ADF 11g Placeholder Data Control – for off line demonstration of application and/or rapid UI prototyping without a need for a business service – and the value of using that type of Data Control for User Interface design/prototyping. I promised to take a closer look at same slightly more interesting aspects of this type of data control. How the data control can be created from a CSV file – both attributes and sample data-, how Placeholder Data Control Data Types can have a master details relationship and how an ADF Faces component, bound to a Placeholder Data Control can be rebound to another Data Control.  (more…)

Go to Top