Wednesday, June 19, 2013

Program to test Siebel CRM connectivity, Integration

package project1;

import com.siebel.data.SiebelBusComp;
import com.siebel.data.SiebelDataBean;
import com.siebel.data.SiebelException;
    import com.siebel.data.*;
    import com.siebel.data.SiebelException;

 
    public class Class1 {
    public static void main (String args[])
    {
    System.out.println("This is a test");
    SiebelDataBean m_dataBean=null;
    SiebelBusComp m_busObject=null;
    try
    {
        System.setProperty("file.encoding","UTF8");
    m_dataBean=new SiebelDataBean();
    m_dataBean.login("siebel://IP:2321/SBA_80/SCCObjMgr_enu", "SADMIN","SADMIN","enu");
    System.out.println("Successfully connected to Siebel CallCentre Object Manager");
    }
    catch (SiebelException e)
    {
    System.out.println("ERROR:"+e.getErrorMessage());
    }
    }
    }

Tuesday, June 18, 2013

I will miss you

"I will miss you" i smiled after reading this statement on Facebook wall  from one of recently graduated student. The same thing i asked to my friends but in different words, when i graduated. But what happens, a person comes to know when he steps in practical life.

 At very start everybody calls each other and asks about have you got the job, what's going on, yar i am missing those days when we were together there. But with the passage of time, the duration between calls and chats increases exponentially. And a time comes when you receive no call even from your closest friends .

I still remember my last day at primary School, A friend came to me and asked what are you doing here, the party has started, i was starring at the flowers. It was march, the month of flowers, i used to say. Everybody rushed out from School after party and went on their way. The paths which had no way back. Sometimes when i am alone, i try to make a face from vague memories, and just get confuse when lot of faces appears and start spinning in front of my eyes when i close them. When faces start getting clear, a voice come, Nasir what are you doing, hurry up we are getting late. OMG i was in dream? Life is so cruel, give no time to even think for a while, for yourself.

Departure's time comes on various stages of life, however some stages leave a serious impact on life. I still remember farewell parties, that started from School but how may will come i don't know. A person forgot many colleagues, new faces come and take their places and try to fill those gaps. But memories are memories, we try to remember those days and friends.

 If you meet each other your friendship and relationship continues otherwise people just forgot. We forgot even our relatives if we don't meet them. I do not know many of my relatives, and what about their children? Well it is reality it happens. We say we are really busy, sorry i cannot meet you this time. Seriously we can always have a time if we want.

Well it is life, we have to work for our livelihood. But we should have a time for our relatives and friends. Money is not everything but indeed it is important. Last but not least if you meet your relatives and friends relations continue if not nobody cares, little harsh but true. Be happy and be honest with your life.

Saturday, May 18, 2013

First experience of Elections 2013 in Pakistan

-->
    Before Elections 2013 in Pakistan I was very excited mainly because I was going to cast my vote first time and for change. I was thinking that my vote will be a decider of destiny of too many Politicians but i was wrong. Now i feel that it changed me a lot instead off change in Pakistan.

  I specially went to my home to cast my vote from Lahore. I just wanted to get ride the current system in Pakistan. That is why i decided to vote for Pakistan Tehreek Insaf (PTI). They came up with some good policies. A person only knows about something when he actually face it. I went through the system of Pakistan and It forced me to think. It forced me to do something for change, something that could help Pakistan to washed out all these issues.

 When I went to my village and asked people for whom they are casting their vote. Their answered totally disheartened me. They do not give their vote for leader but they do what the Chaudries and members of villages says. Some of them even do not know about their leaders. Very less numbers of people from villages thinks in broader term. They do what have been asked by chaudries of villages. Not every person in village has same type of thinking but many have.

 Most of  Women from villages are illiterate and they do not have ability to decide who is right person. They do what their husbands says. People could not differentiate between NA and PP seat, I experienced it. Everybody can not read and they just look at the symbols and cast their vote  and the funny thing that i experienced that many people could not find their candidate symbol and they just casted their vote blindly.

 Their was not good privacy to cast vote. Some people just casting their votes in front of everybody and some of them asking people in polling station to cast their vote for their party, very shame. No respect for Teacher what they were asking to people.

 There are many more points but i do not want to mention all. After experiencing first time Election, I realized that it will not make any difference either you cast your vote or not. I know i am not saying a good thing but it is just a feeling that a person can have after casting their vote. And when it comes to counting, really sad to say why it takes so much time and why election commission ignores many rigging proofs.

 Sometime i think they already write a script i.e. who will rule the country this year and do some formalities like election. I do not think their can be a free and fare elections until the interruption of other countries. If anybody want to win election then come out with those people who can lie more and more, purchase chaudries etc, according to current system.

 But hope for the best. One day In Shaa Allah thing will be getting better.    
-->

Monday, April 22, 2013

Enterprise Manager is not working http://localhost:7001/em


Case1
After installing and Creating domain for SOA server I was getting some problem while running my enterprise manager. the error was

"Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found

The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent."

There are many solution related to this problem on web but unfortunately I could not find any solution for me.  however may be my solution wont work for many of you but I hope this will help for many others.

In my case there was no em.ear file present under C:\Oracle\Middleware\user_projects\applications\base_domain

It means that while creating Weblogic domain I did not selected Enterprise manager. I solved this issue by extending my existing domain and then selecting Enterprise manger. Now If you run your enterprise manager it will run fine 


Case 2

If you are stilling facing the same problem then try this second solution this may help you. Change the deployment orders of different installed services on Weblogic console. To do this go to your weblogic console, then go to deployments now look at the EM is it running? or its status ok? No then note down its deployment order, now give it a unique deployment order from other applications. Every deployment should have unique deployment order otherwise it will cause problems.

After changing the deployment number to some unique number restart your admin server. Try to access EM now..

Could not initialize JCA Container

While connecting to JCA in Application Explorer I was getting the following error

"Could not initialize JCA Container "

First i was starting Application Explorer i.e ae.cmd file from the following directory.

C:\Oracle\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\tools\iwae\bin

but this was creating above error.

After this I started the setDomainEnv from the following directory C:\Oracle\Middleware\user_projects\domains\base_domain\bin by using Command prompt 

After running the setDomainEnv from command prompt then I run the ae.cmd file from the same command prompt after setting the path to ae directory i.e

C:\Oracle\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\tools\iwae\bin

like cd C:\Oracle\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\tools\iwae\bin>ae

Know if you connect there will be no issue. 

Sunday, April 21, 2013

Oracle Application Adapter for Weblogic Problem and solution

I was workign on Oracle Applicaton Adapter for Weblogic and I was getting the following error while connecting it. Basically I was using this Adpater for Integration with Siebel CRM.

  oracle/tip/adapter/api/exception/pcresourceexception

The mistake that i was doing that I was not giving the correct home path in JCA config home
this was default 

C:\Oracle\\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\tools\iwae\bin\..\..\..\
I changed it with 

C:\Oracle\\Middleware\Oracle_SOA1\soa\thirdparty\ApplicationAdapters\config

Now Its running fine 

Wednesday, March 6, 2013

Adding and Using Jar files in Oracle ADF Application/Project

In this project i will show how to add and use a Jar file of some other ADF Project in your ADF application. First create a Jar file which you want to use in your ADF application and then add them into your application by using following procedure.

1) In your Oracle ADF application go to "Resource Palette", if not visible then go to view and click on "Resource Palette " and now you will be able to see this.

2) Next do this, select new connection and choose file system.
 3) Now from pop give connection name and choose directory path which contain these jars. Just locate the directory not the jar as shown in below snapshot.
4) Now you will be able to see your Jar file as i can see my Jar file.
5) Now Right click on any Jar file and select add to project as shown below. from popup just choose add jar library.