RE: [JBoss-user] How to get output

2001-07-20 Thread Dmitri Colebatch

Are you sure you want to do this?  If you want to block until the method
returns, why not just invoke a session bean?  MDB are for asynchronous
invocation.  What you are doing is clearly synchronous.  My advice would
be to use a session bean.

cheesr
dim

On Fri, 20 Jul 2001, Rajesh Vilasrao Bhujbal wrote:

> if i use EJB instead of servlet to send equest to JMS queue, can i put
> into loop untill i get output. how? 
> 
> -Original Message-
> From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 20, 2001 4:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] How to get output
> 
> 
> Hi,
> after you sent the message set your Servlet into a loop (with timeout)
> (eg
> while( NoResponse and NotTimeout) ). Let the Session Bean call a method
> on
> the servlet to set response material (e.g. setResponse(String)) and
> after
> the response is set let the Session bean change the boolean NoResponse
> so
> the servlet escapes the loop. Servlet can answer Rej.
> Burkhard
> - Original Message -
> From: "Rajesh Vilasrao Bhujbal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 20, 2001 11:39 AM
> Subject: [JBoss-user] How to get output
> 
> 
> Hi,
> 
> Q:1:
> I am using JBoss-2.2.2. I had done scheduling of requests from user
> using JMS queues. Following
> dia. depicts the flow of request:
> 
> Raj (User) request-> Servlet ---message---> MDB (asynchronously)
> --invokes---> Session Bean
> 
> how to go back to Raj   ??? <
> 
> After some business calculation in Session bean i want to send output to
> user. In such scenario how to send output to user? How to make client
> wait till he gets output?
> 
> ===
> Q:21:
> I have ten session/entity beans on the server. I want to call one of
> these beans at runtime through MDB. I have no idea about which bean to
> call at compile time i.e. I want to make call to session beans
> transparent.  Do we need to write configurations of all the beans in
> deployment descriptor? How to identify home interface of these session
> beans and then associate with MDB at runtime?
> 
> can we do this? how?
> 
> 
> Raj
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How to get output

2001-07-20 Thread Rajesh Vilasrao Bhujbal

if i use EJB instead of servlet to send equest to JMS queue, can i put
into loop untill i get output. how? 

-Original Message-
From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 4:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to get output


Hi,
after you sent the message set your Servlet into a loop (with timeout)
(eg
while( NoResponse and NotTimeout) ). Let the Session Bean call a method
on
the servlet to set response material (e.g. setResponse(String)) and
after
the response is set let the Session bean change the boolean NoResponse
so
the servlet escapes the loop. Servlet can answer Rej.
Burkhard
- Original Message -
From: "Rajesh Vilasrao Bhujbal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:39 AM
Subject: [JBoss-user] How to get output


Hi,

Q:1:
I am using JBoss-2.2.2. I had done scheduling of requests from user
using JMS queues. Following
dia. depicts the flow of request:

Raj (User) request-> Servlet ---message---> MDB (asynchronously)
--invokes---> Session Bean

how to go back to Raj   ??? <

After some business calculation in Session bean i want to send output to
user. In such scenario how to send output to user? How to make client
wait till he gets output?

===
Q:21:
I have ten session/entity beans on the server. I want to call one of
these beans at runtime through MDB. I have no idea about which bean to
call at compile time i.e. I want to make call to session beans
transparent.  Do we need to write configurations of all the beans in
deployment descriptor? How to identify home interface of these session
beans and then associate with MDB at runtime?

can we do this? how?


Raj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How to get output

2001-07-20 Thread Burkhard Vogel

Hi,
after you sent the message set your Servlet into a loop (with timeout) (eg
while( NoResponse and NotTimeout) ). Let the Session Bean call a method on
the servlet to set response material (e.g. setResponse(String)) and after
the response is set let the Session bean change the boolean NoResponse so
the servlet escapes the loop. Servlet can answer Rej.
Burkhard
- Original Message -
From: "Rajesh Vilasrao Bhujbal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 11:39 AM
Subject: [JBoss-user] How to get output


Hi,

Q:1:
I am using JBoss-2.2.2. I had done scheduling of requests from user
using JMS queues. Following
dia. depicts the flow of request:

Raj (User) request-> Servlet ---message---> MDB (asynchronously)
--invokes---> Session Bean

how to go back to Raj   ??? <

After some business calculation in Session bean i want to send output to
user. In such scenario how to send output to user? How to make client
wait till he gets output?

===
Q:21:
I have ten session/entity beans on the server. I want to call one of
these beans at runtime through MDB. I have no idea about which bean to
call at compile time i.e. I want to make call to session beans
transparent.  Do we need to write configurations of all the beans in
deployment descriptor? How to identify home interface of these session
beans and then associate with MDB at runtime?

can we do this? how?


Raj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to get output

2001-07-20 Thread Rajesh Vilasrao Bhujbal

Hi, 

Q:1:
I am using JBoss-2.2.2. I had done scheduling of requests from user
using JMS queues. Following 
dia. depicts the flow of request:

Raj (User) request-> Servlet ---message---> MDB (asynchronously)
--invokes---> Session Bean
 
how to go back to Raj   ??? <

After some business calculation in Session bean i want to send output to
user. In such scenario how to send output to user? How to make client
wait till he gets output?

===
Q:21:
I have ten session/entity beans on the server. I want to call one of
these beans at runtime through MDB. I have no idea about which bean to
call at compile time i.e. I want to make call to session beans
transparent.  Do we need to write configurations of all the beans in
deployment descriptor? How to identify home interface of these session
beans and then associate with MDB at runtime?

can we do this? how?


Raj


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user