Sagewire Logo

JINI - some questions, and example of chat.

5 Message(s) by 2 Author(s) originally posted in java language


From: Mr. X. Date:   Saturday, June 30, 2007
Hello,
I have looked for JINI examples,
and found them too complicated ones,
so I do not know where to start.

Besides there are several problems after install JINI 2.1 (starter kit),
and I'd like some answers to following, too, please.
1. In eclipse I do : import net.jini ... and the options are only :
net.jini.security.* and net.jini.security.policy.*
What should I do on Eclipse, and what should I declare on the class-path .
2. I do not know whether JRE 1.6 is fine, for using JINI,
or should I use only JDK 1.2 ?
3. Should I start some server side - How can I do that ?
4. Some of examples I have found on the Internet does not even compile.
i.e. :
http://www.enete.com/noel/nuggets_jini/index.html
if I search into :
http://www.enete.com/noel/nuggets_jini/pages/StartJiniSummary.html
but when running "r2" on "\nuggets \pages \examples \StartJini",
I got the message :
Exception in thread "main" JAVA.util.zip.ZipException: The system cannot
find the path specified
at JAVA.util.zip.ZipFile.open (Native Method)
at JAVA.util.zip.ZipFile.<init>(Unknown Source)
at JAVA.util.jar.JarFile.<init>(Unknown Source)
at JAVA.util.jar.JarFile.<init>(Unknown Source)

The situation is :
There is a server, keeps a whiteboard.
On the whiteboard any users can join, and put their own message
(or simple graphics, or whatever).
Any users on other computers, that joined the group can put it's message
(like chatting), and see others.
Right now no security needed.

The goal is to do above using JINI.
(simple - no security, etc...)

Thanks :)


From: Patrick May Date:   Saturday, June 30, 2007
"Mr. X." <no_spam_please@xxxxxxxxxxx> writes:
I have looked for JINI examples, and found them too complicated
ones, so I do not know where to start.



From http://www.jini.org, follow the link on the left to "Getting
Started". There are several examples there, including one from Dan
Creswell on creating a Jini service .

Besides there are several problems after install JINI 2.1 (starter
kit), and I'd like some answers to following, too, please.
1. In eclipse I do : import net.jini ... and the options are only :
net.jini.security.* and net.jini.security.policy.* What should I
do on Eclipse, and what should I declare on the class-path.



This is a better question for an Eclipse group. I'd suggest
using a text editor and command line rather than an IDE to get started
with Jini. You will get a better understanding of the details and
mechanics instead of spending time fighting with an IDE.

2. I do not know whether JRE 1.6 is fine, for using JINI, or should I
use only JDK 1.2 ?



I have not tried 1.6, but 1.5 works.

3. Should I start some server side - How can I do that ?



See Jan Newmarch's guide for step-by-step instructions:

http://jan.newmarch.name/JAVA/jini/tutorial/Jini.xml

[ . . . ]
The situation is :
There is a server, keeps a whiteboard. On the whiteboard any users
can join, and put their own message (or simple graphics, or
whatever). Any users on other computers, that joined the group can
put it's message (like chatting), and see others. Right now no
security needed.
The goal is to do above using JINI. (simple - no security, etc...)



You want a Jini service known as a JAVASpace. Dan Creswell
built Blitz (http://www.dancres.org/blitz/index.html), an open source
implementation. GigaSpaces (http://www.gigaspaces.com) has a
commercial, enterprise grade implementation underlying their Space
Based Architecture (DISCLAIMER: I work for GigaSpaces).

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc. | Large scale, mission-critical, distributed OO
| systems design and implementation.
pjm@xxxxxxxxxxx | (C++, JAVA, Common Lisp, Jini, middleware, SOA)


From: Mr. X. Date:   Monday, July 02, 2007
O.K.

What should I start now ?
(JINI come first or JAVASpace ?)

Let's examine JAVASpace,
need the simpliest sample only for that issue, step-by-step, please.

Thanks :)


From: Mr. X. Date:   Monday, July 02, 2007
I use kind of whiteboard, and it seems JINI covers other issues as well,
and it's like sinking in ocean.

I have found a good site : http://JAVA.sun.com/developer/Books/JAVASpaces/
and started from there.

Next I started over finding to discovering JAVAspace, using JINI :
LookupLocator & ServiceRegistrar, and also debuged my code ...

and now I am trying put the whole pazzle together.

I hope I will manage soon ...

(But I did not find so so good example arround the internet, that make my
efforts easier).

Thanks, anyway :)


From: Patrick May Date:   Wednesday, July 04, 2007
"Mr. X." <no_spam_please@xxxxxxxxxxx> writes:
I use kind of whiteboard, and it seems JINI covers other issues as
well, and it's like sinking in ocean.
I have found a good site :
http://JAVA.sun.com/developer/Books/JAVASpaces/ and started from
there.
Next I started over finding to discovering JAVAspace, using JINI :
LookupLocator & ServiceRegistrar, and also debuged my code ...
and now I am trying put the whole pazzle together.
I hope I will manage soon ...
(But I did not find so so good example arround the internet, that
make my efforts easier).



Did you try Jan Newmarch's website?

I just got back from vacation -- I will try to pull together an
example over the next few days.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc. | Large scale, mission-critical, distributed OO
| systems design and implementation.
pjm@xxxxxxxxxxx | (C++, JAVA, Common Lisp, Jini, middleware, SOA)



Next Message: code sample for JINI


Blogs related to JINI - some questions, and example of chat.

legal teen girl pic
chat java open teen hot orgy teen teen relationship arrow sateen dress shirt anal bangers hardcore porn teen bruce springsteen fire lyrics teenager bracelets summer jobs for teens in missouri sex teenmovies aqua teen theme song lyrics ...

My favourite bookmarks ( cool :)
Learn programming and download free java applets and source code. You can also find news about java and jini. Java Programming Tutorial: Learn Java programming. No prior programming experience is required for you to quickly begin ...

famous person in the 1840 in florida
"OpenBSD" "OpenOffice" "OpenSSH" "Apple Open Source" "JBoss" "Java Community Process" "Java, famous person in the 1840 i nflorida Jini, famos person in the 1840 in florida RMI, J2SE, JXTA, JSLEE, OSS, etc. famous person in the 1840 in ...

gui creator
The java charting objects articlecache java software in free java chat software for webmasters Perl java software download destructor software j2me softkey For example, download java software applets computer gui crweator java virtual ...

Java ebooks 2
The book starts with what Jini is and how it works. (In short, Jini allows Java clients to invoke remote services easily through Java.) The authors present a chat message server and explain the Jini architecture where clients look up ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional