Forums Register Login
Session dependent files.... ?
Hi all,
I have a client-server app. where I copy a number of files from the client onto the server and then do some checks on the files. The server side is written as an EJB.
Whilst these checks are ongoing on the server, if for whatever reason the connection is lost between client and server, how do I ensure that I don't get a load of files left on the server?
Will using a session bean take care of deleting the files if the system goes down? If not can anyone point me in the direction of how to handle this situation. (I would have thought that this is a common situation...)
Any help much appreciated.
Server would not do any automatic deleting of Files in the server. To achieve that you do your clean up job in ejbRemove()of the EJB.It will be called at the timeout of the bean. I presume that you are using stateful session bean for the purpose.
Many thanks...
I guess I was hoping for too much to assume it would automatically be handled for me... cheers for your help.
Also, Yes it is a stateful bean. I've been looking for a good example on how to implement/test the EJB I've written. I'm using JDeveloper, is there an easy way to test or do I have to deploy in order to test the functionality?
You need to deploy your bean into an application server as Oracle 9iAS or JBoss.
Cheers folks...
Am now busily trying to deploy on the embedded OC4J server on JDeveloper to test it. I think this will enable to test my client/server application.
The fact you can do that you can do this doesn't seem to be documented anywhere... or am I missing something.
But anyway thanks for your help.
Hey cool! They got a blimp! But I have a tiny ad:

This thread has been viewed 443 times.

All times above are in ranch (not your local) time.
The current ranch time is
Mar 17, 2018 05:06:24.