Create Customization File in OSB 10g with WLST script
Is it possible to create a customization file the same as created from the OSB console with a WLST script?
Can someone show me the syntax to do this? I need to turn this request around quickly and don't have time for a lot of trial and error.
Edited by: DoubleT on Sep 29, 2009 6:44 PM
I resolved my problem. The solution is follow (Java language):
Set<Ref> domainRefs = alsbConfMB.getRefs(businessServiceQuery);
EnvValueQuery evquery = new EnvValueQuery(null, // search across all
// resource types
envValueTypesToSearch, domainRefs, // search only in found refs.
false, // Search all resources
null, // the string we want to replace
false // not a complete match of URI.
Collection<QualifiedEnvValue> founds = alsbConfMB.findEnvValues(evquery);
List<QualifiedEnvValue> qualifiedEnvValueList = new ArrayList<QualifiedEnvValue>();
for (QualifiedEnvValue qev : founds) {
if (qev.getEnvValueType().equals(EnvValueTypes.SERVICE_URI)) {
qualifiedEnvValueList.add(qev);
EnvValueCustomization projectEnvValsCustomization = new EnvValueCustomization("Customizations File for businss services ", qualifiedEnvValueList);
List<Customization> customizationList = new ArrayList<Customization>();
customizationList.add(projectEnvValsCustomization);
OutputStream fileOutputStream = new FileOutputStream("testCustomization.xml");
Customization.toXML(customizationList, fileOutputStream);
fileOutputStream.close();
Similar Messages
-
Create customization file via WLST
Hi
I have followed oracle documentation. The customization file getting created is entirely different from what is getting generated using SB console. The generated custiomization file is
<?xml version="1.0" encoding="UTF-8"?>
<cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes">
<cus:customization xsi:type="cus:FindAndReplaceCustomizationType">
<cus:description>Set the right Work Manager</cus:description>
<cus:query>
<xt:envValueTypes>Work Manager</xt:envValueTypes>
<xt:refsToSearch xsi:type="xt:LocationRefType">
<xt:type>Project</xt:type>
<xt:path>Project_Name</xt:path>
</xt:refsToSearch>
<xt:includeOnlyModifiedResources>false</xt:includeOnlyModifiedResources>
<xt:searchString xsi:nil="true"/>
<xt:isCompleteMatch>false</xt:isCompleteMatch>
</cus:query>
<cus:replacement/>
</cus:customization>
</cus:Customizations>
How to create customization file exacly same as the one created from the SB consoleI resolved my problem. The solution is follow (Java language):
Set<Ref> domainRefs = alsbConfMB.getRefs(businessServiceQuery);
EnvValueQuery evquery = new EnvValueQuery(null, // search across all
// resource types
envValueTypesToSearch, domainRefs, // search only in found refs.
false, // Search all resources
null, // the string we want to replace
false // not a complete match of URI.
Collection<QualifiedEnvValue> founds = alsbConfMB.findEnvValues(evquery);
List<QualifiedEnvValue> qualifiedEnvValueList = new ArrayList<QualifiedEnvValue>();
for (QualifiedEnvValue qev : founds) {
if (qev.getEnvValueType().equals(EnvValueTypes.SERVICE_URI)) {
qualifiedEnvValueList.add(qev);
EnvValueCustomization projectEnvValsCustomization = new EnvValueCustomization("Customizations File for businss services ", qualifiedEnvValueList);
List<Customization> customizationList = new ArrayList<Customization>();
customizationList.add(projectEnvValsCustomization);
OutputStream fileOutputStream = new FileOutputStream("testCustomization.xml");
Customization.toXML(customizationList, fileOutputStream);
fileOutputStream.close(); -
How to undo activated OSB session with WLST?
Does anybody know if there´s a chance to undo an activated OSB session with WLST?
There´s a way to undo an UNactivated session but not an activated one (like the undo session in /sbconsole).
Thanks in advance.
Edited by: 956378 on 31-ago-2012 12:48"zone copy active-zoneset full-zoneset vsan 2" is the correct command. It will overwrite the full zoneset (identical) and ready to edit.
-
Addning new properties in customization file of OSB
Hi,
We have option to find and replace few properties of proxy and business services in OSB through customization files.
Our requirement is to have few additional properties like client certs, https enabling which are not available when a customization file is created OOTB.
Any pointers on customizing customization file will be more helpful.
Thanks,
SowmyaHi,
the structure is not very interesting because I'm flexible :-)
But for excample like this:
<MyData>
<val1>abc</val1>
<val2>def</val2>
</MyData>
<MyData>
<val1>uvw</val1>
<val2>xyz</val2>
</MyData>
To write such a file is not really the problem. But I don't want to parse the XML structure with String command.
Thanks,
Armin -
Create Temporary File in Reports 10g?
How do you control where the Reports Server (10g) running on the App Server trys to create a temporary file when using the srw.create_temporary_file function?
I resolved my problem. The solution is follow (Java language):
Set<Ref> domainRefs = alsbConfMB.getRefs(businessServiceQuery);
EnvValueQuery evquery = new EnvValueQuery(null, // search across all
// resource types
envValueTypesToSearch, domainRefs, // search only in found refs.
false, // Search all resources
null, // the string we want to replace
false // not a complete match of URI.
Collection<QualifiedEnvValue> founds = alsbConfMB.findEnvValues(evquery);
List<QualifiedEnvValue> qualifiedEnvValueList = new ArrayList<QualifiedEnvValue>();
for (QualifiedEnvValue qev : founds) {
if (qev.getEnvValueType().equals(EnvValueTypes.SERVICE_URI)) {
qualifiedEnvValueList.add(qev);
EnvValueCustomization projectEnvValsCustomization = new EnvValueCustomization("Customizations File for businss services ", qualifiedEnvValueList);
List<Customization> customizationList = new ArrayList<Customization>();
customizationList.add(projectEnvValsCustomization);
OutputStream fileOutputStream = new FileOutputStream("testCustomization.xml");
Customization.toXML(customizationList, fileOutputStream);
fileOutputStream.close(); -
How to Create Excel File in Background processing with different colors
HI All
I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
Initially i completed above requirement by using HTML type of document with attachment type 'ALI' & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
I am thankfull to everybody who will help me.
Regards
LokeshLokesh,
Iam also trying to populate my text file with colors as an attachment . If you know this please let me know. -
How to create .ear file in JDeveloper 10g
Hi, I am new to Jdeveloper. I am using JDeveloper 10g. I have created one project abc.jws under which there are five .jpr folders(DTO.jpr,persistence.jpr,service.jpr,util.jpr,ViewController.jpr). I want to create .ear file for the whole project so that it can be directly put in the production environment. When I right click on the abc.jws and select New, the EAR option under deployment profiles is disabled. I would highly appreciate if someone can help me on this.
Thanks.Hi Rexy,
See if the steps given in [this link|http://download.oracle.com/otndocs/tech/ias/portal/files/RG/OBE/deployToAppServer/lesson_Deployment.htm#t3s3] helps
Sireesha -
JRE7 throws exception Can't create cache file but work fine with JRE6
I am using J-free chart for rendering charts. My application is work fine with JRE6 but while using JRE7 i am getting following exception
Caused by: javax.imageio.IIOException: Can't create cache file!
at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
... 18 more
Caused by: java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(Unknown Source)
at javax.imageio.stream.FileCacheImageOutputStream.<init>(Unknown Source)
at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(Unknown Source)
... 19 moreI was not able to reproduce this with Java 7u3 (32bit) on a Windows 7 (32bit).
What specific version of Java were you using at the time of error?
- ShakR -
Hi!
I need help, please... I would like to rename OSB resources (e.g. OSB project name, proxy service,...) with WLST.
Could anyone help me ho to do this?
I tried to navigate in WLST but I can't find the OSB resource (for example proxy service) which I wanted to rename. Where should I look for it?
And which WLST command do I have to execute?
As I know the commands in WLST are in session, so the changes activate at the same time, don't they?
Thanks for help in advance!
Regards,
ViktorCould someone please help me?
Thanks! -
Fail to create temp file in Oracle 10g on CentOS
My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
ERROR
ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
Informe de error:
Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
Linux-x86_64 Error: 28: No space left on device
Additional information: 3
+01119. 00000 - "error in creating database file '%s'"+
*Cause: Usually due to not having enough space on the device.+
*Action:+
Could you help me plz?
Thanx in advance993296 wrote:
My disk is full so I delete six temp files and create only one, but when I execute this SQL give me this error. I know i have more than 4GB free space but i don´t know what problem is happen.
ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m;
ERROR
ALTER TABLESPACE temp ADD TEMPFILE '/oracle/oradata/ral/temp01.dbf' SIZE 512m AUTOEXTEND ON NEXT 250m MAXSIZE 2048m
Informe de error:
Error SQL: ORA-01119: error create database file '/oracle/oradata/ral/temp01.dbf'
ORA-27044: no se ha podido escribir el bloque de cabecera del archivo
Linux-x86_64 Error: 28: No space left on device
Additional information: 3
+01119. 00000 - "error in creating database file '%s'"+
*Cause: Usually due to not having enough space on the device.+
*Action:+
Could you help me plz?
Thanx in advanceHi,
please check space under /oracle/oradata/ral filesystem
Linux-x86_64 Error: 28: No space left on device
Regards -
Does and how osb 11g support WLST scripts
Does 11g support WLST scripts to import and export OSB configuration?
Here are the old ones (as I see, dated 03.03.2009). For old 10.3 they worked perfectly.
http://www.oracle.com/technology/products/soa/service-bus/collateral/osbsamples.html
In new release names of few libraries changed (e.g. from com.bea.common.configfwk_1.2.1.0.jar to com.bea.common.configfwk_1.3.0.0.jar), so I simply changed the names in my scripts to use them for 11g. It didn't work. Old scripts (with old libs) don't work for 11g either.
So my question is does OSB still support this kind of deploying, and how can I do that?
Thanks in advance.@ frf
Is it working for you ? The scripts are running fine for me but the values are not geting changed.
This is my custom xml which is created
<?xml version="1.0" encoding="UTF-8"?>
<cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes">
<cus:customization xsi:type="cus:FindAndReplaceCustomizationType">
<cus:description>Update to the correct server and port number</cus:description>
<cus:query>
<xt:refsToSearch xsi:type="xt:LocationRefType">
<xt:type>Project</xt:type>
<xt:path>Test OSB Project</xt:path>
</xt:refsToSearch>
<xt:includeOnlyModifiedResources>false</xt:includeOnlyModifiedResources>
<xt:searchString>http://localhost:7001/business/ValidateCoverage/ValidateCoverageService</xt:searchString>
<xt:isCompleteMatch>false</xt:isCompleteMatch>
</cus:query>
<cus:replacement>http://192.20.51.150:7001/business/ValidateCoverage/ValidateCoverageService</cus:replacement>
</cus:customization>
</cus:Customizations>
But import.py is simply not replacing the values in the WSDL -
WTC Configuration with WLST script
Hi,
Can any one help me to write WLST script to create WTC configuration.
Regards,
Siva Prasad ReddyUse the MBean reference manual to find the appropriate configuration mbeans. Use the WLST reference manual to find the appropriate command syntax
- connect
- edit
- startEdit
at domain level
wserver = cmo.createWTCServer("wtcname")
then either cd into the created WTCServer or use the returned wserver
then call methods like createWTCLocalTuxDom and createWTCRemoteTuxDom as needed.
cd into those subdirectories as needed.
you may also want to turn on WLST console recording and perform the steps in the WLS console. a WLST script will be generated that you can then further customize. -
Problem in Creating .wsdl file and mapping.xml with ant
hi
i am created my .wsdl file and mapping.xml file with wscompile tool but when i run this by ant tool it show a problem.
the command runs on command prompt but when run throught ant file it shows a following error :-
Execute failed: java.io.IOException: CreateProces: wscompile -define -mapping build\classes\META-INF\mapping.xml -d . -nd build\.................and so on
so if anybody have any idea then plz help me asap
thanxThe following Ant snippet is the way I've defined my wscompile task. I'm creating a web application and it looks like yours might be an EJB endpoint, but you can adjust where necessary:
<taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">
<classpath refid="compile.classpath" />
</taskdef>
<target name="init">
<echo message="-------- ${appname} --------" />
</target>
<!-- This target compiles the server components using an existing WSDL as the driving document.
The configuration file must use the <wsdl> element giving the location (local file system
or URL) of the WSDL document.
Note: the fork argument is needed to over come a bug when using the mapping argument. See
http://forum.java.sun.com/thread.jspa?threadID=592994&tstart=0
-->
<target name="generate-server-from-WSDL" depends="init">
<wscompile fork="yes"
keep="true"
base="${basedir}/WebContent/WEB-INF/classes"
import="true"
features="wsi"
xPrintStackTrace="true"
verbose="true"
mapping="${basedir}/WebContent/WEB-INF/jaxrpc-mapping.xml"
sourcebase="${basedir}/src"
config="${config.server.doclit.file}">
<classpath>
<path refid="compile.classpath" />
</classpath>
</wscompile>
</target>
<target name="compile-server-from-WSDL" depends="generate-server-from-WSDL">
<javac srcdir="${basedir}/src" destdir="${basedir}/WebContent/WEB-INF/classes" debug="${compile.debug}">
<classpath refid="compile.classpath" />
</javac>
</target>Just make sure that the named destination directories exist before you run the script.
If you'd like more details on the wscompile Ant task, I found the following pages invaluable:
https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html -
Is there a way to create a file other than mp4 with iMovie under Maverick
Since the installation of the last version of iMoviei I noticed that the creation of a sharing file is only in mp4 type. Is there a way to create, for ex a mov file??
Thanks for reply
Daniel GoyensIt doesn't seem like it.
If you share to iTunes you get an .m4v. Maybe you can open this in Quicktime and convert to .mov. -
Creating trace file in oracle 10g forms
hii there,
I have developed an application in oracle 10g. but it's too slow . Now i have to trace forms . How can trace oracle forms.
please send it in details as early as possible. I don't know about this trace file generation.
-----SachinHi,
To run SQL trace for a form :
a. Get to the point in the form where you want to turn trace on.
For example, if the problem occurs on the commit, wait until you are
ready to commit, THEN turn trace on.
b. Turn tracing on. In GUI versions: Help - Tools - Trace, enable tracing.
c. Execute the steps you want to trace.
d. Turn tracing off. In GUI versions: Help - Tools - Trace, disable tracing.
The trace file will be written to the subdirectory specified in the
'user_dump_dest' parameter in the INIT.ORA file.
Maybe you are looking for
-
I need step by step instructions as my 10 year old knows more than I do!
-
Hi, I am using an ALV Grid with the first column of my output as a check box. One of the user requirements is to if the check box is ticked, then that row should be uneditable by the user. If the checkbox is unticked, then the row should be available
-
OrionRemoteException: Second thread call to stateful session bean
What happen for "com.evermind.server.rmi.OrionRemoteException: Second thread call to stateful session bean". I am using JSP/Servlet/EJB and OC4J. When user click the JSP page button to fast, sometimes the error will appear, and then the OC4J will sto
-
Is Safari 5.0.1 safe to download?
I got the Software Update alert a few weeks ago, but when I saw some of the horror stories on this discussion board, I was afraid to download it and do the update. Are the problems people are having few and far between, or are the problems with 5.0.1
-
Getting java.io.IOException when trying to run a report in BIP 11g
Hi everyone. I have deployed BIP 11g (11.1.1.6.0), with no errors, and everything worked fine. Suddenly, when I tried to execute a report (html output), I got following error: "java.io.IOException: Permission denied". I wonder if you can list me poss