j2ee

which connection pool to use with JPA/Toplink implementation in J2EE ?

I have J2EE Application where I am using JPA/Toplink now I want to implement external or internal connection pool ... please help me to figure out how to implement connection pooling with JPA/TopLink ... ...

Unit Testing an EJB

I'm looking for a way to apply TDD to Session Beans. can anyone provide advices and links on how to unit test them ? how to use JUnit to do so ? P.S : I'm new to Test Driven Development and Session Beans. I'm using EJB v2. ...

Best method of triggering a shell script from Java

I have a shell script which I'd like to trigger from a J2EE web app. The script does lots of things - processing, FTPing, etc - it's a legacy thing. It takes a long time to run. I'm wondering what is the best approach to this. I want a user to be able to click on a link, trigger the script, and display a message to the user saying tha...

Why do most people say that data services and the database are the most important parts of a system?

Why do most people say that data services and the database are the most important parts of a system? From what I have seen, it is the front end development: GUI, WEBUI, XAML that is the most important. Certainly more important than the middle and database tiers. I don't think it is a big deal to build an application's database. After...

Exclusive url-patterns in Tomcat web.xml descriptor

I am trying to redirect erroneous page requests - 404 errors - to a custom error page. In order for my servlet, instead of the root servlet, to handle these requests, I entered the following url-pattern: <url-pattern>/</url-pattern> Unfortunately, this also catches embedded requests for files like *.js, *.css, *.png, *.jpg, and other...

How can I manually load a Java session using a JSESSIONID?

I have a servlet which handles a multipart form post. The post is actually being made by a Flash file upload component embedded in the page. In some browsers, the Flash-generated POST doesn't include the JSESSIONID which is making it impossible for me to load certain information from the session during the post. The flash upload compon...

JSF button to reset the session

Is there a way to reset (clear) the session for a user, when he clicks on a button? ...

After session timeout where does JBoss redirect users to?

After this is reached in JBoss: <session-config> <session-timeout>30</session-timeout> </session-config> where does it redirect users to? Can I change the page it redirects to? ...

how to distribute java desktop application ?

which is the alternate to distribute java .. i dont want to add jre in my extracted files i dont want to give away my .jar file to user end user just install and use application.. which dbms to use so that user dont need to configure like MSSQL needs configuration of server. how to decrease execute time of my application it takes ...

pagination on jsp with DB2 as backend

I am retrieving thousands of rows from the database, but I want to display only about 200 on one jsp. I am using pagination by creating links to the next rows. Currently using DB2, the only thing I can do is a FETCH FIRST 200 rows. So by the time I get to the 5th page, I am doing a FETCH FIRST 1000 rows and then I am displaying 800 to 1...

Is there an Open-Source Project that uses EJB?

Hello, I started reading recently about J2EE technologies and mainly EJB. Although I located quite a lot of Open Source Application Servers, I haven't seen any actual application that uses some version of EJB. Are you aware of any FOSS application that uses EJB? It is my understanding that EJBs are mainly focused on enterprise applicat...

J2EE Question: How can I do this ?

Firstly, it was hard to include the question inside the title, so don't bash me. I have a web framework created by someone and I need to learn to use it. Let's say I have this HTML form: <form action="servletX" method="get"> <input name="action" value="search" type="submit"> </form> When the search button is submitted, inside of...

Relationship between JSP and JEE/J2EE

Is JSP part of the whole JEE/J2EE package? How are they related? ...

Recommended Practise to Externalize Queries in J2EE (Specific Seam)

For the statistics part of an application there are several queries that often change and are also rather long. Both IMHO arguments to remove the queries from the source code and put them somewhere where they can be easily edited in an eye friendly format and also copy / pasted from and to a QL editor. This disqualifies named-queries fro...

How do I setup my MySQL with Eclipse IDE?

I am using Eclipse EE IDE and I am using the MySql Connector/J driver. How do I set up a properties file with all the information(DB URL, DBusername,etc) Also I see that you need a DBname and DBurl for the properties file, How do I determine/create this name for the database. I have already looked at the mysql website for this and am sti...

using quartz in a web app with spring

Hello good fellas! I've created a small console application to see how quartz work and it was easy to create an applicationcontext object inside the main method to get the cron run. OK now I'm in a real project managed by maven and which is using cron jobs defined in some of the modules. Each of the module has his own spring config file...

basic authenticator in SEAM

Hi, I want to do a basic authenticator handler in SEAM. I put this in components.xml: <web:authentication-filter url-pattern="/test/resource/rest/*" auth-type="basic"/> I have also put in web.xml the filter: <servlet> <servlet-name>Rest Servlet</servlet-name> <servlet-class>test.BasicAuthenticationServlet</servlet-class>...

Validation of interrelated fields

We have a validation system which forces users to select from a valid set of values across a set of inter-related fields. The user has to fill in the first value in the list, and whichever value they have selected determines which set of values they will be able to select from in the second field. Their choice of value in the second fi...

NoInitialContextException errorI

I am writing a client for my EJB and when trying to execute it, I get the following exception : javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file. I just can't understand what the problem is. I've been at this f...

Howto Get application port through MXBean

given a application: http://localhost:8080/myapp/ is it possible to enquire JVM through MBean/MXBean in which port the current application code is accepting requests? and also the appcontext (myapp)? ...