Generate and save a file

2001-06-06 Thread Markus Härnvi


[This might show up twice. I waited two days before sending it again]


Hi!

I need to save a file to disk from EJBCreate() in an entity bean.
What is the best way? I read that Weblogic allows you to violate the EJB 
specification and use a FileOutputStream. Does Orion let me do this as well?

I thought about using RMI to call an external method. But then I would have 
to start rmiregistry on the server as well as Orion. Or could Orion act as 
RMI-server too?

   /Markus







RE: Generate and save a file

2001-06-06 Thread Jason Smith

 I thought about using RMI to call an external method. But then I
 would have
 to start rmiregistry on the server as well as Orion. Or could
 Orion act as
 RMI-server too?


Sure, no problem.  You could also just send a JMS message to a queue and
have your server process listen for that.  Depending on how intensive the
call is, it might give you better performance than waiting for an RMI call
to complete.

-jason





Re: Generate and save a file

2001-06-06 Thread Lachezar Dobrev

   I personally use upload via HTTP from the EJB. Noone says i have to stop
using Client sockets :)))

   Lachezar.
   BTW. U can use streams in Orion. Try not to :)))


 [This might show up twice. I waited two days before sending it again]


 Hi!

 I need to save a file to disk from EJBCreate() in an entity bean.
 What is the best way? I read that Weblogic allows you to violate the EJB
 specification and use a FileOutputStream. Does Orion let me do this as
well?

 I thought about using RMI to call an external method. But then I would
have
 to start rmiregistry on the server as well as Orion. Or could Orion act as
 RMI-server too?

/Markus








RE: Generate and save a file

2001-06-06 Thread Markus Härnvi


How do I use Orion instead of rmiregistry?