When JDeveloper 11g is installed, once you test your application in default server engine in JDev, JDeveloper will create a new domain "Default Domian" and use the default weblogic server to test the applications developed.
The defaut administrator (weblogic) password for Weblogic Server is "weblogic1".
BTW, the default user and password is located in the boot.properties file under this folder: ../Application Data/JDeveloper/system11.1.1.1.33.53.92/DefaultDomain/servers/DefaultServer/security.
Monday, September 28, 2009
Monday, August 31, 2009
sounds path of Viewlet builder
Today i recorded sounds with slides in viewlet builder. After almost done, i found missing something in the first slide, which contains the audio as well.
Then i create a new slide with the modification inside. but i didn't wanna speak it again. So i tried to find out the one recorded in the original first slide and use that directly on my new slide.
After searching, the sounds were recorded with mp3 format and stored in the directory:
C:\Documents and Settings\<user>\Local Settings\Temp\qarbon\ViewletBuilder6 Professional_6191\documents\<viewlet_name>_qvp
Then i create a new slide with the modification inside. but i didn't wanna speak it again. So i tried to find out the one recorded in the original first slide and use that directly on my new slide.
After searching, the sounds were recorded with mp3 format and stored in the directory:
C:\Documents and Settings\<user>\Local Settings\Temp\qarbon\ViewletBuilder6 Professional_6191\documents\<viewlet_name>_qvp
Friday, August 28, 2009
Clear the cached data of popup component in ADF Faces
I'v developed a project in JDevelop 11g recently.
In this project, i popped up a dialog to upload the document into Oracle UCM with self-defined metadata set on the check in form.
Each time after i check in content once in that popup dialog, i reopened it up and found the previous input were still kept there.
How to solve this problem? After going through all the properties of popup component, i found there is a property called contentDelivery, which its default value is lazy.
Here are the explanation of values of this property :
For example:
For more info, please refer to the following document:
http://www.oracle.com/technology/products/adf/adffaces/11/doc/adf-richclient-api/tagdoc/af_popup.html
In this project, i popped up a dialog to upload the document into Oracle UCM with self-defined metadata set on the check in form.
Each time after i check in content once in that popup dialog, i reopened it up and found the previous input were still kept there.
How to solve this problem? After going through all the properties of popup component, i found there is a property called contentDelivery, which its default value is lazy.
Here are the explanation of values of this property :
- lazy -- the default strategy described above. The content isn't loaded until you show the popup once, but then is cached.
- immediate -- load the content onto the page immediately, so it displays as rapidly as possible. Use this for popups that are certain to be used by all users every time they use this page.
- lazyUncached -- the content isn't loaded until you show the popup, and then is re-fetched every subsequent time you show the popup. Use this strategy if the popup shows data that can become stale.
For example:
<af:popup id="noteWindow" contentdelivery="lazyUncached">
...
</af:popup>
For more info, please refer to the following document:
http://www.oracle.com/technology/products/adf/adffaces/11/doc/adf-richclient-api/tagdoc/af_popup.html
Tuesday, July 7, 2009
Pass parameters to the timer in C#
These days I am using C# to develop the timer component running as a windows service, which runs automatically in a specific interval.
In C#, there are 3 kinds of timer type definitions:
1. System.Windows.Forms.Timer
2. System.Threading.Timer
3. System.Timers.Timer
In my project, I choose to use the third one: System.Timers.Timer
Here is the sample usage of this kind of timer:
System.Timers.Timer timer = new System.Timers.Timer();
timer. Interval = 10000; // set the interval as 10000 ms
timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // set the event to execute
timer.AutoReset = true; // false: only execute once
timer.Enabled = true; // to decide if execute the event of timer specified
…
public void timer_Elapsed(object sender, EventArgs e)
{
…
}
From the above sample, we know it is quite easy to use it.
Next, I have a problem if I need pass some parameters to be used in the timer event defined above: timer_Elapsed(…). The two input parameters of this event interface are fixed, you can’t add more in.
There is a tricky to achieve it. Since we can’t add more input parameters in this event, we can set the parameters into the unused property of that sender object. This way is simple, but not good.
After researching, i find a better way to deal with it: creating a new timer to extend the system timer , and then defining the additional parameters inside this new timer.
Here are the sample codes:
// define a class to extend the timer,
// then define those additional parameters to be used in the event.
// for example: add one more parameter: param1.
namespace XXX
{
public class TaskTimer : Timer
{
private string param1;
public string Param1
{
get
{
return param1;
}
set
{
param1= value;
}
}
public TaskTimer() : base()
{
}
}
}
// usage of this timer
using XXX;
…
TaskTimer timer = new TaskTimer();
timer.Interval = 10000;
…
// the event definition
public void timer_Elapsed(object sender, EventArgs e)
{
String param1 = (TaskTimer) sender).Param1;
…
}
In C#, there are 3 kinds of timer type definitions:
1. System.Windows.Forms.Timer
2. System.Threading.Timer
3. System.Timers.Timer
In my project, I choose to use the third one: System.Timers.Timer
Here is the sample usage of this kind of timer:
System.Timers.Timer timer = new System.Timers.Timer();
timer. Interval = 10000; // set the interval as 10000 ms
timer.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_Elapsed); // set the event to execute
timer.AutoReset = true; // false: only execute once
timer.Enabled = true; // to decide if execute the event of timer specified
…
public void timer_Elapsed(object sender, EventArgs e)
{
…
}
From the above sample, we know it is quite easy to use it.
Next, I have a problem if I need pass some parameters to be used in the timer event defined above: timer_Elapsed(…). The two input parameters of this event interface are fixed, you can’t add more in.
There is a tricky to achieve it. Since we can’t add more input parameters in this event, we can set the parameters into the unused property of that sender object. This way is simple, but not good.
After researching, i find a better way to deal with it: creating a new timer to extend the system timer , and then defining the additional parameters inside this new timer.
Here are the sample codes:
// define a class to extend the timer,
// then define those additional parameters to be used in the event.
// for example: add one more parameter: param1.
namespace XXX
{
public class TaskTimer : Timer
{
private string param1;
public string Param1
{
get
{
return param1;
}
set
{
param1= value;
}
}
public TaskTimer() : base()
{
}
}
}
// usage of this timer
using XXX;
…
TaskTimer timer = new TaskTimer();
timer.Interval = 10000;
…
// the event definition
public void timer_Elapsed(object sender, EventArgs e)
{
String param1 = (TaskTimer) sender).Param1;
…
}
Thursday, June 11, 2009
RIDC - New Connector to Oracle UCM
As required sometime, you might need to access and interact with Oracle UCM externally.
Originally, Oracle UCM exposes two kinds of interfaces to be used:
1. SOAP Web Service
2. Content Integration Suite (CIS)
Remote Intradoc Client (RIDC) is new in latest release.
In contrast with both CIS and SOAP, the RIDC connector is very lightweight and simple to use. There's no WSDL or J2EE bloat at all; RIDC is just a "Plain Old Java Object" wrapper around UCM web services... so it's very easy to embed in a Java application.
To get started, download the most recent version of the Content Integration Suite from Oracle. This ZIP file contains two folders: one for the new RIDC connector, and one for the standard CIS connector. I'd suggest you take a look at the "ridc-developer-guide.pdf" before you go any further. The samples and JavaDocs are also very useful, but you can peruse them later.
Basically, it's a very simple API in which you create and open a connection with UCM, build up a dataset, and call a service. The data is then returned to you that you can map to java objects to act upon.
The hardest part is to figure out what services in UCM to call and what parameters to pass. You'd better to bookmark our Services Reference Guide for those information.
Before using it, copy the RIDC library "oracle-ridc-client-10g.jar" to the java project.
Here are some sample snippets:
(1) Create and Open a connection to UCM
//arguments needs to connect to UCM
String idcConnectionURL = "idc://localhost:4444";
String username = "sysadmin";
String password = "idc";
//Create the IdcClient
IdcClientManager clientManager = new IdcClientManager ();
IdcClient client = clientManager.createClient (idcConnectionURL);
IdcContext userContext = new IdcContext(username, password);
(2) Ping Server
//Create the DataBinder and populated it with needed information for
//the service call
DataBinder dataBinder = client.createBinder ();
dataBinder.putLocal ("IdcService", "PING_SERVER");
//Join the binder and the user context and perform the service call
ServiceResponse response = client.sendRequest (userContext, dataBinder);
//Convert the response to a dataBinder
DataBinder responseData = response.getResponseAsBinder ();
//Display the status of the service call
System.out.println (String.format("Ping Server response: %s", responseData.getLocal ("StatusMessage")));
Originally, Oracle UCM exposes two kinds of interfaces to be used:
1. SOAP Web Service
2. Content Integration Suite (CIS)
Remote Intradoc Client (RIDC) is new in latest release.
In contrast with both CIS and SOAP, the RIDC connector is very lightweight and simple to use. There's no WSDL or J2EE bloat at all; RIDC is just a "Plain Old Java Object" wrapper around UCM web services... so it's very easy to embed in a Java application.
To get started, download the most recent version of the Content Integration Suite from Oracle. This ZIP file contains two folders: one for the new RIDC connector, and one for the standard CIS connector. I'd suggest you take a look at the "ridc-developer-guide.pdf" before you go any further. The samples and JavaDocs are also very useful, but you can peruse them later.
Basically, it's a very simple API in which you create and open a connection with UCM, build up a dataset, and call a service. The data is then returned to you that you can map to java objects to act upon.
The hardest part is to figure out what services in UCM to call and what parameters to pass. You'd better to bookmark our Services Reference Guide for those information.
Before using it, copy the RIDC library "oracle-ridc-client-10g.jar" to the java project.
Here are some sample snippets:
(1) Create and Open a connection to UCM
//arguments needs to connect to UCM
String idcConnectionURL = "idc://localhost:4444";
String username = "sysadmin";
String password = "idc";
//Create the IdcClient
IdcClientManager clientManager = new IdcClientManager ();
IdcClient client = clientManager.createClient (idcConnectionURL);
IdcContext userContext = new IdcContext(username, password);
(2) Ping Server
//Create the DataBinder and populated it with needed information for
//the service call
DataBinder dataBinder = client.createBinder ();
dataBinder.putLocal ("IdcService", "PING_SERVER");
//Join the binder and the user context and perform the service call
ServiceResponse response = client.sendRequest (userContext, dataBinder);
//Convert the response to a dataBinder
DataBinder responseData = response.getResponseAsBinder ();
//Display the status of the service call
System.out.println (String.format("Ping Server response: %s", responseData.getLocal ("StatusMessage")));
UCM and WCI integration
Lots of customers are interested in the integration between UCM and WCI.
There are several ways to achieve it:
1. Deploying CPS portlets provided by UCM: you have to install the CIS before deploying those portlets
2. Gateway the UCM pages in WCI: there are always some problems especially on javascript, which disables some functions of it.
3. Embed the UCM pages in WCI through iframe
4. Developing the custom portlets for those UCM functions like check in, search etc.
There are several ways to achieve it:
1. Deploying CPS portlets provided by UCM: you have to install the CIS before deploying those portlets
2. Gateway the UCM pages in WCI: there are always some problems especially on javascript, which disables some functions of it.
3. Embed the UCM pages in WCI through iframe
4. Developing the custom portlets for those UCM functions like check in, search etc.
Thursday, June 4, 2009
Unreadable data through Oracle SAP Adapter
When connecting to SAP through Oracle SAP Adapter in Oracle BPEL, the data of Chinese characters inserted into SAP from BPEL is unreadable. But those data in BPEL is correct.
After checking the whole environment, we noticed that the JVM of OC4J Container running SAP Adapter doesn't contain the encoding parameter.
Here we made the below changes on OC4J JVM settings:
-Dfile.encoding=UTF-8
Then it worked properly.
After checking the whole environment, we noticed that the JVM of OC4J Container running SAP Adapter doesn't contain the encoding parameter.
Here we made the below changes on OC4J JVM settings:
-Dfile.encoding=UTF-8
Then it worked properly.
Subscribe to:
Posts (Atom)