Thursday, October 13, 2011
Change the port number for Oracle XE
http://daust.blogspot.com/2006/01/xe-changing-default-http-port.html
Wednesday, September 21, 2011
Two scenarios of invoking asychronous service from BPEL
The first scenario can be implemented by using the activity invoke, receive wrapped in the scope with which onAlarm is attached.
The second scenario is implemented using pick activity. One branch of pick is onMessage to wait for the callback and another branch is onAlarm.
Thursday, September 15, 2011
Using MDS in JDeveloper
For example, in the following component.xml the WSDL's location is defined as:
oramds:/apps/SOInterfaces-2.3.9.8/BSC/OrderAndActivation/Activation/ServiceProvisioning-v1.wsdl.
When building the SOA application JDeveloper will look up the MDS from adf-config.xml in order to load the WSDL. From adf-config.xml we know that for /apps/SOInterfaces-2.3.9.8 it uses the metadata-store-usage is mstore-usage-2 which is a database-based MDS. Its database details is defined in metadata-store-usage with id="mstore-usage-2".
Wednesday, September 7, 2011
Persistent Context vs. Entity Manager vs. Transaction
- These definitions are from the link: http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/architecture.html
The
EntityManager API is used to access a database in a particular unit of work. It is used to create and remove persistent entity instances, to find entities by their primary key identity, and to query over all entities. This interface is similar to the Session in Hibernate.- Persistence context
- A persistence context is a set of entity instances in which for any persistent entity identity there is a unique entity instance. Within the persistence context, the entity instances and their lifecycle is managed by a particular entity manager. The scope of this context can either be the transaction, or an extended unit of work."
Thursday, August 25, 2011
Manually copy plan.xml into other servers in the cluster
It is strange that you need to do so. But it is true. In Oracle SOA 11g cluster environment when you update the plan.xml you need to copy this plan.xml to other servers in the same cluster before you can activate the changes. No doing so will lead the error that complains the plan.xml file is not found.
For example, when you create a new outbound connection pool for JMSAdapter in the one cluster which has 3 servers: server01_01, server01_02 and server01_03 the plan.xml is created when you do so via EM on server01_01. You need to manually copy this plan.xml to the same folder on server01_02 and server01_03 before you activate the changes. Otherwise you will get the error like the below:
java.io.FileNotFoundException: /opt/oracle/Middleware/Oracle_SOA1/soa/connectors/JMSPlan/Plan.xml (No such file or directory).