Use JMS/MDB. Your client can either call a SB proxy that deposits tasks to a JMS inqueue, or your client can deposit these tasks directly to a JMS inqueue. Then have MDBs process from inqueue and place results in out queue. Then once again you have the option of having your client directly wait for the result(s) from the outqueue, or have the client call a SB proxy which blocks until all 3 results show up in the outqueue, calculates the results and return the single desired value.
Gene
"������" <[EMAIL PROTECTED]> wrote:
I should like to get return value through processing three sessionbean
simultaneously in EJB like Thread Programing in normal programming.
Simple for example...
SimpleManager
{
simpleMethod(String id)
{
// this part must be done like multithread programming....
String a = aRemote.get(id);
String b = bRemote.get(id);
String c = cRemote.get(id);
return a+b+c;
}
}
*) here, SimpleManager, aRemote, bRemote, cRemote is SessionBean
Simply for example like this way, it call each remote sessionbean step by step..
i know to call these remote sessionbean simultaneously, not step by step
like multithread programming ..
And after all is done, i must know each return value. (a, b, c...)
I wanna know how to find solution.
Because it is not recommended to use Thread in EJB....
sorry for my poor english...
i wait your answer, bye ~~
----------------------------------------------- ��ſ��� ������ ���ͳ� Ŀ�´�Ƽ!! ���� �� ��
20(�ְ� 100)�ް� ���� ���ϰ���, POP3����, ���� Ȯ��..
http://www.bcline.com
Do You Yahoo!?
Yahoo! Health - Feel better, live better
