Results 1 to 11 of 11
- 04-13-2008, 08:43 PM #1
Problem using thread +rmi in my homework
I compile my homework only 10marks
using as you know:
in new cmd
java -Djava.security.policy=policy MarketServer localhost
in new cmd
java -Djava.security.policy=policy CustomersClient localhost
my problem is in using threads....
can any one read code and help me discovering the problem please!
download attachment from 6post down
Last edited by IbrahimAbbas; 04-13-2008 at 10:08 PM.
- 04-13-2008, 08:45 PM #2
the two thread I wrote:
- 04-13-2008, 08:47 PM #3
I wrote too:
to save the items in market loading data from xml file
then when the customers buy
somthing I use this BillStruct to save their buying info
- 04-13-2008, 08:55 PM #4
- 04-13-2008, 09:52 PM #5
sorry I forget you have to delete the mypackage line in all .java files...
- 04-13-2008, 10:10 PM #6
modified attachment mypackage
this one final copy
- 04-13-2008, 11:57 PM #7
maybe I solved it, I wrote implements java.io.Serializable in BillStruct
- 04-14-2008, 02:51 AM #8
Now, the code I wrote working
but I have this problem:
the result of bills printed in MarketServer not in CustomersClient?
what do I do to solve this probleme, please, no one here in java-forums!
see attachment last version.
- 04-14-2008, 02:20 PM #9
I solved the problem: I used
a boolean finsided in threads to ensure that the value I want use it in String sum
Congratulations, you have a very long conversation with yourself here.
Just kidding.. :P It is good for others to know your problem and solution.
By the way, welcome to the forum."The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal
- 04-14-2008, 09:24 PM #11
- By wererabit in forum Advanced JavaReplies: 3Last Post: 04-10-2009, 10:35 PM
- By nvidia in forum NetBeansReplies: 2Last Post: 05-24-2008, 04:56 AM
- By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM
- By ChrisC in forum New To JavaReplies: 7Last Post: 11-27-2007, 05:36 AM