Per Nyfelt | 2 Apr 14:16 2005
Picon
Picon

Re: transaction

You probably do not need to do explicit transaction management but rely on 
declarative transaction handling instead (i.e. mark mutating methods as 
update methods).

Regards,
Per

lördagen den 2 april 2005 03.18 skrev budi hartono:
> i want to develop a website.
> should i use some transaction????
> like tx.begin(), commit(), etc???
> thanks for reply
>
>
>
> ---------------------------------
> Yahoo! Messenger
>  Show us what our next emoticon should look like. Join the fun.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
budi hartono | 2 Apr 03:18 2005
Picon

transaction

i want to develop a website.
should i use some transaction????
like tx.begin(), commit(), etc???
thanks for reply

Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
Per Nyfelt | 6 Apr 20:51 2005
Picon
Picon

Re: Query Language

Hi Arnold,

AFAIK, noone is working on a query system for Ozone at this point 
see http://sourceforge.net/mailarchive/message.php?msg_id=8531163 for some 
options.

Regards,
Per

onsdagen den 6 april 2005 19.24 skrev arnold_mad:
> Message body follows:
>
> Hi !
>
> I'm really impressed how good ozone works. The only problem
> is that i have todo complex queries. Do you know when ozone
> will offer a query language where you can do queries with
> LIKE, AND, OR and NOT ?
>
> yours
>
> arnold
>
> --
> This message has been sent to you, a registered SourceForge.net user,
> by another site user, through the SourceForge.net site.  This message
> has been delivered to your SourceForge.net mail alias.  You may reply
> to this message using the "Reply" feature of your email client, or
> using the messaging facility of SourceForge.net at:
> https://sourceforge.net/sendmessage.php?touser=1118090

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Chinyi Woo | 7 Apr 05:33 2005
Picon

exception in car and garage examples in user guide

Hi,
I am a new comer. When I played ozone 1.2 on windonws according to the
user's guide, it threw exception as follows:
-------------------------------------------------------------------------------------------------------
H:\programming\ozone\samples\car>java MyApp create
Connected ...
H:\programming\ozone\samples\car>java MyApp print
Connected ...
The car gottfried is 48 years old.
Exception in thread "main" java.lang.NullPointerException
       at org.ozoneDB.DxLib.net.DxClient.send(Unknown Source)
       at org.ozoneDB.ExternalDatabase.close(Unknown Source)
       at MyApp.main(MyApp.java:28)
-------------------------------------------------------------------------------------------------------
You can see that the car is succesfully created but exception happened
at print option. And I got similar output when I test Garage example:
-------------------------------------------------------------------------------------------------------
H:\programming\ozone\samples\car>java GarageApp create
Connected ...

H:\programming\ozone\samples\car>java GarageApp add firstcar 2004
Connected ...
carname: firstcar; year: 2004
Exception in thread "main" java.lang.NullPointerException
       at org.ozoneDB.DxLib.net.DxClient.send(Unknown Source)
       at org.ozoneDB.ExternalDatabase.close(Unknown Source)
       at GarageApp.main(GarageApp.java:55)
-------------------------------------------------------------------------------------------------------
In the Garage, I can not even create car. I followed the instruction
exactly and everything during compilation works fine. I also attach a
snapshot on server side:
-------------------------------------------------------------------------------------------------------
Sever side:        
(Ctrl-C or 'q' to shutdown without admin tool)
WARN   [Thread-5] InvokeServer - handleClientException(): java.net.SocketExcepti
on: Connection reset
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
        at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source)
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Sourc
e)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at org.ozoneDB.DxLib.net.DxClient.receive(Unknown Source)
        at org.ozoneDB.DxLib.net.DxMultiServerClient.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
-------------------------------------------------------------------------------------------------------
Another question is related to the transaction. In the user's guide,
it says every method outside server is a transaction. I test it by
putting System.exit(0) in the CarImpl.java  as follows:
-------------------------------------------------------------------------------------------------------
                public static void createCar() throws Exception {
                    // create a new Car object with the name "my_first_car"
                    // the return value is Car_proxy, which implements
the Car-interface
                    Car car = (Car)(db.createObject( CarImpl.class.getName(), 0,
                            "my_first_car" ));
                    System.out.println("exit");
                    System.exit(0);
                    car.setName( "gottfried" );
                    car.setYearOfConst( 1957 );
                }
-------------------------------------------------------------------------------------------------------
I expected no car would have been created. However, when I run:
-------------------------------------------------------------------------------------------------------
H:\programming\ozone\samples\car>java MyApp create
Connected ...
exit

H:\programming\ozone\samples\car>java MyApp print
Connected ...
The car  is 2005 years old.
Exception in thread "main" java.lang.NullPointerException
        at org.ozoneDB.DxLib.net.DxClient.send(Unknown Source)
        at org.ozoneDB.ExternalDatabase.close(Unknown Source)
        at MyApp.main(MyApp.java:28)
-------------------------------------------------------------------------------------------------------
There is still a car created with default time. Now I am confused.
Could anyone help me on these two questions?

Thanks
Chinyi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

Gmane