Jack is Here, asp.net findings

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘DOM’

How DOMi Aids in .Net Application Development

With the coming of age of the computer software industry, newer and better programs and tools has become regular news, courtesy the efforts of the leading names in the industry today. These programs and tools assist software developers and programmers in the creation of software that have increasingly been making lives easier for everyone. Upgrades have become the call of the day even as developers are looking for ways to make their jobs more feasible and convenient through problem solving tools. In the wake of this trend and the growing demand for asp.net consulting, there has emerged a developer tool known as DOMi or the DOM Inspector, which has been a real help for developers. Through this tool a developer can inspect, browse and edit the Document Object Model tree of HTML and XML based documents.

As a Web development tool used in Mozilla Suite and Firefox browser, version 3.0, the previous version of the DOM Viewer is included to help developers edit web pages or XUL windows generally. In the dominant level, through the convenience of dual-panel views of the document variables, the window to help navigation. As the operation's success and popularity. NET application development, dominant performance are very help to the developer's task much easier. Because it is not, as a part of Mozilla Firefox 3, it has been included as a separate installation of Firefox extensions. Dominant nodes can choose from a tree or browse the chrome. Other comments provide a good box, XBL in the binding, CSS style rules and JavaScript objects, DOM elements like activity useful for debugging CSS.

Perpetuated by the benefits of DOMi, a fresh wave of outsourcing services have made their way to the Indian shores to offer various solutions to a growing number of business houses who patronise this tool. Application development in the software industry is now a seamless activity, much to the introduction of such tools in the arena.

Enterprise Integration Using Open Source Middleware (Jonas)

1. Introduction
Open Source Software (OSS) is an in-ternational phenomenon in terms of user adoption and development processes. Enterprise Information Integration (EII) significant gains credibility in the market as the most efficient approach to the combination of back-office data with line-of-business content. Enterprise integration with open source middleware, offers an automated tool for Data Integration, interoperability of data in a distributed environment. This integration tool using open source middleware to reduce costs through shorter, Sca-lability to realize.
2. Open Source Application Servers & Mid-dleware
There is a wide variety of open source applications and middleware on the market, many of which support the Java Enterprise Edition framework. These include Apache Geronimo, Apache Struts, Apache Tomcat, Apache Web server, Easy Beans, JBoss, JFox, JOnAS, IBM WebSphere Community Edition (formerly Gluecode), Mono Project (supports .NET), OpenEJB, Resin, and Sun’s Glassfish.

2.1 JOnAS – a Java Application Server
JOnAS (Java Open Application Server) is an open source Java EE applica-tion server which has been released free of cost under the terms of the open source GNU General Public License. JOnAS is the most widely used open source J2EE 1.4 ap-plication server. Applications deployed on Java EE application servers are assemblies of components dealing with user presentation or business logic. Those two layers (presentation and logic) are composed of JSPs and Servlets for the first one and of different kinds of components (i.e., EJB for Enterprise Java Beans) for the second one. An EJB can be a Session Bean implementing application logic which converts and parse the XML data , an Entity Bean to simplify access to persistent data contained in databases, A Message Driven Bean that reifies a message queue polling (like JMS queues or topics) to be performed during the server runtime. These services are required in most enterprise applications. To access services, application component implementations are placed into containers. Those containers are used as the glue between components and technical services.

Fig 2.1 JOnAS Architecture

3. Enterprise Integration using JOnAS
The key feature of enterprise integration is data integration that automates the inter organizational business transactions without requiring replacement or major changes to companies existing source systems, thus avoiding an expensive and time-consuming activity. This paper aims at developing an automated tool for integrating the data from different sources thereby providing integration among the data and interoperability of data in a distributed envi-ronment. The Enterprise integration provides the following advantages
? Integration of data
? Unified view of relevant information
? Cost Effective because of open source
? Distributed access because of middle-ware
? Reduced time consuming since integrated and unified view
? Transparency
? Scalability

Fig 3.1 JOnAS with Client and DBServer
The above figure 3.1 shows how a client can communicate with a database server through JOnAS via EJB (Enterprise Java Bean).
4. Framework
The paper Enterprise integration using open source middleware can have client side and server side. In client side, it can have number clients. Client can access with the information stored in Excel or Access. A client can insert or delete or update any information stored in the data source. Clients can be provided with Excel or Access database where they can do updations. After updating the information, client has to save the updations. Then the defined macro in that Excel or Access data sheet can call the batch file automatically which in turn calls the server program. The client program gets the input file (Excel or Access) and passes the file name as an argument to the server program. Client machine can have either Excel or Access or both.
The server program to retrieve the file path from the client, to activate the code, XML data or access to XML data to Excel for the input file depends on the conversion. Server-side program is then stored in an XML file to the server after you convert the XML data. The server then these XML files to extract and analyze data in a table to store information, SQL Server is stored in.

Fig. 4.1 Frame work of Enterprise integration using JOnAS

The Fig 4.1 clearly depicts the workflow of information integration and various components involved in this project. The steps involved in Enterprise information integration is as follows:
1. The latest access data is converted to xml whenever a new record is inserted /updated on a real time basis.
2. The latest excel data is converted to xml whenever a new record is inserted /updated on a real time basis.
3. Implement these two modules in Enterprise java bean with JOnAS as application server.
4. Extract the information from all XML files by parsing and store the data into tables residing in SQL Server.
5. Generate Reports by getting information from the tables using frames and JTable.

5. Setting up the Environment
The first and foremost step in implementing the system is setting up the environment. The overall tasks involved in setting up the system are as follows:
? Installing JOnAS
The steps involved in installing JOnAS require J2SE SDK 1.4, ANT 1.6 and JOnAS. Install everything and start the JOnAS.
? Connecting JOnAS with NetBeans
The next step after installing the JOnAS application server is to connect the installed JOnAS with the working environment. NetBeans is the working environment. Requirements for connecting JOnAS with NetBeans are NetBeans 5.5, JOnAS/Tomcat 4.7.x or 4.8.x and JOnbAS
? Connect SQL Server with JOnAS
To allow access to one or more relational databases, JOnAS will create and use DataSource objects. Such a DataSource object must be configured for each file that is used for the persistence of a bean. By default, JOnAS provides HSQL default data server. SQL Server can to Jonas by using a plug-in called jTDS connected. Before you install the SQL Server, we are three jar files in JO NAS_4_8_4libcommonsjonas upload directory, which gives access to SQL Server for JOnAS. Login JonasAdmin console. Select the new data source as a database. Enter the required information such as driver's name, URL, etc. are Done.

6. Implementation
This paper uses session bean for im-plementing the first two modules and entity bean for implementing the third module. The session bean converts Excel or Access data file to XML data file and fetches the data from the XML file by parsing it and after parsing, the session bean automatically calls entity bean which stores the extracted data in to SQL Server.
? ExcelToXML (File Excelfile, String file-name) – converts any Excel file to XML data file by getting Excel file as inputs. The procedure involved in converting Excel to XML data file is as follows:
? AccessToXML (String table, String connec-tion) – converts any Access DB to XML data file by getting table name and connection for JDBC connection as inputs.
The procedure for converting Acsess_to_XML and Excel_To_XML is shown below.

Fig 6.1 Procedure for XML conversion
The next step after converting the Microsoft Access or Excel file data to XML data is parsing the obtained XML files. By parsing the XML files, we can extract the data from the XML file and store it in an array which can then be used for storing it to an SQL Server. To manipulate a XML document, we need an XML parser. The parser loads the document into memory and once the document is loaded, its data can be manipulated using the DOM
? xml_parse_For_Excel (String xmlFile) – Parse the XML file obtained from Excel that suits for storing the latest XML data to SQL Server.
? xml_parse_For_Access (String xmlFile) -Parse the XML file obtained from Access that
The procedure for parsing XML files is same for both XML files obtained from Access or Excel. The steps involved in parsing the XML files are as follows.

Fig 6.1 Procedure for XML Parsing
Building and Deploying the Application
Now, enterprise application ready to deploy to the application server. There is no need for additional deployment descriptor configuration. IDE will have to configure the deployment descriptors, and the preparation of a new connection pool and data for enterprise applications source code. Right-click on the left of the window, and construction project applications. Output window displays the error, if any. Correct the error, the project deployment. Right-click, formation_Integration project, and then select Run Project. IDE will execute all of the following:
? Builds the enterprise application project and all of its subprojects (the Web module project and EJB module project).
? Starts the server if it is not already running.
? Undeploys the enterprise application if it is already deployed to the application server.
? Deploys the enterprise application to the application server.

fig 5.1 Information Integration deployed in JOnAS

Conclusion
Integration problem has been with information technology, information systems because the invention of the world. Today, the integration need to directly support the organization's goals and needs. Enterprise Integration using the open-source information integration middleware provides an automated tool, but also interoperability of data in a distributed environment. Therefore, this combination of enterprises use open source

Middleware provides an automated tool for information integration and thereby effects reduced cost and time, interoperability, scalability, persistency through open source middleware named JOnAS.
Future work can focus on developing an automated tool for integrating any number of input files from any sources and make it suitable for distributed environment.

References:
[1] Mabanza, N.; Chadwick, J.; Rao, G.S.V.R.K., “Performance evaluation of Open Source Native XML databases – A Case Study” Advanced Communication Technology, 2006. ICACT 2006. The 8th International Conference Volume 3, Issue , 20-22 Feb. 2006 Page(s): 1861 – 1865
[2] Ian Gorton2, Justin Almquist, Kevin Dorow1, Peng Gong3, Dave Thurman1, “An Architecture for Dynamic Data Source Integration”, Proceedings of the 38th Ha-waii International Conference on System Sciences, IEEE Transaction, June 2005.

[3] Alain Boulze, Francois Letellier, Pascal Moussier,” The ObjectWeb initiative, An Ex-ample of an open development process to promote a set of open source middleware technologies and bring them to main stream” , ObjectWeb Consortium, 2006.
[4] ObjectWeb Consortium , “Red Hat Application Server: JOnAS Tutorial “, 1999-2004

[5] Giovanni Guardalben, Shaku Atre, “Integrating XML and Relational Database Technol-ogies: A Position Paper” .
[6] Richard Monson-Hoeffel, “The Ultimate Guide J2EE web Services “, Pearson Educa-tion, 2002
[7] Heather Williamson,” XML: The Complete Reference”, Osborne/McGraw-Hill, 2001
James Edward Keogh, James Keogh, “J2EE: The Complete Reference”, McGraw-Hill/Osborne, 2002
[8] JOnAS: Java (TM) Open Application Server, http://jonas.objectweb.org/
[9] JOnAS Platform Documentation, http://jonas.objectweb.org/doc/jonas-doc-en-jonas4.2.3.pdf
[10] http://www.w3schools.com/xml/xml_syntax.asp
[12] http://JOnAS.objectweb.org/current/doc/howto/install_JOnAS.html
[13] http://www.theserverside.com/news/thread.tss?thread_id=42251
[14] http://objectweb.org/JOnAS/2006-12/msg00027.html
[15] http://java.sun.com/developer/onlineTraining/Beans/EJBTutorial/

The Whole Web Design Industry Depends on Ajax in Future

AJAX, Asynchronous JavaScript and XML, blasted onto the software industry in the spring of 2005 and still remains the hottest story among the software developers. With its rich combination of technologies, AJAX can be used to create interactive web applications with XML or JSON based web services, using JavaScript in the browser to process the web server response. The software industry is still aiming at improving Ajax to suit the current and future needs. The role of Ajax in web design industry is remarkable that the web design industry plans its future with AJAX.

“Ajax Design Patterns” from O’Reilly provides you with the best practices you need to improve your web development projects. It does so by investigating how others have successfully dealt with conflicting design principles in the past, and then relaying that information directly to you. “Ajax Design Patterns” will also get you up to speed with core Ajax technologies such as XMLHttpRequest, the DOM and JSON.

Internet applications trend is rich, dynamic, user-friendly, process and personalized related applications. Rich Internet applications (RIA) provide a similar functionality on the network of desktop software, allowing new, highly interactive applications and user experience.
AJAX has become a development of regional integration an attractive approach. AJAX is an essential element of RIA, the technology will provide a considerable number of powerful, user-friendly web applications with the Web may appear. 2.0 standard and the enterprise RIA applications throughout the world, such as JavaFX, and AJAX technologies to play an important role. Two examples of AJAX-based RIA pest distribution maps and inputs have been recommended in the University of Florida's development.

Google Web Toolkit and other frameworks to make it easier for developers to develop, and even design an intuitive application programming interface. Google to promote smarter, more responsive and interactive through the use of its Google Maps, Gmail's AJAX applications and web design experience Web applications. Synchronous learning environment, provision of agency programs, clear user interface and interaction mechanism for teachers and students, through AJAX. Web 2.0 is the dynamic interaction of the main characteristics of knowledge sharing and collaboration. In order to achieve synchronization in the proposed learning environment, these features, we use AJAX technology, and the YouTube application programming interface (API) to design a user-friendly interface, shared learning resources diversity.

Want to know the AJAX in the web design industry, the future role – which is expected after the AJAX will become the backbone of all future web design applications. Network performance will improve the future of AJAX capabilities. AJAX, can be found in a variety of applications, especially for building Web-based applications. In the past 6 months, OpenAjax Alliance development is the future of the browser's AJAX industry wishes. AJAX technology is the future of a more interactive and intelligent network applications the best.

Java is a key platform being used by software houses the world over for Web development applications. Since there is a lot happening in the Web 2.0, a developer who has knowledge of his own programming environment like VB.NET, ASP.NET or C# or Java server side technologies can also build skills on technologies that enable the next generation web such as AJAX. There is an abundance of opportunities for people who know AJAX. Designers and developers should consider upgrading their skills to win over this opportunity. These technologies are being adopted at a fast pace, which opens a lot of career opportunities for software developers.