473,394 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Apache XML configuration modify sample.cfg.xml

1
I need to modify hibernate.cfg.xml with encrypted password by running my own java class.

Expand|Select|Wrap|Line Numbers
  1. <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC
  2.           "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  3.           "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="dialect">
  4.        org.hibernate.dialect.MySQLDialect
  5.      </property> <property name="connection.url">
  6.     jdbc:mysql://localhost:3306/dbname
  7.      </property> <property name="connection.username">user</property> <property name="connection.password">user123</property> <property name="connection.driver_class">
  8.     com.mysql.jdbc.Driver
  9.      </property> <property name="myeclipse.connection.profile">
  10.     driver
  11.      </property> </session-factory> </hibernate-configuration>
when I run my java class the above hibernate.cfg.xml file property "connection.password" needs to be modified with encrypted password. Modified xml file will be like below


Expand|Select|Wrap|Line Numbers
  1. <hibernate-configuration> <session-factory>
  2.     ........
  3.     ........
  4.      <property name="connection.username">user</property> <property name="connection.password">
  5.           abdl#56$!+-xdESQ@_%fE
  6.      </property>
  7.      ........
  8.      ........
  9.  
  10. </session-factory> </hibernate-configuration>
Advance thanks to help me in solving my problem any one..
Oct 10 '12 #1
0 2096

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephan Diehl | last post by:
Is there something similar to the PERL Apache::Admin::Config module out there that is written in Python? Stephan
2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
0
by: Serge Calderara | last post by:
Dear all, I just start to implement a configuration file for my application with appSettings section and others. As a startup phase I simply take some ready made example and see how it works....
3
by: B Squared | last post by:
I've having a problem getting PHP to work with Apache. I've just installed Apache and on a Fedora core3 system. The installs were pretty painless, just as expected. Then I pointed to a simple web...
3
by: Al Dykes | last post by:
Is there a usenet group for Apache questions? If I knew of one I'd post the question there. I can't get a MySQL connection in PHP code under apache to work. I'm learning LAMP, starting on a...
1
by: nickyeng | last post by:
i have 3 directory, members and sounds directories. the directories sounds and members need to be protected from access by unauthorised people. how to configure my server so that only users...
6
by: Bruce A. Julseth | last post by:
Okay. I'm still can't get Apache to restart after changing the httpd config file. I've upgraded my installation to 5.2. Apache 2.2.3 runs fine without any PHP additions. 1) I added my PHP...
2
by: Adam Baker | last post by:
I'm not sure whether the following is a problem with PHP or my Apache server. Minimal example: <?php if (isset($dummy)) echo "Set."; else echo "Not set."; echo...
9
by: YoLed | last post by:
Hello. I would like to add PHP and MySQL yo me local Apache server. So, I've seen it exist simple packages like EasyPHP, WAMP and MOV'AMP, but the three seems to install Apache too and I'm...
5
by: Mani | last post by:
Hi I have created one sample php script to upload excel sheets of very bigger sizes. Also the process happening with each records given in the excel sheets is bit complex. To allow bigger sizes,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.