Wednesday, January 19, 2005

Now onto hibernate

ya.. writing after a lot of time now ..
almost a month.. went home n all..

well so the ghost of linux, that was sitting on my neck has vanished in this perios so now no more linux stuff is going on. Linux is prettiely sitting on my machine as second OS. thats it.


now am concentrating on the much ignored part by me, Hibernate.

1. Connection problem
for long time I was not abel to get connection with HSQL db thru hibernate.
yday i could do that. finally.

well this is where i was wrong. I was trying to use the HSQL as a stnadalone in memory DB. i am not saying that we canot use the HSQL in that way, but at least i could not find out how..
finalyl this is what worked. I stsratedthe HSQL in server mode so as to accept multiple connections and then everythign worked out correctly. now i can view the tables in eclispe as well as i can connect to db simultaneously.

one change that i did was the connection name in hibernate was changed like this.


in hibernate.cfg.xml
original:
hibernate.connection.url was jdbc:hsqldb:test

now:
hibernate.connection.url is jdbc:hsqldb:hsql://localhost:9001

2. problem in saving multiple rows at one go
next problem i faced was i wanted to save multle rows into DB using single session.save().. passing a llist of my VO which will be individually represent the one one row in DB for corrosponding table. But seeming that is not possible todo. i had to revert back to inttarting on the list n using session.save() on one one object of the list.

3. QueryException: in expected
as of now am facing this problme. no solution still in sight.
am trying to get the data from the data thru hibernats session.find() but hb is throwing exception as above. hope someone will care to answer what can be the problem.

well enugh for today.

as am becoming more exprianced blogger.. I am plannig to use my own css and all so that my blog will be more readable. lets see what can be done about it.

thats all for today.

VJ

Tuesday, December 14, 2004

finally fedora network install worked

finally its done.

the description is as follows..

Hi, here is the way to do the network installation of fedora core 2/3. So enjoy fedora 2 from http://download.fedora.redhat.com/ now.

Problem: creating the boot disk of fedora core 2 give problem as it say disk full. So we cannot boot into fedora core 2 kernel and then get access to the RPMs present on some network location like http://download.fedora.redhat.com/

Prerequisite to the making my solution possible: some version of linux preinstalled. May be RH8.0/9.0.

NOTE: don’t forget to read the end note.

I picked up this method from net... so it’s not my own method.

Actual method description can be seen on this page:

http://www.johnwyles.com/archives/2004/07/05/fedora_core_2_network_install.php

Anyways, so I will short write this method below:

  1. Create a dir by some name like fc2inst in /boot of current Linux installation.
  2. You need to get isolinux folders contents in this folder which come out to be approximately 5-7 Mb in size. This I will upload on infylug for fc2. They can be obtained from : http://downloads.fedora.redhat.com/pub/fedora/linux/core/2/i386/os/isolinux/
  3. Once the contents are copied, we need to change grub.conf to put another boot menu in it.

This is what I added:

title Fedora Core installation

root (hd0,5)

kernel /boot/f2inst/vmlinuz ro root=LABEL=/

initrd /boot/f2inst/initrd.img

One thing to note is if you have separate boot partition then you should put the path accordingly.

  1. Now done J just reboot the system and select fedora core 2 installation. And set up will start on itself
  2. If you are lucky enough, your entire H/W gets detected and it asks for the location from where to pick up the installation sources. Just provide following
  3. the web location path : download.fedora.redhat.com and directory as : pub/linux/fc2/allfiles
  4. It will start downloading stage2.img and it will load a graphical installer for you!!

Hope this works for you.

CAUTION: The most dangerous part is your /boot will get formatted during the installation, so whatever we just copied to f2inst folder will not going to be there anymore.

So if anything goes wrong during the installation times, you might be left with unbootable system with GRUB: prompt. So be careful and do all this only when you have ample time at your disposal. This is just a warning as chances of anything going wring in installation are minimal.

So enjoy fedora core installation now anywhere in infosys without fedora CDs in your hands.

HTH,

Vijay


Saturday, December 11, 2004

Linux fedora installation update

as described in this like: http://www.johnwyles.com/archives/2004/07/05/fedora_core_2_network_install.php
I am going ot try the installation of fedora 2
have copied the isolinux files n then wheneer time permits i will be trying out things..
will keep u posted

c u then

Thursday, December 09, 2004

linux...

I finally reinstalled teh linux on my machine .. the thign i was pondering over for a time being.
this time i did one bad thing that is i removed teh home partition only one root partition is present.
and i gave custom installtion.
my ntfs access is gone. though the network access is present. so shouldnt be a prob.

well i will go again to linux in evening may be.. lets see then

Vijay

Wednesday, December 08, 2004

DbVisualizer

In my first post i would like ypou all to get introduced with one my favourite database connector called DbVisualiser. you can get free version downloaded from www.minq.se/products/dbvis/

its a universal database connector which uses JDBC as primery connector for the database.
We can use the application to conenct ot DB2, HSQL, oracle, MS sql server and lot amny more.. simultaneously. the great feature list doesnt stop here. we can have the the diagrammatic representation of the data abse tables's with the relationsships shown in it. the diagram also is quite cutomizable.

also iot comes with a SQL commnader window where you can type the SQL and get it executed with the nice tabulated format.

the features givein here are avaliable in free edition also.
lot more feature are avaliable in the paid version like chart drawing. but i have no experience of them.

I wished to put some pictures over here. but seems its not possible because all the tools over here to upload pictures are are non-freeware. os not avalialbe with me.
sometime i would give detail about how to configure the DbVisualiser to get connected.

till then Byee..

Vijay

intro... insight.. thoughts..

Hi..
I am just wondering will i really be able to manage this blog still i will definitely going to give it a try..

In ehr ei am going to put some technicla stuff that i come across .. or i might not be able to solve. my tries on solving the same, the newly learnt lessons out of the same...
hope that that will be useful for someone.

what else.. bout me.. am yet another damn software eng.. who is in j2ee arena[oh no, not again ;o)]..

work on servlet, jsp, struts, db2..
want to explore lot more things and wnat to go deep in the abobe mentioned stuff.. also i have unknown thrist of using linux.. which i try to salvage occasionally though at work i have to use windows.

Am not at all against MS as their OSes are nothig but wonderful... but i like to experiment so only i like linux also..

well enough for today..
Hope i will have eveerynow and then something to add here.. :-)

as of now i would expect to put some stuff on struts and hibernate also some linux related jabbering....

hope to start off soon..
VJ