Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Zied ABID
L'output is  just printed in consol , search in the code  some : 
System.out.println you certainly noticed that ..


for multiples send and receive ... you can code it , you have already 
the little  code of mine 


I hope you can success to do it

Mohannad a écrit :


thanks Marcel and Craig for these hints.

Thanks Zied for this nice files, but there is no output to see. I 
edited the code file but I didn't know where can I get the output.


Also, can we send multiple messages and receive them by the client (as 
more then one ping - pong )


Mohannad



On Wed, Apr 16, 2008 at 3:04 PM, Zied ABID <[EMAIL PROTECTED]> 
wrote:


Hi again,

this is what I code , you can take an idea :

PongTest is a subscriber that wait for a "ping" message
PingTest is a publisher that wait for a "pong" message after
sending a "ping" message and calculate the latency

I hope that help you little

PS : running in console with correct argument for server, port
,CallBack port 


Zied


Mohannad a écrit :

thanks Zied,
These files will be helpful. However, I need tools for
measurement. I used jconsole but I didn't find for example a
way to measure the time delay or packet transmission time.

Is there any function in Jconsole will help to support this ?

Thanks,

Mohannad

On Wed, Apr 16, 2008 at 12:01 PM, Zied ABID
<[EMAIL PROTECTED]> wrote:

   Dear Mohannad,

   If I understand, you want just use xmlBlaster to publish and
   receive message, so you should take a look on javaClients
   HelloWorld in
   $XMLBLASTER_HOME/demo/javaClients specially : HelloWorldPublish
   and HelloWorldSubscribe

   $XMLBLASTER_HOME/demo/HelloWorld6 is helpful too to have an
idea
   on protocol's configuration


   I'm begging also in xmlBlaster , so I hope that is helpful


   Zied


   Mohannad a écrit :

   thanks Marcel,

   I need the XMLBlaster for just publish messages and the
   clients simply will receive them. So by changing the
code of
   Java file in the client side (will lead somehow to
different
   seniors), and then we can take some approximate
measurements.

   If this possible at least to build some approximation
and not
   necessary to be very accurate, I will be appreciate it
if you
   could help us to make it by this Middleware package.

   Thanks again,

   Mohannad

   On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff
   <[EMAIL PROTECTED] 
>
   


Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Mohannad
thanks Marcel and Craig for these hints.

Thanks Zied for this nice files, but there is no output to see. I edited the
code file but I didn't know where can I get the output.

Also, can we send multiple messages and receive them by the client (as more
then one ping - pong )

Mohannad



On Wed, Apr 16, 2008 at 3:04 PM, Zied ABID <[EMAIL PROTECTED]> wrote:

> Hi again,
>
> this is what I code , you can take an idea :
>
> PongTest is a subscriber that wait for a "ping" message
> PingTest is a publisher that wait for a "pong" message after sending a
> "ping" message and calculate the latency
>
> I hope that help you little
>
> PS : running in console with correct argument for server, port ,CallBack
> port 
>
>
> Zied
>
>
> Mohannad a écrit :
>
> > thanks Zied,
> > These files will be helpful. However, I need tools for measurement. I
> > used jconsole but I didn't find for example a way to measure the time delay
> > or packet transmission time.
> >
> > Is there any function in Jconsole will help to support this ?
> >
> > Thanks,
> >
> > Mohannad
> >
> > On Wed, Apr 16, 2008 at 12:01 PM, Zied ABID <[EMAIL PROTECTED]>
> > wrote:
> >
> >Dear Mohannad,
> >
> >If I understand, you want just use xmlBlaster to publish and
> >receive message, so you should take a look on javaClients
> >HelloWorld in
> >$XMLBLASTER_HOME/demo/javaClients specially : HelloWorldPublish
> >and HelloWorldSubscribe
> >
> >$XMLBLASTER_HOME/demo/HelloWorld6 is helpful too to have an idea
> >on protocol's configuration
> >
> >
> >I'm begging also in xmlBlaster , so I hope that is helpful
> >
> >
> >Zied
> >
> >
> >Mohannad a écrit :
> >
> >thanks Marcel,
> >
> >I need the XMLBlaster for just publish messages and the
> >clients simply will receive them. So by changing the code of
> >Java file in the client side (will lead somehow to different
> >seniors), and then we can take some approximate measurements.
> >
> >If this possible at least to build some approximation and not
> >necessary to be very accurate, I will be appreciate it if you
> >could help us to make it by this Middleware package.
> >
> >Thanks again,
> >
> >Mohannad
> >
> >On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff
> ><[EMAIL PROTECTED] 
> >>> wrote:
> >
> >   Mohannad wrote:
> >
> >   Dear Marcel,
> >
> >   I'm new here for using XMLBlaster. I am working with my
> >   college in my university on project which depends
> >totally on
> >   XMLBlaster package. We need the package for testing
> > several
> >   protocols on different operating systems (different
> > objects
> >   also) by changing the loads that sent. This will help to
> >   decide which protocol is better than other in specific
> >loads.
> >
> >   My doctor in my university suggested to use XMLBlaster
> >since
> >   it has powerful capability to monitor the real time and
> >then
> >   calculate statistics (e.g number of messages sent in
> >specific
> >   time period)
> >   I tried to figure out that capabilities by using
> >jconsole, but
> >   I could not find these real time monitoring for my
> >project's goal.
> >
> >   Could you help me to find a way to accomplish our
> >project goal?
> >
> >   Hi Mohannad,
> >
> >   you plan a scientific task.
> >
> >   To do such performance measurements you need to create an
> >accurate
> >   experimental setup
> >   and precisely define the measurement points with minimal
> >'noise'
> >   (cross effects etc) in between.
> >
> >   This needs to be coded depending on what your goals are
> >   and can't be generally done by a middleware.
> >
> >   I wish you success,
> >   Marcel
> >
> >
> >   Thanks Marcel,
> >
> >   Mohannad
> >
> >
> >
> >
> >   --Marcel Ruff
> >   http://www.xmlBlaster.org
> >   http://watchee.net
> >   Phone: +49 7551 309371
> >
> >
> >
> >
> >--Mo|-|annad
> >-وما توفيقي الا بالله -
> >
> >
> >
> >
> >
> > --
> > Mo|-|annad
> > -وما توفيقي الا بالله -
> >
>
>


-- 
Mo|-|annad
-وما توفيقي الا بالله -


Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Zied ABID

Hi again,

this is what I code , you can take an idea :

PongTest is a subscriber that wait for a "ping" message
PingTest is a publisher that wait for a "pong" message after sending a 
"ping" message and calculate the latency


I hope that help you little

PS : running in console with correct argument for server, port ,CallBack 
port 



Zied


Mohannad a écrit :

thanks Zied,
These files will be helpful. However, I need tools for measurement. I 
used jconsole but I didn't find for example a way to measure the time 
delay or packet transmission time.


Is there any function in Jconsole will help to support this ?

Thanks,

Mohannad

On Wed, Apr 16, 2008 at 12:01 PM, Zied ABID <[EMAIL PROTECTED]> 
wrote:


Dear Mohannad,

If I understand, you want just use xmlBlaster to publish and
receive message, so you should take a look on javaClients
HelloWorld in
$XMLBLASTER_HOME/demo/javaClients specially : HelloWorldPublish
and HelloWorldSubscribe

$XMLBLASTER_HOME/demo/HelloWorld6 is helpful too to have an idea
on protocol's configuration


I'm begging also in xmlBlaster , so I hope that is helpful


Zied


Mohannad a écrit :

thanks Marcel,

I need the XMLBlaster for just publish messages and the
clients simply will receive them. So by changing the code of
Java file in the client side (will lead somehow to different
seniors), and then we can take some approximate measurements.

If this possible at least to build some approximation and not
necessary to be very accurate, I will be appreciate it if you
could help us to make it by this Middleware package.

Thanks again,

Mohannad

On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff
<[EMAIL PROTECTED] 
>> wrote:

   Mohannad wrote:

   Dear Marcel,

   I'm new here for using XMLBlaster. I am working with my
   college in my university on project which depends
totally on
   XMLBlaster package. We need the package for testing several
   protocols on different operating systems (different objects
   also) by changing the loads that sent. This will help to
   decide which protocol is better than other in specific
loads.

   My doctor in my university suggested to use XMLBlaster
since
   it has powerful capability to monitor the real time and
then
   calculate statistics (e.g number of messages sent in
specific
   time period)
   I tried to figure out that capabilities by using
jconsole, but
   I could not find these real time monitoring for my
project's goal.

   Could you help me to find a way to accomplish our
project goal?

   Hi Mohannad,

   you plan a scientific task.

   To do such performance measurements you need to create an
accurate
   experimental setup
   and precisely define the measurement points with minimal
'noise'
   (cross effects etc) in between.

   This needs to be coded depending on what your goals are
   and can't be generally done by a middleware.

   I wish you success,
   Marcel


   Thanks Marcel,

   Mohannad




   --Marcel Ruff
   http://www.xmlBlaster.org
   http://watchee.net
   Phone: +49 7551 309371




-- 
Mo|-|annad

-وما توفيقي الا بالله -





--
Mo|-|annad
-وما توفيقي الا بالله - 


// from xmlBlaster/demo/HelloWorld2.java
import org.xmlBlaster.util.Global;
import org.xmlBlaster.util.SessionName;
import org.xmlBlaster.util.XmlBlasterException;
import org.xmlBlaster.client.qos.ConnectQos;
import org.xmlBlaster.client.qos.PublishQos;
import org.xmlBlaster.client.I_Callback;
import org.xmlBlaster.client.key.PublishKey;
import org.xmlBlaster.client.key.UpdateKey;
import org.xmlBlaster.client.qos.UpdateQos;
import org.xmlBlaster.client.I_XmlBlasterAccess;
import org.xmlBlaster.util.MsgUnit;


public class PingTest implements I_Callback
{
	private String oid="test";
	private Global glob;
	I_XmlBlasterAccess con;

	long fin = -1L;
	long debut = -1L;
	long latence = -1L; 


	

public PingTest(final Global glob) {


	try {
		this.glob =glob;		
	
		
		
		 // Parametre de connexion ( Obligatoire ) 
		  String[] args = { "-protocol", "XMLRPC",
	   		 "-dispatch/connection/plugin/xmlrpc/hostname", "xerxes",
	   		//"-dispatch/connection/plugin/xmlrpc/port","8080",
	   		// "-dispatch/callback/plugin/xmlrpc/hostname","misti",  
	   		 "-dispatch/callback/plugin/xmlrpc/port","40500"
	  };
		  glob.init(args);
		
		
		con=glob.getXmlBlasterAccess();
 ConnectQos qos = new ConnectQos(glob);

Re: [xmlblaster] Testing Protocols

2008-04-16 Thread McIlwee, Craig
Mohannad,  
   
Why rely on xmlBlaster for your statistics at all? Would it not be easier to 
record the statistics yourself since you will be writing both the sending and 
receiving components?   
   
Have the sender mark the time that some number of messages were sent, then have 
the receiver mark the time that all messages were received.  (End time - start 
time) / # msgs = average time to process each message.  Repeat with different # 
of messages and different protocols.  
   
If you need additional information at the xmlBlaster server you  can also look 
into something like a publish filter, or even build a custom version of xmlB 
and add insert your timing code there.
Craig
Open Roads Consulting, Inc.
757-546-3401
http://www.openroadsconsulting.com
  _  

  From: Marcel Ruff [mailto:[EMAIL PROTECTED]
To: xmlblaster@server.xmlBlaster.org
Sent: Wed, 16 Apr 2008 05:45:45 -0400
Subject: Re: [xmlblaster] Testing Protocols

Mohannad wrote:
> thanks Zied,
> These files will be helpful. However, I need tools for measurement. I 
> used jconsole but I didn't find for example a way to measure the time 
> delay or packet transmission time.
>
> Is there any function in Jconsole will help to support this ?
MBeans -> org.xmlBlaster -> node/xyz/client/aClient/session/1

Here you have very limited possibilities:

Operations: pingClientCallbackServer() -> will ping the client and 
report the millis needed
Attributes: pingRoundTripDelay -> Double click and you see a chart about 
the millis needed

Marcel
  
   
 

Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Marcel Ruff

Mohannad wrote:

thanks Zied,
These files will be helpful. However, I need tools for measurement. I 
used jconsole but I didn't find for example a way to measure the time 
delay or packet transmission time.


Is there any function in Jconsole will help to support this ?

MBeans -> org.xmlBlaster -> node/xyz/client/aClient/session/1

Here you have very limited possibilities:

Operations: pingClientCallbackServer() -> will ping the client and 
report the millis needed
Attributes: pingRoundTripDelay -> Double click and you see a chart about 
the millis needed


Marcel


Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Mohannad
thanks Zied,
These files will be helpful. However, I need tools for measurement. I used
jconsole but I didn't find for example a way to measure the time delay or
packet transmission time.

Is there any function in Jconsole will help to support this ?

Thanks,

Mohannad

On Wed, Apr 16, 2008 at 12:01 PM, Zied ABID <[EMAIL PROTECTED]>
wrote:

> Dear Mohannad,
>
> If I understand, you want just use xmlBlaster to publish and receive
> message, so you should take a look on javaClients HelloWorld in
> $XMLBLASTER_HOME/demo/javaClients specially : HelloWorldPublish and
> HelloWorldSubscribe
>
> $XMLBLASTER_HOME/demo/HelloWorld6 is helpful too to have an idea on
> protocol's configuration
>
>
> I'm begging also in xmlBlaster , so I hope that is helpful
>
>
> Zied
>
>
> Mohannad a écrit :
>
> > thanks Marcel,
> >
> > I need the XMLBlaster for just publish messages and the clients simply
> > will receive them. So by changing the code of Java file in the client side
> > (will lead somehow to different seniors), and then we can take some
> > approximate measurements.
> >
> > If this possible at least to build some approximation and not necessary
> > to be very accurate, I will be appreciate it if you could help us to make it
> > by this Middleware package.
> >
> > Thanks again,
> >
> > Mohannad
> >
> > On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> wrote:
> >
> >Mohannad wrote:
> >
> >Dear Marcel,
> >
> >I'm new here for using XMLBlaster. I am working with my
> >college in my university on project which depends totally on
> >XMLBlaster package. We need the package for testing several
> >protocols on different operating systems (different objects
> >also) by changing the loads that sent. This will help to
> >decide which protocol is better than other in specific loads.
> >
> >My doctor in my university suggested to use XMLBlaster since
> >it has powerful capability to monitor the real time and then
> >calculate statistics (e.g number of messages sent in specific
> >time period)
> >I tried to figure out that capabilities by using jconsole, but
> >I could not find these real time monitoring for my project's
> > goal.
> >
> >Could you help me to find a way to accomplish our project goal?
> >
> >Hi Mohannad,
> >
> >you plan a scientific task.
> >
> >To do such performance measurements you need to create an accurate
> >experimental setup
> >and precisely define the measurement points with minimal 'noise'
> >(cross effects etc) in between.
> >
> >This needs to be coded depending on what your goals are
> >and can't be generally done by a middleware.
> >
> >I wish you success,
> >Marcel
> >
> >
> >Thanks Marcel,
> >
> >Mohannad
> >
> >
> >
> >
> >--Marcel Ruff
> >http://www.xmlBlaster.org
> >http://watchee.net
> >Phone: +49 7551 309371
> >
> >
> >
> >
> > --
> > Mo|-|annad
> > -وما توفيقي الا بالله -
> >
>
>


-- 
Mo|-|annad
-وما توفيقي الا بالله -


Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Zied ABID

Dear Mohannad,

If I understand, you want just use xmlBlaster to publish and receive 
message, so you should take a look on javaClients HelloWorld in
$XMLBLASTER_HOME/demo/javaClients specially : HelloWorldPublish and 
HelloWorldSubscribe


$XMLBLASTER_HOME/demo/HelloWorld6 is helpful too to have an idea on 
protocol's configuration



I'm begging also in xmlBlaster , so I hope that is helpful


Zied


Mohannad a écrit :

thanks Marcel,

I need the XMLBlaster for just publish messages and the clients simply 
will receive them. So by changing the code of Java file in the client 
side (will lead somehow to different seniors), and then we can take 
some approximate measurements.


If this possible at least to build some approximation and not 
necessary to be very accurate, I will be appreciate it if you could 
help us to make it by this Middleware package.


Thanks again,

Mohannad

On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff <[EMAIL PROTECTED] 
> wrote:


Mohannad wrote:

Dear Marcel,

I'm new here for using XMLBlaster. I am working with my
college in my university on project which depends totally on
XMLBlaster package. We need the package for testing several
protocols on different operating systems (different objects
also) by changing the loads that sent. This will help to
decide which protocol is better than other in specific loads.

My doctor in my university suggested to use XMLBlaster since
it has powerful capability to monitor the real time and then
calculate statistics (e.g number of messages sent in specific
time period)
I tried to figure out that capabilities by using jconsole, but
I could not find these real time monitoring for my project's goal.

Could you help me to find a way to accomplish our project goal?

Hi Mohannad,

you plan a scientific task.

To do such performance measurements you need to create an accurate
experimental setup
and precisely define the measurement points with minimal 'noise'
(cross effects etc) in between.

This needs to be coded depending on what your goals are
and can't be generally done by a middleware.

I wish you success,
Marcel


Thanks Marcel,

Mohannad




-- 
Marcel Ruff

http://www.xmlBlaster.org
http://watchee.net
Phone: +49 7551 309371




--
Mo|-|annad
-وما توفيقي الا بالله - 




Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Mohannad
thanks Marcel,

I need the XMLBlaster for just publish messages and the clients simply will
receive them. So by changing the code of Java file in the client side (will
lead somehow to different seniors), and then we can take some approximate
measurements.

If this possible at least to build some approximation and not necessary to
be very accurate, I will be appreciate it if you could help us to make it by
this Middleware package.

Thanks again,

Mohannad

On Wed, Apr 16, 2008 at 11:00 AM, Marcel Ruff <[EMAIL PROTECTED]> wrote:

> Mohannad wrote:
>
> > Dear Marcel,
> >
> > I'm new here for using XMLBlaster. I am working with my college in my
> > university on project which depends totally on XMLBlaster package. We need
> > the package for testing several protocols on different operating systems
> > (different objects also) by changing the loads that sent. This will help to
> > decide which protocol is better than other in specific loads.
> >
> > My doctor in my university suggested to use XMLBlaster since it has
> > powerful capability to monitor the real time and then calculate statistics
> > (e.g number of messages sent in specific time period)
> > I tried to figure out that capabilities by using jconsole, but I could
> > not find these real time monitoring for my project's goal.
> >
> > Could you help me to find a way to accomplish our project goal?
> >
> Hi Mohannad,
>
> you plan a scientific task.
>
> To do such performance measurements you need to create an accurate
> experimental setup
> and precisely define the measurement points with minimal 'noise' (cross
> effects etc) in between.
>
> This needs to be coded depending on what your goals are
> and can't be generally done by a middleware.
>
> I wish you success,
> Marcel
>
> >
> > Thanks Marcel,
> >
> > Mohannad
> >
> >
> >
>
> --
> Marcel Ruff
> http://www.xmlBlaster.org
> http://watchee.net
> Phone: +49 7551 309371
>
>


-- 
Mo|-|annad
-وما توفيقي الا بالله -


Re: [xmlblaster] Testing Protocols

2008-04-16 Thread Marcel Ruff

Mohannad wrote:

Dear Marcel,

I'm new here for using XMLBlaster. I am working with my college in my 
university on project which depends totally on XMLBlaster package. We 
need the package for testing several protocols on different operating 
systems (different objects also) by changing the loads that sent. This 
will help to decide which protocol is better than other in specific loads.


My doctor in my university suggested to use XMLBlaster since it has 
powerful capability to monitor the real time and then calculate 
statistics (e.g number of messages sent in specific time period)
I tried to figure out that capabilities by using jconsole, but I could 
not find these real time monitoring for my project's goal.


Could you help me to find a way to accomplish our project goal?

Hi Mohannad,

you plan a scientific task.

To do such performance measurements you need to create an accurate 
experimental setup
and precisely define the measurement points with minimal 'noise' (cross 
effects etc) in between.


This needs to be coded depending on what your goals are
and can't be generally done by a middleware.

I wish you success,
Marcel


Thanks Marcel,

Mohannad





--
Marcel Ruff
http://www.xmlBlaster.org
http://watchee.net
Phone: +49 7551 309371



[xmlblaster] Testing Protocols

2008-04-16 Thread Mohannad
Dear Marcel,

I'm new here for using XMLBlaster. I am working with my college in my
university on project which depends totally on XMLBlaster package. We need
the package for testing several protocols on different operating systems
(different objects also) by changing the loads that sent. This will help to
decide which protocol is better than other in specific loads.

My doctor in my university suggested to use XMLBlaster since it has powerful
capability to monitor the real time and then calculate statistics (e.g
number of messages sent in specific time period)
I tried to figure out that capabilities by using jconsole, but I could not
find these real time monitoring for my project's goal.

Could you help me to find a way to accomplish our project goal?

Thanks Marcel,

Mohannad