Deploy different ears without admin console-Fast way of Deploying EAR to Weblogic

Traditional Way

Normally in Weblogic for deploying a new ear,the process most of us follows are ,In short,login to Weblogic Admin Console,go to 'Deployments',click 'Lock and Edit',
click 'Install' button, navigate to the respectieve path where
your EAR is residing,select the appropriate deployment mode,then finally click 'Finish' button.

Here the first step opening the admin console and login with the
credentials itself is a time consuming process so as the other steps.

Instead follow the steps below for easy deployment.

Easy Deployment

This requires a little tweak in the  config.xml file,idea is to specify in  config.xml files which ear you need to deploy,Weblogic Server will read the Config file and looks for  an EAR in the  location  specified in the config file,great!!! ,then if found,it waits for nothing it will go ahead with the usual Server startup,picks the EAR,starts the modules specified in the EAR, installs the EAR to the Server finally, done!!!.

Below is the tags and sample values:

<app-deployment>
    <name>B2C</name>
    <target>B2cServer</target>
    <module-type>ear</module-type>
    <source-path>C:\ATG\ATG9.1\EAR\B2C.ear</source-path>
    <security-dd-model>DDOnly</security-dd-model>
 </app-deployment>

atg.service.jdbc.MonitoredDataSource vs atg.nucleus.JNDIReference

Monitored DataSource

This is the default class used by ATG for configuring datasources,Most of the out of the box repositories in ATG uses  this in combination with JTDataSource component.

JNDIReference

For working with Weblogic Server,you need to override the old style of relying MonitoredDataSource,it makes life difficult if we have multiple repositories pointing to multipe datasources,configuring each repositories in this way is a tedious task,
instead replace the old class with atg.nucleus.JNDIReference,so now the repositories  is pointing to the datasource which is specified by the JNDIName in the  JTDataSource component,which in turn points to the  Datasources configured in Weblogic Server identified with the JNDI name.

eg:

$class=atg.nucleus.JNDIReference
JNDIName=abc_ds

where abc_ds is the JNDI name in which you have configured the datasource in Weblogic Server.

See how to alter a datasource quickly/easy -> Alter Datasource Quickly

DUseSunHttpHandler=true weblogic.net.http.SOAPHttpsURLConnection Weblogic/Java HttpHandler issues

Verify the issue is happening due to the error throwing 
from the weblogic class  SOAPHttpsURLConnection,then you need to
inform the Application Server which handler implementation you need to use.

 add the following option to JAVA_OPTIONS in 
 setDomainEnv.sh/setDomainEnv.cmd  on Unix/Windows.

 -DUseSunHttpHandler=true.

 eg:
 set JAVA_PROPERTIES=%JAVA_PROPERTIES% %WLP_JAVA_PROPERTIES%
 set JAVA_OPTIONS=%JAVA_OPTIONS% %JAVA_PROPERTIES% -
 DUseSunHttpHandler=true -Dwlw.iterativeDev=%iterativeDevFlag% -
 Dwlw.testConsole=%testConsoleFlag% -Dwlw.logErrorsToConsole=%
 logErrorsToConsoleFlag%

 This setting tells WebLogic to use the Sun's https Handler 
 implementation rather than the WebLogic one.

 So after this,it will use the  class HttpsURLConnection from the
 javax package.

 See Also
 SSL Handshake error
 java.lang.RuntimePermission modifyThread

Change encrypted password - Add Password Propert y-to Weblogic Data Source Files

While configuring datasources weblogic defaultly stored the password in encrypted format inside the datasource files.But this will make the developers job  difficult in case if he want to change the password property directly through files.

eg:
<properties>
      <property>
        <name>user</name>
        <value>test</value>
      </property>
    </properties>
<password-encrypted>{3SFG}/kMKUSVmft+uzUsiXxpMNPw==</password-encrypted>
But we have an easy way to accomplish this by adding the property which has a name and value pair like below.

eg:
<properties>
      <property>
        <name>user</name>
        <value>test</value>
      </property>
      <property>
        <name>password</name>
        <value>testapp</value>
      </property>
 </properties>

Now you know how to edit this file to suit your needs.Done !!
See how to  Alter a datasource quickly/easy

Switch Weblogic Datasources quickly to connect different databases

Generally while configuring Datasources,especially changing the Username and Password for the datasources,Modifying the url of the datasource so as to establish connection to different databases in different environments like (Development,System Testing to verify a defect etc) will surely become a  tedious task if we rely  admin console each time to make these changes.

There is an easy way to accomplish this,Assuming you already have a datasource configured for your Development purpose(connected to devdb),Now you need to connect to different datasource/database  to test a defect in different environment,say in System Test environment(connected to systestdb).

Open your datasource files with a wordpad or notepad, located inside C:\bea\user_projects\domains\xxx_domain\config\jdbc folder,
keep a back up of your old datasource file,now modify the datasource url,user name and password etc with respect to your environment(System test).Restart the  Weblogic Server.

Now you can see your application is connected to the desired database.

See how to change the encrypted password ->
Modify Encrypted Password

Issues Opening ATG Control Center(ACC) - Not Resolving Host Name

i  experienced the following error,while trying to open a Standalone ACC.

"Could not connect to  url  rmi://hostname:portnumber/atg/devtools/UpdateAgent,
this is Usually caused by the incorrect setting of
adminPort property of the Nucleus component
atg/devtools/UpdateAgent.That property should be set
to the HTTP Port number for the Dynamo Administration Server".


Editing the Windows hosts file.

Navigate to the location where your windows is installed, (eg: C:\windows\system32\drivers\etc)
open the hosts file in any word editor (eg:notepad),modify the file by adding respectieve entry to resolve the host names.

eg: 127.0.0.1       xxx.com
    127.0.0.1       xxx.org.net

After this Run the DOS command ipconfig/flushdns,now open your standalone ACC you will able to access without any issues !!!

Also see editing the registry -> Modify Registry Settings

Modifying Registry keys for Standalone ATG Control Center

This can be done by editing the Registry Key.But take proper care in doing so.

Go to the Start Menu->Run-type regedit then go to

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient]

You will see an entry 'SearchList' if not add an entry for that,in
 the data field of 'SearchList' enter the host name to be resolved.
eg: -> SearchList="xxx.com,xxx.org.net"

Now exit from Registry Editor.Run the command ipconfig/flushdns from
your Command Window.

After this ,Open your  standalone ACC.

You will be prompted with  a dialog box which asks for,

”some files need to be downloaded from the Dynamo server
To run this program successfully.Proceed with download ?"

Click Yes and you will be able to Open your ACC .done!!

You can see how to modify hosts file for this -> Modifying Windows Hosts file

sun.security.validator.ValidatorException sun.security.provider install SSL Handshake error


This issue is happening because the URL you are trying to connect through SSL from your applicaton does not have a certificate associated with in your JDK Keystore.

So at first,you need to export this certificate to any physical location through your browser(FireFox) and using Keytool utility, import it to the JDK's Keystore.

Exporting the Certificate to Keystore

1.In the Browser enter the url(eg->https://xxx.com),for https
  protocol,you may find an icon at the leftmost corner of the
  Address bar.Click on the icon.
2.Click "More Information".
3.Click "View Certificate" button.
4.Select "Details" tab and click "Certification Authority - G5",Now
  click "Export" button,Save the file in any physical
  location of your hard disk(eg:C:\xxx.cer).

Importing the Certificate to Keystore

Go to the keystore Location -eg C:\jdkxxx\jre\lib\security.
Run the below command from the keytool uility
keytool -alias xxx -import -keystore cacerts -file C:\xxx.cer
it will ask for password which is 'changeit'
Now using another command keytool -list -keystore ./cacerts verify
the Cert is added to the keystore succefully.
done !!!

Unit Test Global Components using ATG Control Center or AdminUI

How fast and easy  to do unit testing for a Global Component ?

Lets assume i have not coded my JSP Pages,
but for unit testing  i want to  invoke one of the handleMethod(String x,String y)inside my component which is of a Global scope.

The easiest way is to write another test method inside the same
component, and from there invoke the handleMethod.Make sure
you pass the necessary parameters if any required for the original method from your test method.

Like something below:

public void testHandleMethod()
{      String tmp1 = "test";
       String tmp2 = "Method";
       handleMethod(String tmp1,String tmp2)
}

Now in your ACC or Component Browser this method will be visible,
so that you can invoke the testHandleMethod() directly from there.

Note : Your test method must be public
       Your test method must not contain any parameters.

Now invoke the debugger and record the unit test results !!!
Also verify how can we write a unit test case with ATG Dust
ATG DUST Unit test

Aadhar UID Enrollment Steps made Easier than before

Enrolment Procedure
Normally enrollment can be done through all Post Offices on specified dates.You can enroll in other Centers also identified for this.I went to nearby Post Office and done the entire process within half an hour.

The enrollment process is very easy,Post Office guys
will give you the Enrollment Form Upfront(This Enrollment Form Format might be different in different centres,means format will vary slightly),Fill up the necessary details,while submitting you have to carry  the required documents (Id,Address Proof)'.Its Best if you have a Xerox of DL or Passport which has both ID and Address Proof.So it alone will suffice for both,Other wise you need to provide the necessary Proofs,the list of supportings/Proofs will be displayed in every Post Office,Also there is no need to take  any
Originals or Photo with us at the time of enrollment.

Once Verified they will issue a token,With this token you can go ahead and complete the formalities same day preferrably,other wise you need to repeat the steps of getting token so better finish it in same day.

The enrollment process is pretty simple and straight forward
,the authorised person will add the minimum details provided in the
form to the System,after that he will take a Photo of you followed by an Iris scan for both of the eyes,then scanning of all the ten fingers.The entire process will not take more than ten minutes.\

After this they will give you print out of  all the details entered in two copies.Take one as an acknowledgement and keep it with you,and the other copy sign it and give back,and when asked i have told that your UID will be send to the Address given with in one month.But I know people waiting after 4-5 months but still no updates.Lets Wait and See !!!!

Note:Better to go early in the morning when the Post Office opens,
Normally after that  i have seen 10 -15 People always in the Queue,
so it will cost you minimum one hour fourty minutes.

I got the Aadhar Card within a month itself !!

Link Aadhar card with Bank and Gas Agency

There are two things you need to do,First one is link your Aadhar card with bank account and second is link  Aadhar card in Gas Agency Records.You will get one page two sided form for this whereas one side you can fill the bank details and other side gas agency related details.

Procedure

First thing is to collect the form from the gas agency,this form has two sides,the page 1 is to link your Aadhar id to the bank account
for that fill the details like bank account number,branch name,uid number,address etc and submit to the bank ,preferably the one which you have account.
Documents Required: Form you collected from the Gas agency and a xerox of Aadhar card and original Aadhar card.

Get the signature and seal from the bank authorities in the acknowledgement section below the form and cut that portion and keep it with you.Any bank officer can do that,if you have a personal banker you can just call and inform earlier and get this done in a minute.

Now go to  Gas Agency,Before that One important thing i forgot to mention earlier is after filling the bank details you need to take a xerox of the application form

with your Aadhar card kept in the left hand side,means you need to take a xerox with reduced size of the Aadhar card,so that it will come in a way that the left

handside blank space is filled with your Aadhar card.After filling the details for Gas Agency submit the Form,Gas Bill and in case a change of address from your
Aadhar card its good to submit the address proof as well.

Documents Required: Application Form,Acknowledgement Receipt From Bank,Recent Gas Bill Prefereably,Adress Proof incase required
 

ATG Best practices to shutdown ATG Servers

Always shutdown the Server by executing the shutdown
scripts provided by the Weblogic(bea\user_projects\domains\base_domain\bin\stopWeblogic.cmd).

But the server will wait for the open session,open transaction
to release,and it will take some time.There is
an option available which you can use and legitimately shutdown
the Weblogic Server quickly.

Add the 'force' option

Open bea\user_projects\domains\base_domain\bin\stopWeblogic.cmd

Modify the line to include the "force' option.

force shutdown weblogic
this will be immediate and will suspend all the application process.

You can also see how to Shutdown Weblogic Server while ACC is running  

Start ACC Faster or Different ways of starting ACC

There are 3 different ways to start ACC(ATG Control Center).

1.  Open your Component Brower,here you have an option to start
     ACC in same or different VM.Choose the appropriate option
     to start the ACC.

2.  You can Start it from the Desktop Start Menu.
     Click Start-Programs-ATGX.X->Tools->ATG Control Center

3. Create a short cut in the Desktop/Taskbar which points to
    C:\ATG\ATG9.0\home\bin\startACC.bat

    The last way is faster compared to
    the other two,as it opens the ACC(ATG Control Center)
    in a single click.
   You can also see how to shutdown weblogic while ACC is running

Cheating/Fraud at Advaith hyundai Service Center- bad service experience hyundai service center bangalore jp nagar

Address: 56, 1st Main Road, Saraki Industrial Layout, 3rd Phase, J.P Nagar , Bangalore- 560078 , Karnataka
Landmark: Behind Teja Networks.

i want to narrate a bad customer experience from this service center
it would be less if i mention this incident as a height of irresponsibility i had given service of my car last week,.i was assigned a service executive Mr Bala.he appeared gentle but turned out to be a casual/irresponsible guy.i went to take delivery of vehicle,and found that they changed the  floor rubber mats,mine was thick rubber mats and they changed with some other car's mats which is of a old thin syntethic type,luckily i found out this immediatly and told to the executive,he  told me that its misplaced and the person has gone, when he comes next time for servicing we will replace this.how can he say something like this ????do i need to wait till he comes and live with this old mats ??its really a painful experience for any customer.

i got angry  as what will i do with this old ugly floor mats....whereas mine is new rubber mats,my car is new,recorded only 3000 odd kms.after shouting a lot,one guy acting as a supervisor came in the pretext of settling things and told me tht its usual tht
these sort of mistakes happens while washing, and was very casual about that.Upon creating some scene,finally they agreed to replace the rubber mats,next day they came and replaced this.

Things to take care if you faced any bad servicing like this.
Related Posts Plugin for WordPress, Blogger...