Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
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-10-2008, 12:46 PM
Member
 
Join Date: Jun 2008
Posts: 2
marlborino is on a distinguished road
Connection to WordNet with JWNL
Hi friends,
I did a java program which creates some thread. Into the run() of the thread, the program make a connection to WordNet through JWNL. My problem is that the threads collide when there are more than one call to JWNL and WordNet at the same time.
There's anyone who can help me??....thanks to all.

Ps. I don't understand how JWNL represent the connection to WordNet.
I do this method:

JWNL.initialize(FileInputStream("path/file_properties.xml"));

but it's a void type return method.....so how can I manage N distinct connection to WordNet??...
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-10-2008, 01:23 PM
Member
 
Join Date: Jun 2008
Location: Delhi, India
Posts: 6
upadhyay_java_guru is on a distinguished road
I Don't understand, what is the need of different JWNL connection, when u ready same xml file? Would u give me full detail?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-10-2008, 03:04 PM
Member
 
Join Date: Jun 2008
Posts: 2
marlborino is on a distinguished road
I would more than one connection because if 2 thread make a WordNet request at the same time the program goes in deadlock.....and so I would one connection for every started thread.....
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
How to use JWNL in java program ak.bhartiya Advanced Java 2 05-12-2008 09:24 AM
how to use jwnl.. i run a sample program it will ask properties file.. what can i do sathishk New To Java 1 02-16-2008 04:33 AM
no connection even Database 15 01-02-2008 02:50 PM
help me in JWNL vissu007 New To Java 1 07-14-2007 06:01 PM


All times are GMT +3. The time now is 07:08 PM.


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