Can we rename hibernate.cfg.xml file name to somename.cfg.xml? if so how can we use it?
Yes. You'll need to tell Hibernate what and where the new configuration file is.
yes it is possible.you need to specify the configuration file name and the location where it is as a argument of configure() method
Ex:- Configuration cfg = new Configuration();
cfg = cfg.configure("/myconf.xml"); here i think that myconf.xml is configuration file name