Jar file and db4o file

I am creating a java application using the db4o db.
So I want the db4o db file to be inside the jar file of the application.
So how can I find a file inside the jar file?

ObjectContainer db=Db4o.openFile(Util.DB4OFILENAME);

It’s a read only file? Each time your program runs the jar files are extracted and executed. When the stops you will lose the data. Is it ok?