EJB Simulator Which Simulate the Other EJB and the Developer Can Move Ahead with the Unit Test of His Component and Thus Time Will Be Saved
Total Page:16
File Type:pdf, Size:1020Kb
Guru Nanak Dev University Regional Campus, Gurdaspur A Project Report On “Enterprise Java Beans Stub Simulator” For the partial fulfilment for the award of the degree of B.Tech SUBMITTED BY Swajot Singh 74219 Reg. No.: 2006.RG/A.156 UNDER THE GUIDANCE OF Ms. Taqdeer Professor (Dept of CSE) Department Of Computer Science & Engineering 2009-2010 Declaration I hereby declare that the present report has been prepared after the completion of my six months industrial training at Accenture Services Pvt. Ltd., Bangalore and is submitted only at G.N.D.U RCG and not at any other institution for the attainment of any other degree. Swajot Singh 2 | P a g e Acknowledgement Apart from the efforts of me, the success of any project depends largely on the encouragement and guidelines of many others. I take this opportunity to express my gratitude to the people who have been instrumental in the successful completion of this project. I would like to show my greatest appreciation to Mr. Srinivas Kondamudi (Manager). I can’t say thank you enough for his tremendous support and help. I feel motivated and encouraged every time I attend his meeting. Without his encouragement and guidance this project would not have materialized. I would like to thank my Team Leader, Mr. Chandrashekar for the valuable guidance and advice. He inspired me greatly to work in this project. His willingness to motivate me contributed tremendously to this project. I also would like to thank him for showing me some example that related to the topic of the project. The guidance and support received from Mr. Madhu Shanmugam (Senior Programmer) was vital for the success of the project. I am grateful for his constant support and help. I cannot let go this opportunity to thank the most to the project guide assigned to me by the university, Ms. Taqdeer for her belief in this project and for her faith in me and for investing her energies in this project. She has been sole inspiration to hard work and she has been most helpful guide and she has always been so concerned that it has helped me to improve the quality of the project. 3 | P a g e Besides, I would like to take this opportunity to thank the authority of Accenture Services Pvt. Ltd for providing me the opportunity to work in this project and providing with a good environment and facilities to complete this project. Finally, an honorable mention goes to my family and friends for their understanding and support. Without the help of the particular that mentioned above, I would have faced many difficulties while doing this project. 4 | P a g e My Role The project assigned to me was to develop a tool that would simulate the Enterprise Java Beans and this will have an enterprise vide implementation and the other resource working on this project was Mr. Madhu Shanmugam (senior programmer). The project was ably supervised by Mr. Chandrashekar. My working profile on the project comprised of developing a ‘Graphical User Interface’ for the Client which shall provide him the option to browse and upload jar files and provide checkboxes to select home and remote interfaces. Configure the binding of the JNDI names to the Home Interfaces. To find the methods in the Home and Remote interfaces and to pull the required domain jar from the selected Home and Remote Interfaces. Create the Home and Remote Classes by going through the Home Interface chosen by the User. At Last I needed to compile the Home and Remote Classes and then bind the Home to JNDI name. 5 | P a g e Abstract Imagine a scenario where the client (can be an external/internal) needs to access an EJB which has still not been developed yet. Without the EJB the client cannot continue his development/testing. This would result in a decrease in productivity. In such a situation we can deploy a simulator which will simulate the EJB which is not present and will give the output to the calling Client and this would mean that even in the absence of the actual EJB required the client can continue with the process of development and/or testing and this would result in saving in valuable time and has a very practical importance in the enterprise wide working because such issues are encountered very often that we need certain EJBs and they still are not been developed so this tool/project will solve such an issue and therefore client can not only save time but money as well. We need a tool that can simulate the EJB which will help in continuing the development and testing. The simulator would help in carrying out testing process in case of unavailability of an Enterprise JAVA Bean that is being called by another Enterprise JAVA Bean that is to be tested so the stub would provide the test results and thus help in speeding up the testing process. It would automate the process of giving test outputs for the particular Enterprise JAVA Bean while we perform testing. There exists no previous version of this application so this application is being developed from scratch and the tool is aimed to be generic in nature. These are the few key features/functionalities that the aimed tool needs to serve: The project is aimed to be implemented in the areas involving the development of the applications where the different EJBs interact with each other to give an output. The project is aimed to stub an EJB where the client can interact with the EJB which has still not been implemented. It involves developing a tool that would help to simulate this process and component testing can take place. The tool being developed is a generic one so that it can be used/help simulates for various enterprise applications. It can be effectively be used to increase the speed of developing a new application where the client in need for looking up an EJB can use this tool to generate the stub of the actual EJB which has not yet been developed and continue their development and unit/component testing. Hence making the process of coding and testing to an extent parallel to each other. 6 | P a g e Table of Contents Acknowledgement ........................................................................................................................................ 3 My Role ......................................................................................................................................................... 5 Abstract ......................................................................................................................................................... 6 Introduction ................................................................................................................................................ 11 Issues/Risks ............................................................................................................................................. 14 Company Profile .......................................................................................................................................... 15 ACCENTURE SERVICES Pvt. Ltd. ............................................................................................................... 15 The Group ............................................................................................................................................... 15 IDEOLOGY ................................................................................................................................................ 15 Corporate Citizenship.............................................................................................................................. 18 Corporate Citizenship is a fundamental part of Accenture's character and the way we run our business. .............................................................................................................................................. 18 Clients...................................................................................................................................................... 18 Industry Expertise ....................................................................................................................................... 19 Revenues Detail .......................................................................................................................................... 20 Technologies being used in this Project ...................................................................................................... 23 JAVA ........................................................................................................................................................ 23 History ................................................................................................................................................. 24 Principles ............................................................................................................................................. 25 Java Platform ....................................................................................................................................... 25 Syntax .................................................................................................................................................. 28 Examples ............................................................................................................................................. 28 Special Classes ..................................................................................................................................... 30 Class Libraries .....................................................................................................................................