How can I restrict number of Concurrent users on JBoss 4.0.4
Jboss 4.0.4 GA Apache 2.2 ...
Jboss 4.0.4 GA Apache 2.2 ...
Just wonder if i can deploy my java ee application in any application server for eg: glassfish, and user are able to access without typing the port number, for eg:http://abc.com (my current application url will be http://abc.com:8080) as from my knowledge, i might need another web server like for eg:Apache to redirect request to applica...
I am often asked to perform sizing and capacity planning for our clients. When our clients buy our products (basically J2EE web applications), they often ask what hardware they will need to run those products. Our recommendations often result in high-cost hardware acquisitions. So far, the best heuristics I developed is to compare the u...
I'm developing a J2EE web application and I would like to be able to run a method (or function, class, whatever - something) during the "republish" process. It would be nice if I could control when during the republish my function gets called (before, during, after, etc.) but a good first step would be getting something to be called auto...
I am building a web application that has to be able to do the following: Send emails to the (external) addresses registered by the users (say, Gmail, Yahoo Mail, etc). Send/receive emails to local mailboxes that live in the application. These are more "messages" in that sense. What are the potential open source technologies I could ...
I'm building a Java application which will download a HTML page from a website and save the file in my local system. I'm able to manually access the web page's URL via browser. But when I try to access the same URL in my Java program, the server returns a 503 Error. Here's the scenario: sample URL = http://content.somesite.com/demo/s...
We would like to serve some client requests within our J2EE application server (JBoss 4.2.3). I read that the J2EE spec doesn't allow opening a socket from an enterprise bean. But the spec suggests no alternatives. Specifically, enterprise beans should not: listen on, accept connections on, or multicast from a network socket...
Hi, I am using Connector/J 5.1.10 as the JDBC driver for my Database application (which uses MySQL). I have found that although the default ResultSet returned by a Statement is of type TYPE_FORWARD_ONLY, I am still able to safely call the previous() method on the ResultSet. I also looked at the source code (com.mysql.jdbc.ResultSetImp...
Just want to know the logic behind , allowing user comments to be editable for a few minutes in the site ,after which should be made readable.I had seen this in linkedin site. My solution to use create session during the comments submission and refresh for every 3 minutes and check whether the session has timed out after 14 minutes thro...
Hi, Stateless session beans do not maintain state. So does it mean they should not have instance variables? Thanks, Roger ...
How can I get the name of the current web app in J2EE? I'm quite comfortable with stand-alone Java, but J2EE is new to me. I'm writing some custom code to plug in to a third-party J2EE reporting package. I have multiple instances deployed on the same Tomcat server, so I have something like: C:\ +-- tomcat6 +-- webapps +-- ...
Exception during request processing: Caused by javax.servlet.ServletException with message: "#{registration.register}: javax.ejb.EJBTransactionRolledbackException" javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.cat...
I am working on java application which uses servlets, application server, jms, jmx etc. so is this the J2EE application. and are there any particular criteria to say a particular application is a J2ee application. ...
I'm writing my first JEE application, using EJBs, Servlet, JSPs and the likes. I'm using JBOSS 4.2 AS and Eclipse as and IDE, including tasks like starting and stopping the server. What I can't understand is that while logging instructions inside a jsp, like: <% System.out.println("Log this!"); %> log as expected, both in Eclipse c...
In a J2EE application, how do I create a global Filter that can access other webapps installed on that app server? ...
Hi. I have a j2ee application developed using spring framework and spring webflow. Currently all of my url requests go through the Web Flow. What I want is to be able to choose whether to direct it to Web Flow or an ordinary spring mvc controller. I have no idea how to direct it to custom controllers. How do I do this? I tried having t...
Hi, I have a web application running in jetty. I have to provide a configuration, like when the flag is set true access should be granted to users access the web application through ip instead of localhost. If the flag is not set to true, then the request other than localhost should be denied. How to do this? Thanks. ...
Jboss server was throwing an Exception all of a sudden "You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null". No changes made to the datasources, prior to this. Everything got normal after a server bounce... What are all the possibilities for this? ...
Hi, I am trying to understand where some of my application logic should go in my J2EE Application. I am new to J2EE and am looking at loading a lot of unstructured data from a legacy database and building a clean object model for use by my application. From my investigation I see J2EE apps have 2 components, Enterprise Bean and Web Appl...
Hello there. I'm trying to figure out how to use EJBs inside of a Class which is part of the Command Pattern, and that Command I'm going to use it inside of a Servlet, but inside of the Servlet when I use the Dependency Injection there are no problems, or course, but when I use it inside of a plain class (even running inside of the Servl...