Kris Rice blogged about the new version of the APEX Listener here and here. The APEX Listener will become the preferred way of connecting to APEX (before Apache and the Embedded PL/SQL Gateway). If you are not familiar with the APEX Listener, you find more information here.
To install the APEX Listener EA2 (0.10.56.22.08) on my Oracle Linux VM I followed these steps:
- Download Java SE JDK (before I used the JRE, but Kris told me the debugger doesn't work with that as you need the JDK for that part of the code)
As a side note; now that Oracle and Sun are together, that website already has the "Oracle look". I wasn't expecting that so fast, but it's nice. The theme looks very similar to the APEX 4.0 Theme 1.
- Become root: su
- Go to the path you want java to install: cd /usr/java
- Copy the file you downloaded in that directory
- Change the permission of the file you downloaded to be executable: chmod a+x jdk-6u18-linux-i586-rpm.bin
- Start the installation process: ./jdk-6u18-linux-i586-rpm.bin
If that is done you should see a screen like this and a directory jdk1.6.0_18 should exist:
- You find a complete guide of installing Java here.
- Next you need to download and install the APEX Listener
- The APEX Listener needs a webserver, depending the webserver you need to follow different steps. You find a complete guide how to install the webserver and the APEX Listener here.
- I already had Apache Tomcat installed on my VM, so I went with that and just followed the installation notes.
- Basically copy a war file to the webserver and change the config file
- I was interested to test the new Excel upload feature, to get to work I added following line to the config file (apache-tomcat/temp/apex/apex-config.xml)
- Finally run APEX via the port of the Listener and create a new page with a File Browse item, a button and a report that queries the collection.
- That's it!
select *P1_EXCEL_FILE is the item name of the File Browse Item. The other thing to remember is to call your button XLS2COLLECTION or have that as the request value.
where collection_name = 'P1_EXCEL_FILE'