Oracle JDev 11g Technology Preview 4 is out there

http://www.oracle.com/technology/products/jdev/11/index.html

See also "New Features" doc: http://www.oracle.com/technology/products/jdev/collateral/papers/11/newfeatures/index.html

Thanks to all 3000 Fusion Users or bloggers..

Hi all
My blog reached to visitors of count 3000 now since from 5/28/2007 .Hang on folks,Soon i will be coming with posts on OID, SOA, and an Fusion middleware architecture in much more detail...+ ESB and BPEL with examples.

Thanks all..Happy blogging.

Those days are over..Fusion NoMore ConFusion..

As i said,Nomore confusion about Oracle Fusion Middleware/Oracle Fusion applications..If you still have confusions that means you are not in touch with what is going on with oracle technologies.
Let me try to make it clear..

Oracle Fusion: is nothing but integration of Oracle applications such as EBusiness Suite, PeopleSoft, Siebel, Retek, JD Edwards,etc. into a set of next generation applications based on open industry standards. these nextgeneration applications will be based on the SOA (Service oriented architecture)
Oracle Fusion middleware : is the platform which can used to build/develop fusion applications.
oracle has selected some of the below technologies as foundation for fusion.
>J2EE
>Webservices
>SOA
>BPEL

Some of the oracle fusion components:
>Oracle Jdev
>J2EE
>Oracle application development framework (ADF)
>TopLink
>XML
>WebServices
>SOA
>BPEL
>Identity Management
>Single sign-on
>Grid control

Reset the Oracle EM password/ Administrator password.

Reset the Administrator (oc4jadmin) Password

Problem

If you forget or do not know the oc4jadmin password, then you cannot monitor or administer the application server or its components with the Application Server Control Console.

Solution

Reset the oc4jadmin password using the following procedure while you are logged in as the user who installed the Oracle Application Server instance:

Stop OC4J and the Application Server Control.

Enter the following command in the Oracle home of the application server instance:

(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopproc ias-component=OC4J
(Windows) ORACLE_HOME\opmn\bin\opmnctl stopproc ias-component=OC4J

Locate and open the following file in a text editor:

(UNIX)ORACLE_HOME/j2ee/home/config/system-jazn-data.xml
(Windows)ORACLE_HOME\j2ee\home\config\system-jazn-data.xml

Locate the line that defines the credentials property for the oc4jadmin user.

The following example shows the section of system-jazn-data.xml with the encrypted credentials entry in boldface type:



jazn.com

.
.
.

oc4jadmin
OC4J Administrator
OC4J Administrator
{903}4L50lHJWIFGwLgHXTub7eYK9e0AnWLUH


Replace the existing encrypted password with the new password.

Be sure to prefix the password with an exclamation point (!). For example:

!mynewpassword123

The password for the oc4jadmin user should conform to following guidelines:

Must contain at least five characters, but not more than 30 characters.

Must begin with an alphabetic character. It cannot begin with a number, the underscore (_), the dollar sign ($), or the number sign (#).

At least one of the characters must be a number.

Can contain only the following characters; numbers, letters, and the following special characters: US dollar sign ($), number sign (#), or underscore (_).

Cannot contain any Oracle reserved words, such as VARCHAR.



Delete cached password data by deleting the contents of the following directory:

(UNIX)
ORACLE_HOME/j2ee/oc4jinstance/persistence/ascontrol/ascontrol/securestore/
(Windows)
ORACLE_HOME\j2ee\oc4jinstance\persistence\ascontrol\ascontrol\securestore/

Start OC4J and the Application Server Control.

After the restart, the Application Server Control will use your new Administrator (oc4jadmin) password, which will be stored in encrypted format within the system-jazn-data.xml file.
deleted the post

Uninstalling Oracle Products on Windows 2000


  1. Ensure that you are logged in as a user with Administrator privileges
  2. If any Oracle services (their names always begin with "Oracle") are running, then stop them:

    1. Right-click My Computer > Manage > Services and Applications > Services
    2. Scroll down to the Oracle services
    3. For each service with status "Started", select the service and click Stop




  3. Use the Oracle Installer to uninstall the software:

    1. Click Start > Oracle - <home> > Oracle Installation Products > Universal Installer
    2. Click Installed Products
    3. For each product, expand the Oracle home you want to uninstall, select the product, click Remove, and then click Yes
    4. Exit the Installer




  4. Start the registry editor: Click Start > Run > type regedit and press Enter
  5. Note the value of the key HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\inst_loc (probably "C:\Program Files\Oracle\Inventory")
  6. Delete the key HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
  7. Delete all keys under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC that are related with the "Oracle ODBC Driver"
  8. Delete all keys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall that are related to Oracle
  9. Delete all keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services that begin with ORACLE or ORAWEB
  10. Delete all keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application that begin with ORACLE
  11. Delete all keys under HKEY_CLASSES_ROOT that begin with Ora or ORCL (e.g. Oracle*, ORADC*, ORAMMC*, OraOLE*, OraPerf*, and ORCL*)
  12. Delete all keys under HKEY_LOCAL_MACHINE\SOFTWARE\Classes that begin with Ora or ORCL (e.g. Oracle*, ORADC*, ORAMMC*, OraOLE*, OraPerf*, and ORCL*)
  13. Delete the key HKEY_CURRENT_USER\Software\Oracle
  14. Delete all keys that match the pattern HKEY_USERS\*\Software\Oracle
  15. Close the registry



  16. Clean the environment:

    1. Click Start > Settings > Control Panel > System > Advanced tab > Environment variables
    2. Edit the PATH variable in the System Variables section:

      • Remove all references to Oracle homes (e.g. d:\ora904mt)
      • If JRE was installed by Oracle, then remove the JRE path

    3. If there is a CLASSPATH variable in the System Variables section, then note its value and then delete it
    4. If there are any other Oracle variables in the System Variables section (e.g. ORACLE_HOME, ORACLE_SID, TNS_ADMIN, JSERV, or WV_GATEWAY_CFG), then delete them
    5. Click OK and then OK again to close the System Properties box
    6. Close the Control Panel




  17. Remove remaining folders and icons:

    1. Right-click Start and select Explore
    2. Navigate to C:\Documents and Settings\All Users\Start Menu\Programs
    3. Delete the folders that begin with Oracle
    4. Delete the folder whose name was pointed to by HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\inst_loc
    5. Close the Explorer window




  18. Delete all folders and files in the C:\Documents and Settings\<username>\Local Settings\Temp\ directory
  19. Delete the Oracle home directories
  20. Right-click Recycle Bin, select Empty Recycle Bin, and click Yes



  21. Defragment you disk:

    1. Right-click My Computer > Manage > Storage > Disk Defragmenter
    2. For each drive, select it and click Defragment




  22. Reboot the computer

Top 10 things to do to prepare for Fusion Applications.

1. Consider Upgrading to the Latest Release of your Applications.
For example, Oracle E-Business Suite - 11i10 or R12, PeopleSoft Enterprise - 8.8, 8.9 or 9.0, JD Edwards EnterpriseOne - 8.11 or 8.12, Siebel - 7.8, 8.0 applications

2. Rethink your Customization Strategy

a) Is what I put in place still valid and worth keeping?
b) If they are still required, should customers evaluate if there
are better ways of doing/developing these customizations?
c) Should I think about engineering for the future with products
that will survive the upgrade to Fusion? What are those
products?
d) What are the benefits of implementing Fusion technology?

3. Put together a Project Plan to migrate to Fusion

a) Are there areas where you will need to upgrade first?
b) Do I need to evaluate the drivers (business as well as IT)
to upgrade to Fusion Applications?
c) Is there a pilot project for upgrading to Fusion, based on
geography, departmental/functional silos or other reasons?

4. Take advantage of Oracle’s Fusion Architecture and Fusion Middleware

a) How can I evaluate the benefits of Oracle Fusion
Architecture?
b) Does it solve business problems such as security and
compliance, integrating new business flows at lower cost
and or is it just about cleaning and consolidating the
critical data?
c) You can actually use the Fusion Technology today. Go to
www.oracle.com/fusion for more details.

5. Consider Master Data Management

a) Master Data Management (MDM), is a data hub tool that
enables you to synchronize critical data such as
customers, suppliers and products - in a single, accurate,
consistent view of the company’s data, whether from
packaged, legacy or custom applications.
b) You should consider consolidating and cleaning your
critical data about customers, suppliers and products
before going to Fusion.

6. Move to SOA-based Integration

a) Find out from Oracle what they are doing to make their
suite (EBS, PSFT, SEBL and JDE) of applications
SOA-enabled? Are they providing new capabilities in each
product to help them play in a SOA world?
b) Check out Oracle Fusion Middleware – it is a complete
product line - much more than just the application server. It
includes a process orchestration modeling tool BPEL PM,
business activity monitoring (BAM), as well as an
enterprise services bus (ESB). All these tools are known
as the SOA suite and can be used by ALL Oracle
customers today (EBS, PSFT, SEBL, JDE as well as other
point solutions such as Oracle Retail, G-Log etc... ).
c) Consider leveraging Oracle’s Application Integration
Architecture (AIA), which develops a number of Process
Industry Packs to integrate various applications products,
namely SEBL, EBS, G-Log, PSFT etc…. these can be
tailored by customers to fit their applications infrastructure.

7. Extend your Business Intelligence Portfolio

a) Adopt Oracle’s enterprise reporting, publishing & business
intelligence tool (comes with each of our Applications). All
applications have been certified with Fusion BI known as
Oracle Business Intelligence Enterprise Edition or OBI EE,
which includes XML Publisher (also known as BI Publisher)
b) Start converting your reports to XMLP.Your users will love it! c) Leverage OBI EE as well as XMLP to improve and enhance
your enterprise reporting & analytics today. You will be a
head of the game - these are part of the Fusion Technology.

8. Secure your Global Enterprise by Consolidating

a) Review your custom and legacy applications. You may be
at risk not only to data fragmentations but also to security
fragmentation which could increase your security
vulnerability and security risks.
b) Start consolidating security functions by centralizing
access control (by implementing LDAP and SSO), ensuring
data privacy and enabling compliance for the entire
enterprise.
c) Externalize security functions from the applications (where
it was built by the traditional applications) to a centralized
and professionally managed security infrastructure).
d) Get ahead of the curve by using Oracle’s Fusion Security
(known as the Oracle Identity Management), knowing it is
the security infrastructure for Fusion Applications.

9. Consider Grid Computing

a) Think “Grid” at all levels before going to Fusion. Especially
in a SOA-world where services are independent, well-
defined encapsulations of software functionality that can be
invoked over a network using heterogeneous platforms and
execution environments.
i. Grid computing is about resource allocation,
information sharing & high availability at lower cost.
ii. Resource allocation ensures that all who need or
request resources are getting what they need, that
resources are not standing idle while requests are
going unserviced.
iii. Information sharing makes sure that the users and
applications need is always available.
iv. High availability features guarantee all the data and
computation is always there, just like a utility
company always provides electric power.

10. Centralize your Lifecycle Management

a) Minimize hardware, software and system management
costs by moving to Oracle’s Grid Control, also known as
the Oracle Enterprise Manager - that is the centralized
management tools that help you manage your applications,
database, middleware, operating system, storage and the
network – all from one console.
i. Oracle Enterprise Manager works with most of
Oracle’s applications, using the Applications
Management Packs. These packs reduce efforts to
manage multiple environments, allow faster discovery
and diagnosis of incidents and provide rapid
provisioning and scaling.
b) What is great about the console is that it is the very same
console that will also manage the Fusion Applications.
c) Start with Grid Control today. You will be able to plug in
your first Fusion pilot along side your EBS, PSFT or SEBL
applications as if it were just another application in your
enterprise.
d) Grid Control will be the hub of Oracle Applications Lifecycle
Management.

JUnit for beginners.

JUnit is an open source framework designed for the purpose of writing and running tests in the Java programming language. JUnit, has been important in the evolution of test-driven development.
JUnit , making it possible to write and test source code quickly and easily. JUnit allows the developer to incrementally build test suites to measure progress and detect unintended side effects. Tests can be run continuously. Results are provided immediately. JUnit shows test progress in a bar that is normally green but turns red when a test fails. An ongoing list of unsuccessful tests appears in a space near the bottom of the display window. Multiple tests can be run concurrently. No subjective human judgments or interpretations of test results are required. The simplicity of JUnit makes it possible for the software developer to easily correct bugs as they are found.

Few reasons to know why to use?


1) JUnit tests allow you to write code faster while increasing quality.2) JUnit is elegantly simple and writing Junit tests is inexpensive. 3) JUnit tests check their own results and provide immediate feedback. 4) JUnit tests can be composed into a hierarchy of test suites. 5) It increase the stabilty of software.

You can download a latest version of JUnit.

STEP1 : Writing a Test Case


import junit.framework.TestCase;
public class ShoppingCartTest extends TestCase {
private ShoppingCart cart;
private Product book1;
protected void setUp() {
cart = new ShoppingCart();
book1 = new Product("Pragmatic Unit Testing", 29.95);
cart.addItem(book1);
}
protected void tearDown() {
// release objects under test here, if necessary
}
public void testEmpty() {
cart.empty();
assertEquals(0, cart.getItemCount());
}
public void testAddItem() {
Product book2 = new Product("Pragmatic Project Automation", 29.95);
cart.addItem(book2);
double expectedBalance = book1.getPrice() + book2.getPrice();
assertEquals(expectedBalance, cart.getBalance(), 0.0);
assertEquals(2, cart.getItemCount());
}
public void testRemoveItem() throws ProductNotFoundException {
cart.removeItem(book1);
assertEquals(0, cart.getItemCount());
}
public void testRemoveItemNotInCart() {
try {
Product book3 = new Product("Pragmatic Version Control", 29.95);
cart.removeItem(book3);
fail("Should raise a ProductNotFoundException");
} catch(ProductNotFoundException expected) {
}
}
}


STEP 2: Write a Test Suite

we'll write a test suite that includes several test cases. The test suite will allow us to run all of its test cases in one fell swoop.
To write a test suite, follow these steps:
Write a Java class that defines a static suite() factory method that creates a TestSuite containing all the tests.
Optionally define a main() method that runs the TestSuite in batch mode.
The following is an example test suite:


import junit.framework.Test;
import junit.framework.TestSuite;
public class EcommerceTestSuite {
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(ShoppingCartTest.class);
suite.addTest(CreditCardTestSuite.suite());
return suite;
}
/**
* Runs the test suite using the textual runner.
*/
public static void main(String[] args) {
junit.textui.TestRunner.run(suite());
}
}



You can Download Complete source code.

I hope you got an idea how to run and why to use?

I will update it further very soon,....

Concept of SOA (Service Oriented Architecture)

This is a very good notes for Beginners to know about SOA.


SOA is not a technology or something you install. It is a concept, or rather an approach to modelling your system, and one that is different from the standard client/server model you may be used to. As opposed to large, proprietary applications that do everything, SOA is a design meant to try to integrate numerous and diverse software applications with common interfaces, in the name of code reuse/maintainability, and adaptibility. The notion of using a group of independent applications to accomplish a shared task is also sometimes referred to as grid computing.

Everyone knows that "Web Services" are one of the hottest things lately. An SOA is essentially a collection of such services, communicating with one another, generally through XML. (Of course I am over-simplifying things: SOA can involve any kind of self-contained service communicating in any way.)

SOA is not specific to any technology, indeed every "family" of technologies has its own SOA solution, and usually you can mix-and-match your own. However, open-source XML-based technologies such as BPEL, SOAP and WSDL are very commonly used.


I will update few more details related to SOA Soon..




What is Business Process Execution language (BPEL) ?

Why BPEL came into picture?

The purpose/idea behind almost new technology for application development is to provide an business application with less effort and also which can be easily adapted to changing nature of business processes without much effort.

Integrating a different applications is always a difficult task for various functional or technical realted reasons.eventhough JAVA has provided the excellent platform to develop such applications,as business application cannot be isolated.


So,now here SOA will come into picture,we can say integration challenges were resolved by Service Oriented Architecture (SOA) and web services technologies.Thus we can now access different functionalities of different legacy and new developed applications in a standard way (through web services). Such access to functionalities is important because typical companies have a large number of existing applications which have to be integrated.


Developing the web services and exposing the functionalities is not sufficient. We also need a way to compose these functionalities in the right order – a way to define business processes which will make use of the exposed functionalities. We would obviously prefer a relatively simple and straightforward way to define such processes, particularly because we know that business processes change often, therefore we would like to modify them easily.


This is where the BPEL (Business Process Execution Language for Web Services, also WS-BPEL or BPEL4WS) becomes important. BPEL allows composition of web services and is thus the top-down approach to SOA – the process oriented approach to SOA.