The Artima Developer Community
Sponsored Link

Jini Forum
run jini on Internet....is it possible?

3 replies on 1 page. Most recent reply: May 16, 2003 12:46 AM by Abel Perez

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
sarang patel

Posts: 2
Nickname: anajwala
Registered: Apr, 2003

run jini on Internet....is it possible? Posted: Apr 12, 2003 11:36 PM
Reply to this message Reply
Advertisement
Hello friends,
I am a student of computer engg. and i am implementing jini print service project. I have refered the book "Core JINI".

I can success fully run this project on LAN but not on internet. I read in the book that in the reggie provided by SUN microsys., the TTL field is set to 15. Because of this the multicasting will work only through 15 roughters. Is this the reason why I am not being able to run this project on Internet ?

Giving you brief idea about what i did to run this service on Internet, I started "reggie" and "PrintService" at my home and my friend started "Client" at his home. We both were siting on internet trying to run this application. But the client could not find the printservice that I started.

So what should I do to solve this problem. I want to run my application on internet. I will be very greatefull if you can provide me the solution.
Thanking you, With regards,
Sarang Patel.


Cristi

Posts: 9
Nickname: cristiand
Registered: Feb, 2002

Re: run jini on Internet....is it possible? Posted: Apr 13, 2003 5:40 AM
Reply to this message Reply
Hello,

When I tried JINI on a LAN of Linux computers we had to reconfigure the firewalls on each machine (they were ) the machines running the server and the client in order to be able to communicate: reggie listens on what seem like random port numbers (such as 34754). Because of this we had to give unrestricted access to each computer participating in our testing experiments. Run netstat on windows, or netstat -lp on unix/linux to see what ports are open.

I only used unicast discovery, however, but the problem lied first at locating "reggie" on the server machine because of the firewall problem (that is done by using multicast). If you try unicast discovery for finding the service (you provide the IP of the machine with reggie and your server) do you still have the problem ? Unicast discovery is not done via UDP (where multicast is used) but with TCP which dows not care about TTL values.

Hope this helps.

Cristi.

sarang patel

Posts: 2
Nickname: anajwala
Registered: Apr, 2003

Re: run jini on Internet....is it possible? Posted: Apr 15, 2003 8:11 PM
Reply to this message Reply
Thanks Cristi for taking interest and giving reply,

I was having an idea that we can use jini on internet by Unicast Discovery, but i think Unicasting takes away, a little bit of, Dynamic Viscosity of JINI.

So I just wanted to know if it's possible to use Multicasting and still use jini on internet. Anyways...thanx for the reply.

Also I wan'na know how can we "set properties". I mean if I wan'na change TTL value how can I do it in JINI1.1. An API is provided for changing TTL value in version1.2, but not in version1.1. So if you are having an idea....

Bye for now,
Regards,
Sarang Patel.

Abel Perez

Posts: 3
Nickname: abel
Registered: May, 2003

Re: run jini on Internet....is it possible? Posted: May 16, 2003 12:46 AM
Reply to this message Reply
Using unicast to access services accross the internet only makes sense, multicasting regardless of the ttl will get no where, since all ISP's block UDP multicasts at the router level to avoid packet storms. However there is a solution that can keep your services using the discovery protocol. What you would have to do is create a virtual pipe between lookup services. For example, the lookup services running on your local network could register itself through unicast with the lookup service running on your freinds network, and vice versa. Jini services that would require a print service would multicast on your local network for a print service, if nothing is available locally, then your request could get delegated down the virtual pipe accross the internet to your freinds lookup service. This would allow you to both use multicast and unicast in a way that seems transparent to your jini clients/services.

To implement this approach you could extend SUN's reggie implementation of the lookup service and add the capabilty to delegate the lookup process to a remote lookup service, you could create some sort of relay agents between the two networks that would synchronize the two lookup services, or you could use an event delegation system between the two lookup services that notifies each other of new service registrations in attempt to maintain synchronization...

The list could go one, all you have to do is get a little creative and you can get around this problem :)

Abel Perez.

Flat View: This topic has 3 replies on 1 page
Topic: Corba and Jini Previous Topic   Next Topic Topic: Scripting question

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use