15.04.2009

Review at amazon: Processing XML Documents with Oracle Jdeveloper 11g

XML is a very important technology (see this posting), so where can you improve/refresh your knowledge about this technique?
First place: Ask google...
Ok. Many links - goto w3c.org - read about working groups - read about conferences - ???
Second try: Read a book.
Here my tip:


This book covers many XML related topics like XSD-validation, JAXP (DOM, SAX), XPath, XSLT, JAXB 2.0...
For each topic detailed examples are given and provided as download. You can use the examples within JDeveloper 11g, but if you do not like this IDE, Oracle's XDK is sufficient.
For a full description of this book look at packtpub or read my review at amazon.de (in german ;-)

09.04.2009

VirtualBox 2.2: Network configuration (Bridged, NAT, ...)

This week SUN released VirtualBox 2.2.



Many features were added (copied from www.virtualbox.org):
  • OVF (Open Virtualization Format) appliance import and export (see chapter 3.8, Importing and exporting virtual machines, User Manual page 55)
  • Host-only networking mode (see chapter 6.7, Host-only networking, User Manual page 88)
  • Hypervisor optimizations with significant performance gains for high context switching rates
  • Raised the memory limit for VMs on 64-bit hosts to 16GB
  • VT-x/AMD-V are enabled by default for newly created virtual machines
  • USB (OHCI & EHCI) is enabled by default for newly created virtual machines (Qt GUI only)
  • Experimental USB support for OpenSolaris hosts
  • Shared folders for Solaris and OpenSolaris guests
  • OpenGL 3D acceleration for Linux and Solaris guests (see chapter 4.8, Hardware 3D acceleration (OpenGL), User Manual page 70)
  • Added C API in addition to C++, Java, Python and Web Services
Very useful are the changes for network configuration. Before version 2.2 configuring the network was a complex task (e.g. ubuntu documentation).
Now you can enable the networking via GUI:



You can choose
  • Not attached (ok - this worked before)
  • NAT
  • Bridged Network
  • Internal Network
  • Host-only Network
After that the screwdriver leads to the following window:



After this window you have to start your guest system and the network should be up and running...

For installing VirtualBox read this posting. If you want to migrate a VMWare image to VirtualBox click here.

03.04.2009

The lost (collaxa) BPEL-Tutorials: 106.ParallelFlows

This tutorials shows, how to use the parallel flow with Oracle's BPEL PM.
The process looks like this:



First you have to set up everything (see this posting) and change these property files:

/opt/oracle/product/10.1.3.1/OracleAS_1/bpel/samples/tutorials/106.ParallelFlows/build.properties
/opt/oracle/product/10.1.3.1/OracleAS_1/bpel/samples/utils/AsyncLoanService/UnitedLoan/build.properties
/opt/oracle/product/10.1.3.1/OracleAS_1/bpel/samples/utils/AsyncLoanService/AmericanLoan/build.properties


(at least username, passwort and port)
Then use the following commands to deploy everything:


/opt/oracle/product/10.1.3.1/OracleAS_1/bpel/bin/devprompt.sh

bash-3.00$ /opt/oracle/product/10.1.3.1/OracleAS_1/ant/bin/ant
...
BUILD SUCCESSFUL
Total time: 4 seconds


To see the example running, go to the BPELConsole and open the FlowSample process and initiate it with the following XML Source:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body xmlns:ns1="http://www.autoloan.com/ns/autoloan">
<loanApplication xmlns="http://www.autoloan.com/ns/autoloan">
<SSN>987654321</SSN>
<email>ganga.sah@oracle.com</email>
<customerName>Ganga Sah</customerName>
<loanAmount>25000.00</loanAmount>
<carModel>Honda Acura</carModel>
<carYear>2004</carYear>
<creditRating>750</creditRating>
</loanApplication>
</soap:Body>
</soap:Envelope>


Then the audit trails will show the following:





You can see at the timestamps, that both sequences are really running in parallel. But note that this does not already happen:

http://forums.oracle.com/forums/thread.jspa?messageID=3297029&#3297029
(running synchronous processes in parallel)
or
http://forums.oracle.com/forums/thread.jspa?messageID=2246512&#2246512
(variables in parallel flows)

You can find all bpel tutorials on this blog via this link.