Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2008, 04:42 PM
Member
 
Join Date: Jun 2008
Posts: 1
Ice_Angel is on a distinguished road
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.
Attached Files
File Type: txt Connect.txt (7.5 KB, 2 views)

Last edited by Ice_Angel : 06-17-2008 at 03:32 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-22-2008, 10:00 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 695
Nicholas Jordan is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed!!! :S mark-mlt Networking 1 04-14-2008 11:27 AM
Help needed. necro-1000 AWT / Swing 2 01-12-2008 01:37 PM
Help Needed pks New To Java 1 01-09-2008 02:07 AM
Uni Project - GUI - Help Needed deeadeed New To Java 0 12-04-2007 01:10 AM
help needed. dirtycash New To Java 3 12-03-2007 11:17 PM


All times are GMT +3. The time now is 01:46 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org