Paul W Lee

Ranch Hand
+ Follow
since Jun 19, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Paul W Lee

I want to trace user interaction with a AJAX Web page, such as mouse click on or move over a button and keyboard input into a text field of a form. Basically, I'd like to know which element a user is operating on and which event the user triggered as well as the associated event handler. Would it be possible that I trace an event on an element and status change of an element of the DOM as well as the event handler using javascript?

Thanks!
Paul
hi,

I'm using weblogic, oracle9i, and want to test hibernate obejcts (no ejbs) using a standalone application. If it's possible, how to do that?

Also quite interested in how you test your hibernate objects?

regards,
Paul
Hi Steven,

Thank you for your reply.

Actually, i'm quite new to hibernate, and not yet clear for some basice concepts. The first problem is how to execute database operations using hibernate.

According to my understanding, there are 2 (or 3) ways to connect to database: one is to use JDBC connection pool; the other is JTA transaction. The project is under development and it seems difficult to do unit test if using JDBC connection pool because every time it has to deploy java classes on weblogic (or other web server).

Do you think my idea is correct?




Regards,

Paul
[ April 13, 2005: Message edited by: Paul W Lee ]
hi folks,

I'm using hibernate 2.0 and JTATransaction as transaction strategy, and the underlying database is oracle 9.

In the hibernate.cfg.xml:
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">false</property>
<property name="transaction.factory_class">net.sf.hibernate.transaction.JTATransaction</property>
<property name="connection.username">username</property>
<property name="connection.url">jdbc : oracle : thin: @ ip : port : sid</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

There is this error:
06:09:43,984 INFO [TransactionFactoryFactory] Transaction strategy: net.sf.hibernate.transaction.JTATransaction
06:09:44,000 ERROR [TransactionFactoryFactory] Failed to instantiate TransactionFactory
java.lang.InstantiationException: net.sf.hibernate.transaction.JTATransaction

Quite confused what happens, and how to heal it?

Thanks!


Paul

[ April 13, 2005: Message edited by: Paul W Lee ]
[ April 13, 2005: Message edited by: Paul W Lee ]
Hi everyone,
I'm going to implement a animation application that can automatically drawing some graphs. The scenario is like the following:
1. draw a graph, for example a tree, which nodes are randomly located,
2. adjust the positions of the nodes by some rules.
I want to show the changing step by step. but after the initial drawing( 1st step), the changings in 2nd step won't be displayed, and there is only the final view.
The psudocode is like:
paint( Graphics g ){
draw_the_graph( Graphics g ):
draw_node(g, a_node )
draw_edge(g, an_edge )
adjust_the_graph():
//do iteration to adjust all the nodes
for all the nodes:
set_new_position
draw_the_node
the_frame.repaint()
//iteration finish
}
Any one can help me?
Thank you in advance.
Regards,
Paul
[ May 01, 2004: Message edited by: Paul W Lee ]
19 years ago

Originally posted by Michael Yuan:
But I think both Palm and Symbian only support the MIDP at this time.


Does it means that i could not use a Linux PDA to implement my project?
Is there any other PDA emulator on Windows that offer graphical developement supports? Pocket...?
Many thanks.
Paul
20 years ago
Michael,
Nice to see your message.
Would you please recommend a specific emulator on Linux?
Many Thanks.
Paul
20 years ago

Originally posted by Fred Grott:
Paul you may have to do a VMWare or WINE soultion..


Fred,
Thank you for your message. Would you give me some more information about VMWare or WINE?
Thank you so much.
Regards,
Paul
20 years ago
Dear Michael, Fernando, and everyone,
I asked you some questions about the Linux PDA emulator, and then halted the threse. now I've got to faces the question again.
I am going to develop a graphical application for PDA by Java, and very interested in using a Linux PDA emulator. I've tried some emulators. Unfortunately, they can not run on RedHat Linux 9.
Would you please recommend an emulator that can: 1. run on RedHat Linux, and 2. support grahpical libraries of Java.
Thank you very much for your attention.

Regards,
Paul
20 years ago
Dear Michael, Fernando,
Dose the Sharp Linux PDAs, Zaurus, have any emulator? I searched the Sharp's website, but could not find any information...
Thank you.

Regards,
Paul
20 years ago
Hi Yuan, Fernando,
Thank you for yor help.
I could buy a Linux PDA, if it supports well to J2ME,particular Personal Profile. i am doing a research program, and the topic is to visualize clustered graph on small screen devices such as PDAs, so AWT package is a must.
Fernando, I saw your message on Sun Forum.J2ME.PersonalProfile. Thank you.
Regards,
Paul
20 years ago

Originally posted by Michael Yuan:
I have not touched Palm for quite sometime now since their Java support has been very weak. But I think you have to download a Palm emulator and a ROM image from Palm's developer site. Then you can install the IBM WME in it as an RPC application. The WME console should allow you to invoke J2ME applications.


Hi Yuan,
I've been away for several days, and just read your message.Thank you for your reply.
Now i am going to buy a PDA, and run some application developed by Personal Profile. would you give me some advices?
Thank you very much.

Paul
20 years ago
Dear Yuan,
Now i have an application based on Personal Profile(successfully compiled, can run in PC runtime envirometn ), and want to run it on a PalmOs emulator. But i dont know how to install this application into an emulator.
would you please help me?
regards,
Paul
20 years ago

Originally posted by Michael Yuan:
Well, Sun views J2ME as a specification not a product. Sun is hoping that other companies (device vendors) will take up the task to provide J2ME VMs for their devices. Sun cannot do everything for free. But the success of the Personal Profile has been limited -- so there has been limited choices of VMs.
You can get IBM's WebSphere Micro Environment for $6 -- it is a Personal Profile runtime.



Understood.
Again, thank you for your kindly help.

Regards,
Paul
20 years ago