Memory leak using session bean - how to make sure?

2001-09-05 Thread Diego Amicabile

Hi,

I am trying to find out why the application we
deployed on Orion has memory leaks. It happens since
we created a stateful session bean, which is very big,
which is associated with a HttpSession. How do I find
out how many stateful session beans are running, since
the console is buggy (always 0 instances , stateless
session bean - happens also with the Cart example). I
remove the session bean when the HttpSession is
closed, but this does not seem to work. How can I know
for sure that too many session beans are living and
are not getting passivated / removed? What could be
the reason for it?

Greetings 
Diego



__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it




Syslog

2001-04-10 Thread Diego Amicabile

This is the LoggerServlet which is loaded on startup

public class LoggerServlet extends HttpServlet {
  private static final String CONTENT_TYPE =
"text/html";
  /**Initialize global variables*/
  public void init(ServletConfig config) throws
ServletException {
super.init(config);
try {
  System.out.println("Trying to read configuration
file");
  Syslog.configure(new
File(getServletContext().getRealPath("/WEB-INF/logger.xml")));
 
Syslog.setLogMask(Syslog.atOrAbove(Syslog.DEBUG));
  Syslog.debug(this,"LoggerServlet started");
} catch (SyslogInitException sie) {
  sie.printStackTrace();
}
  }
  /**Clean up resources*/
  public void destroy() {
  }
}

This is my configuration file

 

 

  System.out 

   
ALL_CHANNEL 
INHERIT_MASK 
   

  

true 
false 
   

 

  

 

   

When I start the web application the message "Trying
to read configuration file"  appears, no exception is
thrown, so I assume the configuration file is read,
but nothing is written afterwards - so the Syslog does
not work!

Greetings 
Diego


__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it




Syslog

2001-04-09 Thread Diego Amicabile

Hi people,

has anybody tried to use the Syslog from protomatter
inside of Orion (http://protomatter.sourceforge.net)

I have tried and I was not successful. I let a
servlet, which is loaded on startup, load a
configuration file, I used the -Xnoclassgc option, but
even after the Syslog is initialzed nothing is ever
written into the log files. 
What should be done? Any idea?

Greetings
Diego



__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it




Setting up ProductServlet

2001-02-23 Thread Diego Amicabile

RUNNING THE PRODUCT SERVLET FROM ORION

Assuming you have done what is described in 
\orion\ejb\demo\install.txt

Add the following lines to the files :

/orion/config/default-web-site.xml
   
/orion/config/server.xml
  

/orion/application-deployments/ejbsamples/orion-application.xml
  

Create the file : /orion/
application-deployments/ejbsamples/product/orion-web.xml

 
http://www.orionserver.com/dtds/orion-web.dtd">





Create the directory :
/orion/ejb/demo/product/Web-inf/classes

Move the ProductServlet.* stuff to this newly created
directory.


Add to the file :
/orion/ejb/demo/Meta-inf/application.xml

 

   product 
   /product 
 


Create the file :
/orion/ejb/demo/product/Web-inf/web.xml


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">



ProductServlet
Product Servlet
ProductServlet


BASIC



Now you should be able to reach the servlet typing

http://localhost/product/servlet/ProductServlet



__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it