Search This Blog

Monday, April 13, 2009

How to move the domains across the machines in WebLogic

I have a domain with the name test_domain on my Windows machine , here I have one managed server with some applications deployed.

I would like to move this domain from this machine to the other machine.

On Windows machine use the command pack.cmd to create the domain template

pack.cmd -domain=E:\bea\user_projects\domains\test_domain  -template=C:\bea\user_templates\test_domain.jar -template_name="My WebLogic Test Domain"

Now move the test_domain.jar  to the linux machine.

On the linux machine run the command to create the domain -template=/home/ias/test_domain.jar -domain=/home/ias/bea/user_projects/domains/test_domain

After this go to the directory and run the command ,
cd /home/ias/bea/user_projects/domains/test_domain/bin test  http://localhost:7001

How to print the folder list that are available on a USB Drive

I am using the Sony MP3 player that can play from a USB drive, I have a difficulty in printing the folder list that are sorted on a last modifed date. This is how I generated the list

1. Use the program filelist ,

Download this from

2. filelist g:\ > dd.txt

3. type dd.txt | cut --delimiter=, --fields=2 > dd1.txt

4. After this generate the line numbers

type dd1.txt | uniq | nl > dd2.txt

3. Remove the characters like g:\ and “ etc

5. Now open the file in Excel or Word and Print the file

Monday, April 06, 2009

Beautify the XML Data

Use the following tool to beautify the XML.