Skip to main content

Reg: EndpointServer and EndpointMessengerClient

9 replies [Last post]
vimal2007
Offline
Joined: 2007-03-22
Points: 0

Hi all,

I am trying to run the EndpointServer and EndpointMessengerClient separately on two command line terminals as it requires two separate instances of JXTA platform..The EndpointServer prints the EndpointAddress for
each protocol currently registered with the EndpointService instance.EndpointMessengerClient starts and prompts you to enter a message. After youhave entered a message, the client prompts for a destination Endpoint Address.

When i run EndpointServer,the following message is displayed as follows:
EndpointServerurn:jxta:jxta-NetGroup

When i try entering the endpoint address in this format,it says

"Unable to create messenger for the given address".Can i know the reason for this error?

The format of endpoint address is as follows:

tcp://192.168.31.100:3128/EndpointServiceurn:jxta:jxta-NetGroup/012345

Herewith am attaching the snapshots of both EndpointServer and EndpointMessengerClient.Pls help me,as this is very urgent.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asghar
Offline
Joined: 2005-07-26
Points: 0

Hi,

I guess - like many of us - you are trying to learn JXTA. It’s not easy and I see: You are missing some strategy, a correct methodic.
Parallel to other tasks and responsibilities, I’m learning JXTA too and I feel I’m doing it successfully. Here some tips for you:

• without solid understandings the features of [b]Java Programming language[/b], core libraries of [b]Java Standard Edition[/b], it’s never possible to become a skilled JXTA developer. And if your JXTA application must run on [b]Java ME[/b] - enabled devices, then you must know and understand a lot of other technologies, used in wireless industry. (The most important part is Generic Connection Framework, GCF).
• use all your experiences, gathered during past time with Java world.
• try to answer your question first by yourself!
• improve your learn - methodic permanently
• be aware: learning a Java technology is a process. (Time and effort is needed)

We can also see that, this is a forum, (mainly) ONLY for experienced JXTA programmers and the members able to answer questions, are busy with other tasks of higher priorities...so, it’s good, if you reduce the number of messages, you post to forum.

JXTA Platform for Java SE (JXSE) ver. 2.5 is sill not released and Programmer’s Guide ( a fundamental document) for previous version (JXTA 2.4.1) is still missing too!
While having full respect to all work done, I must say that several main documentations of JXTA platform have poor quality (perhaps because of pressing time, restricted human resource or … )
That is not acceptable for a Java - based technology, claiming to be leader in P2P computing!!!
This must definitively change!

When I think, that JXME is derived from JXSE … and Java ME is much more harder to learn (and to develop end-to-end apps for it) than Java SE … and JXTA networks without mobile peers will be never a complete “thing” … then I don’t get a good feeling about future of JXTA, specially regarding keeping the leading role in the P2P - segment of IT!
These mean we must learn JXTA better and faster to join the overloaded development - team.
We must know the future of JXTA depends on each of us and each of us is one of 30.000 JXTA community’s member, Sun Microsystems refers to! Also enough important….

During learning JXTA I understood, what is to do to make our community to one of most powerful Java community. I’m working on an initial concept for it and plan to discuss it with the community.
The main goal is a more powerful future of JXTA.
For that we surely need kind attention and support of Sun Microsystems.
One of important goal is to assist Sun Microsystems for a better leading of Java community.

I’m a fully independent person and would like to stand at the Sun site, because I like the culture of this enterprise and can see that Sun responds to it’s surrounding world correctly and fairly.

I sincerely believe in the statements mentioned above and some encouraging feedbacks are welcome!

Asghar

vimal2007
Offline
Joined: 2007-03-22
Points: 0

i use JXTA SE 2.3..yeah those are book examples.the examples in book were created using the Java 2 SDK Standard Edition version 1.3.1 from Sun Microsystems.all the example applications
should run on any operating system with an implementation of the Java 2
SDK and JVM version 1.3.1 or later.

vimal2007
Offline
Joined: 2007-03-22
Points: 0

all the example applications
should run on any operating system with an implementation of the Java 2
SDK and JVM version 1.3.1 or later.

vimal2007
Offline
Joined: 2007-03-22
Points: 0

the examples from that book is created using the Java 2 SDK
Standard Edition version 1.3.1 from Sun Microsystems.Is it because of version problem,my code is not working?

asghar
Offline
Joined: 2005-07-26
Points: 0

Hi,

The message „EndpointServerurn:jxta:jxta-NetGroup“ („EndpointServer urn:jxta:jxta-NetGroup) comes from one of JXTA platform’s dependencies, the java application: “Log4J”, developed by Apache Software Foundation and used by JXTA platform 2.4.1. Log4J provides debugging information.
Normally we don’t need to know details about it!

urn:jxta:jxta-NetGroup is the name for the default NetPeerGroup. (a group, each JXTA peer belongs to!). Therefore I think:
urn:jxta:jxta-NetGroup can not be a part of destination address, as you did.

You have two peers in a TCP / IP - based network. You must enter the destination address as mentioned by the description of the sample, you are using. I think it must be the same as the set IP address of your receiving peer. However I don’t know your sample and I don’t know shell, but I think it must deliver the same functionality and features as „automatic configuration“ does, which is (like Log4J) a part of JXTA 2.4 platform, and can be encountered within samples, delivered by Programmer’s Guide 2.3.x.
„automatic configuration“ includes GUI for easy configuration of JXTA platform. I think shell does the same but without GUI.

Asghar

vimal2007
Offline
Joined: 2007-03-22
Points: 0

Is it possible to do automatic configuration for the JXTA configuration dialog screen?have you used Network Manager?

asghar
Offline
Joined: 2005-07-26
Points: 0

Hi,

The automatic configuration is a part of JXTA platform 2.4.1 !

Simply use the samples of Programmer’s Guide 2.3.x!

For each sample: If the JXTA platform is not configured, then platform starts automatically the configuration tool, it’s GUI appears to allow you easily configure the platform.

If you want to reconfigure your platform, you just need to delete the created configuration file (named PlatformConfig, located in JXTA home directory of each sample) and restart the sample.
When platform misses the file „PlatformConfig“ then configuration tool will be started, before the current sample is started.

Asghar

thiagokurumin3
Offline
Joined: 2007-04-23
Points: 0

Hi Vimal2007,

Sorry, but I don't know answer your question now! But a have a question for you: These EndpointServer and the EndpointMessengerClient are examples from JXTA-Book published by Brendon J. Wilson? I'm trying to run these examples, however I'm having problems. What JXTA libraries are you using? JXTA SE 2.0? JXTA SE 2.3? JXTA SE 2.4? Maybe, if you answer me it will possible for me help you!

Note: I'm using JXTA SE 2.4.

vimal2007
Offline
Joined: 2007-03-22
Points: 0

Am using JXTA SE 2.3 and jre 1.4 with WinXP OS.
Can you help me?Am trying to run that book examples,but getting these errors as mentioned.