Now that you have basic ADFbc ready for your service layer, it is very important to be able to test them. JDeveloper provides a very easy way to test your business layer.
There is AM Tester that you can invoke by just right click on the AM and that will let you browse, cretae, update and delete data for all VOs included in the AM.
Follow these steps to test the HumanResourceAM cretaed earlier.
- Right click on HumanResourceAM in JDeveloper and select Run.
- Click on Connect. It will use the DB connection that you used when generate ADFbc.
- This will show Business Components browser for the AM.
- Double click on Locations1 and it will show data from Locations table in a form.
- Now click on Department2. This will show you all Departments with LOC = NEW YORK because that is your current location row. Go to Location tab and use Blue ">" icon to move to next row. Now come back to Department2 tab and see that rows shown for Dept table are changed to show Departments with LOC = DALLAS. This shows you how automatic master-child works.
- Similarly you can browse Deparment to Employee master child and other VOs.
- Now click green "+" icon in Locatin tab. This allows you to create a new row for Location table. Enter values for LOC = SFO and LName = San Francisco attributes.
- Now go to Department2 tab. Notice there are no rows show as this is new location.
- Click "+" green icon to create new department. Notice that LOC attribute is automatically populated with SFO because this deparment is created via view link.
- Populate other fields and click on Green Arrow icon. This will commit all the changes to the DB.
- Query Employee1 and enter comm = 100 and tab. Click on Green Arrow icon. This will commit all the changes to the DB.
- Use Blue ">" icon to go to some other row. Click on Red "x" icon to delete current row. Click on Green Arrow icon. This will commit all the changes to the DB.
- Close the AM tester and Re-run and verify all the changes you have made.
Comments
I have created new ADF page in Jdeveloper 11g. I have done the steps which are mentioned in the OTN ADF tutorial. when i am running the page, i am getting blank page, In jdeveloper console its throwing the below exception. can u pls help me.
HTTP
BEA- 101017
weblogic .servlet.intern al.WebAppServle tContext@beaed3 - appName: 'BrowseEditApp' , name: 'BrowseEditApp- ViewController- context-root', context-path: '/BrowseEditApp -ViewController -context-root', spec-version: '2.5', request: weblogic.servle t.internal.Serv letRequestImpl@ d5c42f[
GET /BrowseEditApp- ViewController- context-root/fa ces/adf.task-fl ow?adf.tfId=ord ers-flow&adf.tf Doc=/WEB-INF/or ders-flow.xml HTTP/1.1
Accept : */*
Accept-Lang uage: en-us
UA-CPU: x86
Accept-Enco ding: gzip, deflate
User-Ag ent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
Connection : Keep-Alive
Cook ie: JSESSIONID=S3gT JQ6T4dHG37fjc9Z 5bGClTmRjxGtpJr L7rWpQyh6qFmZJZ yld!1341130353
Root cause of ServletExceptio n.
java.lang.Nu llPointerExcept ion
at oracle.adfinter nal.view.faces. context.RichPha seListener.afte rPhase(RichPhas eListener.java: 336)
at oracle.adfinter nal.view.faces. lifecycle.Lifec ycleImpl._execu tePhase(Lifecyc leImpl.java:354 )
at oracle.adfinter nal.view.faces. lifecycle.Lifec ycleImpl.render (LifecycleImpl. java:203)
at javax.faces.web app.FacesServle t.service(Faces Servlet.java:26 6)
at weblogic.servle t.internal.Stub SecurityHelper$ ServletServiceA ction.run(StubS ecurityHelper.j ava:227)
Trunca ted. see log file for complete stacktrace
i am getting this error when i am running the AM in ADF.
(oracle.jb o.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLExc eption, msg=ORA-01882: timezone region not found
Can u pls suggest.
Venka t
You can change connection by Application Resources : Connections : Database : Right click on the DB Connection and select Properties.
Cli ck "Test Connection" once you make changes to make sure it works.
Sure, will post an article on that tomorrow.
Here you go - http://apps2fusion.com/at/68-fusion/374-how-to-test-client-method-in-adfbc-tester
Please Help Me.
Regards,
Dakshesh Patel
Все виды строительных услуг.
ПРОЕКТИРОВАНИЕ
СТРОИТЕЛЬСТВО ГАРАЖЕЙ
СТРОИТЕЛЬСТВО КРОВЕЛЬНЫЕ РАБОТЫ
ДИЗАЙН ВНУТРЕННИХ ПОМЕЩЕНИЙ
СТРОИТЕЛЬСТВО РЕМОНТ ОФИСОВ
web site
oline-project
ремонт квартир одесса цены
строительство каркасных домов одесса под ключ
кровельные работы в одессе цены
строительство домов одесса олх
Выполняем все виды строительных работ.
ДИЗАЙН ВИЗУАЛИЗАЦИЯ
ПРОЕКТИРОВАНИЕ ДОМОВ И КОТТЕДЖЕЙ
СТРОИТЕЛЬСТВО ТЕРРАСЫ
ДИЗАЙН ВНУТРЕННИХ ПОМЕЩЕНИЙ
ПРОЕКТИРОВАНИЕ
web project
site
строительство дома одесса цена
строительство дома одесса форум
строительство домов в одессе
строительство дома одесса цена
Выполняем все виды строительных работ.
ДИЗАЙН ВИЗУАЛИЗАЦИЯ
ФАСАДЫ ЗДАНИЙ
СТРОИТЕЛЬСТВО РЕМОНТ И ОТДЕЛКА
СТРОИТЕЛЬСТВО ГАРАЖЕЙ
СТРОИТЕЛЬСТВО ДОМОВ
project
web project
ремонт квартир в одессе недорого
ремонт квартиры в рассрочку одесса
ремонт квартир одесса украина
цены на кровельные работы одесса
RSS feed for comments to this post