Tuesday, October 13, 2015

How to read a Weblogic JMS file Store .DAT file

 

Usually, the JMS file store created will be with .DAT extension and is not in human readable format. You will have to use the weblogic.store.Admin utility to extract the content of file store into an XML file to read it. Follow these steps:

Step 1 . Run the setDomain.sh script

. ./setDomain.sh

image

step 2: GO the directory of the JMS file store location and type the below command to display the store admin prompt.

java weblogic.store.Admin

image

Step 3: Once logged into the WebLogic store admin prompt, use this command to open the JMS File store.

openfile -store <JMSFileStoreName>

image

Step 4 : Once file store is open use the next command to dump the content of the file store. This command will dump the output of file store into specified <filename>.xml file in location from where you launched store admin utility.

dump -store <JMSFileStoreName> -out <filename> -conn –deep

image

Step 5:  Close the file store

close -store <JMSFileStoreName>

image

Step 6 : Run the quit command to exit from store admin utility.

quit

You can open the XML file to read the content of JMS File store.

image

Below is an example file snippet of generated dump XML file.

image

1 comment: