Same modus operandi as in the previous post - except we now us the osbharvester directory.
I had to make some changes to the following files - setenv.bat and HarvesterSettings.xml
BTW. my SB install is part of the JDEV SOA Quickstart environment.
JDEV Quickstart is installed at D:\Work\envs\FMW12c\SOA\jdev
Now, I probably could have done the above more elegantly, but it's late...
I had to make some changes to the following files - setenv.bat and HarvesterSettings.xml
BTW. my SB install is part of the JDEV SOA Quickstart environment.
JDEV Quickstart is installed at D:\Work\envs\FMW12c\SOA\jdev
setenv.bat
@echo off
@rem Common Environment, including JAVA, ANT etc...
set MW_HOME=..\..\..\
call %MW_HOME%\oracle_common\common\bin\commEnv.cmd
echo %MW_HOME%
@rem OSB / ConfigJar Tool Home directories
@rem NiallC changed the following 3 entries
set OSB_HOME=D:\Work\envs\FMW12c\SOA\jdev\osb
set OER_HOME=%MW_HOME%oer
set HARVESTER_HOME=%OER_HOME%\tools\osbharvester
@rem end of NiallC changes
@rem System properties required by OSB
set OSB_OPTS=
set OSB_OPTS= %OSB_OPTS% -Dweblogic.home="%WL_HOME%/server"
set OSB_OPTS= %OSB_OPTS% -Dosb.home="%OSB_HOME%"
set OSB_OPTS= %OSB_OPTS% -Djava.util.logging.config.class=oracle.core.ojdl.logging.LoggingConfiguration
set OSB_OPTS= %OSB_OPTS% -Doracle.core.ojdl.logging.config.file="%HARVESTER_HOME%/logging.xml"
set JAVA_OPTS=%JAVA_OPTS% %OSB_OPTS%
set ANT_OPTS=%ANT_OPTS% %OSB_OPTS%
@rem classpath representing OSB
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%MW_HOME%\wlserver\server\lib\weblogic.jar
set CLASSPATH=%CLASSPATH%;%MW_HOME%\oracle_common\modules\internal\features\jrf_wlsFmw_oracle.jrf.wls.classpath_12.1.3.jar
@rem NiallC reset the next line
@rem set CLASSPATH=%CLASSPATH%;%MW_HOME%\soa\soa\modules\oracle.soa.common.adapters_11.1.1\oracle.soa.common.adapters.jar
set CLASSPATH=%CLASSPATH%;D:\Work\envs\FMW12c\SOA\jdev\soa\soa\modules\oracle.soa.common.adapters_11.1.1\oracle.soa.common.adapters.jar
set CLASSPATH=%CLASSPATH%;%OSB_HOME%\lib\servicebus.jar
@rem classpath for OER Harvester
set CLASSPATH=%CLASSPATH%;%HARVESTER_HOME%\client.harvester.jar
set CLASSPATH=%CLASSPATH%;%HARVESTER_HOME%\client.harvester-osb.jar
@rem ANT classpath
set LOCALCLASSPATH=%CLASSPATH%
Now, I probably could have done the above more elegantly, but it's late...
HarvesterSettings.xml
I run the cmd as follows -
D:\Work\envs\APICatalog\WLS\oer\tools\osbharvester>
osb-harvest -remote_url http://ncommisk-de.de.oracle.com:7101 -remote_username weblogic -remote_server_type OSB
I then check the result in OAC - here is my SB (REST) API
Here is the definition in em -
I now harvest another SB project -
Here are the APIS in OAC -
Here are the details of one of the services -
No comments:
Post a Comment