Wednesday, June 29, 2011

Service enabled ADF

So I am trying out ADF service enabled EO functionality and also trying to invoke BC remotely.

The service enabled EO functionality just works for the simple test case I was trying (instead of creating from a table you just choose the service interface radio item) .

I am trying to invoke the BC remotely and the create and custom methods work but I am struggling with the search will update when I have some progress

Sunday, June 12, 2011

Maven and Jdeveloper

Ok so we have decided to install Jdeveloper 11.1.2 and use the for our soa projects. With the 11.1.2 has maven support so I am busy mavenizing our ADF projects will let you know anything I have found that may be a problem.

Abandoned maven migration ojdeploy although slower builds the apps as they are built in jdev once again proving that it is the tool for the job for now.

Maven in jdev is not solid yet need to change poms manually and it looses your excludes if you use the dialogs just not good.

Friday, June 10, 2011

JDeveloper 11.1.2

Its such a shame such a good upgrade but I wont be able to use it. Why o why is there no soa suite stuff for this release bummer...

Ok so I have upgraded any way using for soa stuff and 11.1.2. for adf stuff, we shall see how this turns out.

Seems much snappier.

So far so good, a couple of hassles though. Occasionally when you delete a directory your adf view removes all directories (not from disk)   from your view - VERY annoying but nothing critical.

Maven integration is nice but still needs a bit of work. Css editor is very very nice.

Overall this is a must upgrade just due to the performance increases in dev.

Monday, June 6, 2011

Adding business rules programmatically

First add a method validator to your EO.
Use the method super.registerRowException to add the error.

    public boolean validateEntityRules() {
      //call to OBR 
      Collection results = RulesUtil.validateEntity(this, getClass().getName());

      if (results == null || results.isEmpty()) {
          return true;
      } else {
          for (Object result : results) {
            super.registerRowException(new JboException((String) result));
          return false;    

Friday, June 3, 2011

Stupid ant weblogic start script

build properties:

<exec executable="${wl.command.start}"/>
sudo -u weblogic /opt/weblogic/oracle/domains/mydomain/bin/
echo ..................... STARTING WL
cd /opt/weblogic/oracle/domains/mydomain/bin
nohup ./ > /dev/null 2>&1 &
cd -

Thursday, June 2, 2011

Jdeveloper login module

Had a problem with the automatic migration of jps roles when weblogic started up.
The result was a 401 Not Authorised not matter what we did.

Migration of application policy failed. Reason: java.lang.reflect.InvocationTargetException.

Solution: Remove any mention of anonymous-role from the jazn-data.xml.

adf weblogic verbose logging



-Djbo.debugoutput=console -Djbo.jdbc.trace=true

Wednesday, June 1, 2011

Random notes from SOA suite examples help (XE, windows 64 bit)

  rcu fails on prevalidation of soa mds.
  alter system set processes=500 scope=spfile; and then restart

wsdl errors in compilebuildAll
run importCommonServiceArtifactsIntoMds before compilebuildAll


  restart soa suite with 2Gb heap and 768 permgen (change in the setSOADomainEnv.cmd)

There was an error deploying the composite on AdminServer: Deployment Failed: oracle.integration.platform.blocks.folder.FolderNotFoundException: Partition soaFusionOrderDemo does not exist. Make sure the partition was created and exists.: Partition soaFusionOrderDemo does not exist. Make sure the partition was created and exists..

Before running ant scripts : Create soa partition as in properties file

New oreder Event  instance not showing up in em view.

1.In Jdev goto StoreServiceAM and select Configurations.
2.Select StoreServiceAMLocalWeb and edit
3 find and set fod.application.issoaenabled property to true (properties tab near the start)