< Browse > Home / Archive by category 'Java'

| Mobile | RSS

pradeep.assrr

Apache not rendering HTML pages - Jboss Server

When you have an html page of size more than 1MB, Apache will restrict some part of the page to display. This would be usually images. So in order to allow Apache to show the entire page, the following code snippet has to be placed in web.xml file located in \jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\conf path above <load-on-startup>1</load-on-startup> line.
<init-param>
<param-name>sendfileSize</param-name>
<param-value>-1</param-value>
</init-param>

[ More ] August 27th, 2009 | No Comments | Posted in J2EE, Java |
mehar

Eclipse not compiling java file

Java Program Compilation Problem with Eclipse IDE
Eclipse is not compiling .java file. its not even showing any problems in show view.
When I create a java file and save it using ctrl+s the file is supposed to compile that is generate a .class . Following tips may help you for enabling this feature
In order to [...]

[ More ] July 14th, 2009 | No Comments | Posted in Java |
mehar

Hibernate an ORM Framework -II

In the comments to my post Hibernate an ORM Framework, I received two questions from reader

Difference between POJO and Java Bean
Performance issue with respect to the application server

Difference between POJO and Java Bean
A Javabean is a class which exposes private properties by public getters and setters, has at least a (implicit) no-arg constructor, must [...]

[ More ] July 14th, 2009 | No Comments | Posted in ORM frameworks |
mehar

Sending Email through Java

Code for Sending email through Java
Sending Email through Java
Either from Servlets or from  Applications sending email has become a requirement, more than a feature. Here we can learn how to use the Java Mail API to send a Mail.
To Test Program all you need to have is a Internet Connection and mail.jar file which can [...]

[ More ] July 10th, 2009 | No Comments | Posted in Java |
mehar

Hibernate an ORM Framework

Databases are complex to implement. This is especially true when components of a database based on two different approaches (i.e. object oriented vs. relational) must interact with each other.
To make a long story short, when a component based on one kind of approach (e.g. object oriented) tries to interact directly with another object having its roots [...]

[ More ] June 22nd, 2009 | 1 Comment | Posted in ORM frameworks |