Posts

Using JackRabbit with Web App

Problem: U R using tomcat and you need to store content(may be images). You do not want heavy lifting using liferay, hippo etc Solution: 1. prepare web app. 2  use Tomcat as web server 3. use apache Jack rabbit as content repository Configuration steps: 1.     Install Tomcat     download jack rabbit war file 2. Let port be 8080 for tomcat 3. Goto tomcatuser-xml file and make following entries <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx "/> <role rolename="manager-status "/> <role rolename="manager"/> <role rolename="admin"/> <user username="admin" password="admin" roles="admin,manager,manager-gui,manager-script,manager-jmx,manager-status"/> 4. Start Server & Go to tomcat home screen 5. Go to Manage app option 6. Enter credentials as #3 7. Deploy jack rabbit web ap...

Web application Security mechanism

Hi, Authentication is prime and important part/phase of any web application. Decision has to be made based on the type you want. Three mechanism available to do so. 1. Agent base 2. Container based 3. Application based #1 you can use JAAS based mechanism to add agent based authentication in your web app. #2 Form based authentication is the famous container based authentication. remembered j_security_check action we use to write in action attribute of <form> tag. #3 This one is the pragmatic approach (as compare to #2 which is declarative), where developer starts getting the data from form and starts security mechanism i.e. custom. NOTE: You can try all the above with simple tomcat web server.

ORM framework learning - JPA

Tiered of using pure sql in your web app. here is the ORM framework which you can implement and ease your DB development. This blog is for JPA learning. What do u need? Eclipse (Kepler) Eclipse Link (Kepler) Any DB may be MySQL + mySQL driver at app side  #1 is the famous IDE #2 is the JPA implementation which does all the required ORM work steps: Create & design DB Use Eclipse to create JPA project Use DB explorer of eclipse to connect to DB Right Click on JPA proj to generate entities. Use client to test your entities and JPAQ. Integrate this JPA project into your Web App. as dependency

Worklight in Limelight

This product is new and hot in mobile application developement. Worklight is based on apache Codova for mobile app developement. Based on the same notion of java i.e. build once and run anywhere. This time it is for mobile world.. Write for one platform and run on any other plaform. this could be android, iOS or BB. Download V 5.0 free from IBM site and start mobile app development...... you also need ADT, SDK and emulator for the android  testing or XCODE for iPHONE.

Enterprise application on Appliance

IBM reduced the work deployment by introducing puresystem. PureFlex PureApplication Pure data If you use PureApplication then VApp simply let user to drop ear on the appliance and the appliance takes care of deplyment process and also elastic caching and HA. In case you wanna do the process by yourself then use vCustom instead of VApp. Great work......

Bootstrap dojo in Portal Development

 The Dojo bootstrap, dojo.js , should only be included once in an HTML page. Following way you can create 1. Define one jsp file say dojoLoadedOnce.jsp: 2. Write conditional code as follows <script type="text/javascript"> var bootstrap_path = "<%=request.getContextPath() %>/dojo/dojo.js"; if(typeof dojo=="undefined") { document.write('<S'); document.write('CRIPT type=\"text/javascript\" src=\"'); document.write(bootstrap_path); document.write('\" ><\/S'); document.write('CRIPT>'); } </script> 3. Like traditional method include this jsp in portal jsp file. <jsp:include page="/dojoLoadedOnce.jsp" /> This will make sure dojo bootstrap included once in html.

Integrating email server

In order to integrate open email server with the software you can follow the following : 1. hmailserver is the open email sever provided which can be easily integrated with your software. Download the latest exe file and install. Check for the port 25 using telnet in case of port clashing. 2. Secondly you can use the roundcube as client to view and do various stuff with your server account. 3. Apply the server setting with the product with which you want to integrate e.g. jboss portal, liferay etc... 4. Thats it.