Struts : is there a way to test the current module?
In a JSP, I want part of the content to be module dependent. How do I test the current module? ...
In a JSP, I want part of the content to be module dependent. How do I test the current module? ...
When an ArrayList is being returned from an EJB - i get an Exception on the client side. When i debug - i get a "com.sun.jdi.InovcationException" - my client and EJB run in the same server. I use RAD 7 - with WebSphere 6 test environment. Any info on how to overcome this "com.sun.jdi.InovcationException" ? The same EJB returning a Strin...
Hi, I know this is a stupid question and I really have been looking around for a few hours... but how can I get J2EE? I would like the j2ee and j2eeadmin tools. What do I download I have downloaded and installed the jdk-6u16-windows-i586 (Java SE Development Kit 6u16 for Windows) Can someone point me in the right direction? Thanks....
I am using a single JBoss deploy directory for multiple J2EE projects that I'm working on. (Note, I'm not looking for answers that tell me that I shouldn't be doing this.) I have written a scheduler service mbean that lives in the deploy directory, e.g., an XML file containing <server> ... <mbean code= ... > <attribute ....
I have the following snippet of code: String path = servletContext.getRealPath("/"); Now I got a bugreport from a user saying that the returned path is not an absolute path. The returned path is 'usr/local/...' instead of '/usr/local/...' , so getRealPath seems to be returning a relative path. I can see this, because the returned pat...
I would like to find out how to get IP address of the client, that is visiting my web pages. Content of JSP page: <% out.print( request.getRemoteAddr() + "<br>"); out.print( request.getRemoteHost() ); %> Output: 0:0:0:0:0:0:0:1 0:0:0:0:0:0:0:1 ...
Where to find it? ...
Hi, I have a web app and I want to offer the possibility of upload and download big files (more than 2 gigas) Is it possible? Does exist some open Source project that can help me? Thank you very much ...
when i am trying to create Connection Pool in Admin Console of J2EE 1.4 for MSAccess DataBase its throwing Exception while ping operation and message is appearing Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: sun.jdbc.odbc.JdbcOdbcDriver please provide solution needfully ...
I am streaming binary data (a CSV file extracted from the database as a Clob) to the browser by calling response.getOutputStream() and would normally wrap the OutputStream in a BufferedOutputStream when copying the data. Should I close the BufferedOutputStream or will this also close the underlying OutputStream? [Extra question: Do I n...
Hello gud fellas in my quest of learning spring, i created a web application with netbeans 6.7 in windows xp sp2.i've noticed some and have few question about that. 1 my applicationContext.xml config file is in WEB-INF and my test class cannot find it.i had a copy of it in source package under default package and i can be found.Isn't WE...
I have a j2ee webapp that's being used internally by ~20-30 people. There is no chance of significant growth in the number of users. From what I understood there's a trade-off between opening a new DB connection for each request made to the webapp (expensive, but doesn't block other users when the DB is in use), to using the singleton ...
Hi all, I have a J2ee application consisting of 1 web module and 1 EJB module. Inside my EJB module I have a stateful session bean containing my business logic. What I would like is: When a user logs in to my web application and creates a new session in the web tier I want that user to be assigned an instance of my session bean. At t...
i have created a jsp contains <% int i=10; if(i==10) throw new ArithmeticException("ItsMyGenExcepetion"); %> i have made entry in web.xml <error-page> <exception-type>java.lang.ArithmeticException</exception-type> <location>/errordisplay.jsp</location> </error-page> i have my errordisply.jsp contains <%@ page isErrorPage...
Does anybody know of anywhere where one might discover the relative levels of use of different enterprise platforms? eg. percentage of J2EE vs. Spring vs. .NET vs. the various other (sometimes more obscure) platforms. I have seen lots of comparisons of Java vs. C# and so on, but I am not interested in the Desktop or Web side, I am talki...
I attend in process of designing JEE web application. It consist of: - backend module (EJB 3.0) - 3 web modules (JSF) Our application must be secure, so some colleagues claim that it must be splitted into two or more separate servers - backend in one server, webapps in other(s). In our case performance isn't a problem but this architecu...
What s the best design pattern or best practice for data access (database access or file system access) in Distributed J2EE, .Net Environment, rails or php ? ...
Hi, Are we allowed to specify a method name with an access modifier of 'protected' or 'private' inside the <container-transaction><method></method></contaner-transaction> tag ? Below is a sample of the ejb-jar.xml: <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1"> ...
Hi, We have a J2EE webapp deployed to JBoss. This webapp is used for authentication purposes. Now we would like to have other webApps that are not written in java to communicate and authenticate against this webapp. The reason we want to do this is: Suppose we have a small webapp that does simple task for the user. This webapp could be...
I need to have a business logic running inside Glassfish 2.1 Appserver, which listens for inbound TCP connections and serves them. I feel that this kind of task is not really fit inside the appserver - maybe I should publish web service interfaces, etc, but I can't, at least not directly for the client. The client will connect to my app...