Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Sending data from custom java agent
Sending data from custom java agent [message #108185] Thu, 09 August 2007 11:26 Go to next message
Jiri Bjalek is currently offline Jiri BjalekFriend
Messages: 12
Registered: July 2009
Junior Member
Hello,
I'm trying to develop Java agent but I have problem with sending data from
agent to client. My agent is inherited from BaseAgent and I'm using
super.sendData(destID, "myData".toCharArray()) call. Everything seems good
but in client this data message pops up in incomingData method in form of
byte array. In this byte array there are chars represented by low byte and
hi byte but the message is not complete, some characters are missing. The
number of missing characters depends on length of message. Can you help me
with this issue?

Can you give me some clues about correct Agent - Agent Controller
lifecycle (when can i register deregister from AC and so)

Thank you for your answer
Jiri
Re: Sending data from custom java agent [message #108276 is a reply to message #108185] Fri, 10 August 2007 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Jiri,
I don't know direct answers to your questions, but just few days ago
someone else asked how to create an agent and got a set of links to
quite interesting documents, that may help you find the answer. Please
look at "Creating a statistical agent" topic. There is some example
source code too.
Hope this helps.

Jiri Bjalek wrote:
> Hello,
> I'm trying to develop Java agent but I have problem with sending data
> from agent to client. My agent is inherited from BaseAgent and I'm
> using super.sendData(destID, "myData".toCharArray()) call. Everything
> seems good but in client this data message pops up in incomingData
> method in form of byte array. In this byte array there are chars
> represented by low byte and hi byte but the message is not complete,
> some characters are missing. The number of missing characters depends
> on length of message. Can you help me with this issue?
>
> Can you give me some clues about correct Agent - Agent Controller
> lifecycle (when can i register deregister from AC and so)
>
> Thank you for your answer
> Jiri
>
Re: Sending data from custom java agent [message #108786 is a reply to message #108185] Mon, 13 August 2007 13:59 Go to previous message
Igor Alelekov is currently offline Igor AlelekovFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Jiri,
It seems this is a defect described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150216 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=150217.
Hope it will be fixed soon.

Regards,
Igor
Previous Topic:AGR "thrashing"
Next Topic:[AGR] What are the portability issues between Windows and Linux?
Goto Forum:
  


Current Time: Thu Sep 19 13:59:41 GMT 2024

Powered by FUDForum. Page generated in 0.03351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top