Results 1 to 2 of 2
Thread: help needed with project
- 06-16-2008, 02:42 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 1
- Rep Power
- 0
help needed with project
Hello everyone. Some help would be appreciated. I have created a wildlife resort database with access.
It has an animals table with 5 entries, a species table with 3 entries and a user table with 3 entries.
I have set up a JDBC-ODBC bridge.
The server side of this application when run gets stuck upon pressing connect the first time so I have to run the server again while the first server window is running in the background and press connect for it to start running. The server works just fine after that. I can add and remove from the tables using the server.
When I run the client and try to connect it. It connects but can't log in. It doesn't accept a username or password. So I can't add or remove tables on the client side of the aplication.
I think the problem is with the threads but I'm not sure what to do to fix it.
Also I use net beans for coding.
I have attached one of the classes i think might have the problem.Last edited by Ice_Angel; 06-17-2008 at 01:32 PM.
- 06-22-2008, 08:00 PM #2
Well, yes, it is a Threading issue - but......
This could be done in a Thread: public void connecting() throws IOException { and single threading is what is blocking the app, yes - but implementing reasonably relaible threading even as a student level work is remarkably fraught with frustrations and hidden errors that do not detect even with sophisticated techniques paired with deep consideration of the Threading domain.
Do you need help getting threads to talk across the application? Getting some get-going techinques for intra-process communication is neither difficult nor advanced, it is shielding ones efforts from failure in commercial grade applications that proves wisdom to be 'leave it alone'. Inter-process communication is another matter.
Just start with a static synchornized accessor( Object getSet ) and do a little twiddling in a super-simplified one-off written for the purpose of learning. If you are getting paid to do the work, you are on your own. Google for Java Real Time Specification, read the whole tuna.
Read every word in it's entire current form.
Similar Threads
-
help needed!!! :S
By mark-mlt in forum NetworkingReplies: 1Last Post: 04-14-2008, 09:27 AM -
Help needed.
By necro-1000 in forum AWT / SwingReplies: 2Last Post: 01-12-2008, 11:37 AM -
Help Needed
By pks in forum New To JavaReplies: 1Last Post: 01-09-2008, 12:07 AM -
Uni Project - GUI - Help Needed
By deeadeed in forum New To JavaReplies: 0Last Post: 12-03-2007, 11:10 PM -
help needed.
By dirtycash in forum New To JavaReplies: 3Last Post: 12-03-2007, 09:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks