Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Corba > typedef sequenc...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 518 of 534
Post > Topic >>

typedef sequence with user defined objects

by "developmm@[EMAIL PROTECTED] " <developmm@[EMAIL PROTECTED] > Dec 5, 2007 at 01:27 AM

Hi i'm quite new to corba.
I need to implement Add.idl, but i can't find something similar on the
net, or some closer examples.
The idea is to implement the interface Add to store an array of
results (the sum of a and b). The client sends a and b to the server
and the server sends back an Add object that contains the resulting
sum (this is a must, this is how it should be done, i know i could do
this easier, also found examples here:
http://java.sun.com/developer/technicalArticles/releases/corba/
).
Could anyone give some links to achieve this, or code, or try to do
this together on this thread?

Here is my idl:

//Add.idl
module ArithApp {

	interface Add;
	typedef sequence <Add> AddJob;

	const unsigned short SIZE=10;
	typedef long array[SIZE];

	interface Add
	{
		AddJob addArrays(in array a, in array b);
	};
};

Thanks for your time.




 2 Posts in Topic:
typedef sequence with user defined objects
"developmm@[EMAIL PR  2007-12-05 01:27:28 
Re: typedef sequence with user defined objects
Mark Woyna <woyna@[EMA  2007-12-05 06:42:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 2:30:20 CDT 2008.