« August 2008 | Main | October 2008 »

September 2008 Archives

September 11, 2008

Build an End-to-End Web Application with ADF Faces and Oracle TopLink (End product)

Just make this one of the shorter blog article I have. If you are trying the tutorial from the link:
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is MDToplink.zip. My MSN ID is chanmmn@hotmail.com

September 14, 2008

Developing Business Services with ADF Business Components (end product)

Another lazy job ;-). If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/bslayer/bslayer.htm

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is OrderEntry.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you.

September 15, 2008

Introduction to JavaServer Faces using JDeveloper (end product)

This one I did it back in May and should be fine. If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/jsfintro/jsfintro.htm

This tutorial is the good one to pick up Java Server Face (jsf). The fact is most of the developers build web pages in Java technology will use jsf.

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is JSFIntro.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you. Have fun.

September 16, 2008

Build a Web Application with JDeveloper 10g Using EJB, JPA, and JavaServer Faces (end product)

If you are trying the tutorial from the link: http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm

Another short blog, tomorrow I will go for end product of viewlet instead of tutorial. If you are the one not too sure what viewlet is then please visit: http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html.

After this tutorial you will realize you have not been doing much code by yourself, cool stuffs.

At the same time you feel like to have a complete sample to play with then download the sample file from http://skydrive.live.com. The sample file name is HR_EJB_App.zip. My MSN ID is chanmmn@hotmail.com

Do feedback to me if the end product does not run for you. Good day

September 17, 2008

ODP.NET with Visual C++ 2008


Many developers still using C++ for some reasons. One of my customers is using VC++ but with open source database and he is not that happy with the database so he wants to change to Oracle database. This is a simple sample that I build for him with 1 button and 1 listbox.

When I was doing few lines of code for this sample I realize 2 not quite happy scenario in VC++; 1. The Oracle DataAccess Class does not appear in blue for example, OracleConnection, as compare to C#. 2. The intellisense is not as strong when comparing to C# as well.

The following are the few lines of code that in the sample:

static String ^ORA_CONNECTION_STRING = "Data Source=orcldemo;Persist Security Info=True;User ID=HR;Password=hr;";

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

       OracleConnection ^conn = gcnew OracleConnection(ORA_CONNECTION_STRING);

       conn->Open();

 

       OracleCommand ^cmd = gcnew OracleCommand();

       cmd->Connection = conn;

 

       cmd->CommandText = "select department_id, department_name, city"

                + " from departments d, locations l" + " where d.location_id =

                   l.location_id";

 

        OracleDataReader ^dr = cmd->ExecuteReader();

 

       while (dr->Read())

       {

         listBox1->Items->Add("The " + dr->GetString(1) +

                           " department is in " + dr->GetString(2));

       }

 

       conn->Close();      

     }

 

Download the sample file from http://skydrive.live.com. The sample file name is WinAppCpp.zip. My MSN ID is chanmmn@hotmail.com

September 20, 2008

Using ADF Business Components with Oracle ADF (end product)

ADF Business Component can test like a Windows Form application and pretty easy to build. The developer can deploy it for product too.

This is the end product of a demo instead of tutorial. If you are watching the viewlet Using ADF Business Components with Oracle ADF as the link http://www.oracle.com/technology/products/jdev/viewlets/1013/ADF_Business_Components_viewlet_swf.html and intend to have a complete sample to play with.

Download the sample file from http://skydrive.live.com. The sample file name is ADFBusinessComponent .zip. My MSN ID is chanmmn@hotmail.com

September 28, 2008

Oracle.DataAccess.dll in Windows Server 2008 x64

After I installed ODP.NET 11g ODTwithODAC1110621.zip in Windows Server 2008 x64 I got the following error message:
Could not load file or assembly 'Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format. (http://forums.oracle.com/forums/thread.jspa?messageID=2732111)

So, I changed the ODP.NET 10g ODTwithODAC10202.exe. Well, there was no luck and I was still getting the same error message from Visual Studio 2008.

Thanks to Mark William answered my question in the forum http://forums.oracle.com/forums/thread.jspa?threadID=706071&tstart=0.

Finally, Oracle.DataAccess.dll is able to open the connection to connect to Oracle Database 11g without an error. At the same time can create Data Sources without error too.

Somehow, in order to do that, I need to install both Oracle Client for Windows Server 2008 x64 and Oracle Client for Windows Server 2008 x86 download from the following link:
http://www.oracle.com/technology/software/products/database/index.html

About September 2008

This page contains all entries posted to Ming Man Chan's Blog in September 2008. They are listed from oldest to newest.

August 2008 is the previous archive.

October 2008 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle