Skip to main content

Posts

Developing Applications with WebLogic Workshop

The WebLogic Workshop IDE builds enterprise-class applications that run in the WebLogic Workshop runtime. The applications you build in WebLogic Workshop typically expose systems and data within or between enterprises, typically via web applications and/or web services. As an example, considering an express shipping company. Such a company might want to expose shipment scheduling, tracking and billing data to its business partners via web services so that partners' applications can access the data directly. The company also might want to expose tracking information via one or more web applications so that shipment originators and recipients can check the status of shipments from a web browser. WebLogic Workshop makes it easy to construct common functionality for both applications and then expose that functionality with appropriate interfaces.

Tricky Interview Questions in Java Collections

What is difference between ArrayList and vector? Ans) 1) Synchronization - ArrayList is not thread-safe whereas Vector is thread-safe. In Vector class each method like add(), get(int i) is surrounded with a synchronized block and thus making Vector class thread-safe. 2) Data growth - Internally, both the ArrayList and Vector hold onto their contents using an Array. When an element is inserted into an ArrayList or a Vector, the object will need to expand its internal array if it runs out of room. A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. How can Arraylist be synchronized without using Vector? Ans) Arraylist can be synchronized using: • Collection.synchronizedList(List list) Other collections can be synchronized: • Collection.synchronizedMap(Map map) • Collection.synchronizedCollection(Collection c)

Difference between Enumeration and Iterator

Use Iterator always for better programming. One big difference between Iterator and Enumeration is (apart from what Pallav has already mentioned), iterator is fail-safe. If you are using an iterator to go through a collection you can be sure of no concurrent modifications in the underlying collection which may happen in multi-threaded environments. Well, apart from being an advantage this also is said to decrease performance by a tad. However, that's negligible. (Some amount of processing is involved in checking for modifications). If you see the docs it says about "well defined semantics" for the iterator, the fail-safe property adds to that. Enumeration and Iterator are interfaces in java.util package. Enumeration is the old Interface(for legacy classes like Hashtable). Iterator is for the new classes like HashSet,HashMap.. Enumeration and Iterator are used to just count the no of elements and view it. But Iterator has an additional method for deleting elements...

Free AJAX Resources Online

This is a user-contributed list of AJAX tutorials for those new to Asynchronous JavaScript with or without XML. Feel free to leave a comment if you feel an important tutorial has been omitted. AJAX security - read about AJAX security issues and vulnerability postings jQuery plugins - a directory of plugins for jQuery. How jQuery works - a basic jQuery tutorial. Tutorial: AJAX Made Easy - On the heels of two very successful tutorials on creating a collapsible div and an animated sliding div, I̢۪ve decided to write another. It seems my last few helped a number of programmers learn a simple trick, and hopefully this one will do the same. Efficient JavaScript code - Opera has one of the fastest and most efficient JavaScript engines of any browser, but when you have multiple User JavaScripts installed, it is important that they run efficiently to keep Opera's performance as high as possible. Well written code will help to minimise the performance impact of User JavaScripts.

Weblogic Applications And Projects

In WebLogic Workshop you create and build an application . A WebLogic Workshop application is a J2EE Enterprise Application and ultimately produces a J2EE Enterprise Application Archive (EAR) file. An application may contain: one or more projects libraries and modules security roles This topic introduces applications and their contents. Applications An application in WebLogic Workshop is the collection of all resources and components that are deployed as a unit to an instance of WebLogic Server. It is also the top-level unit of work that you manipulate with WebLogic Workshop IDE. In the IDE, you may have at most one application open at a time.

Weblogic Server Workshop File Types

This topic lists the file types you will encounter in your use of WebLogic Workshop. WebLogic Workshop Application Developer Edition File Types You may use a variety of files to create your application in WebLogic Workshop, some of which you may not be familiar with. The key file types you may encounter in WebLogic Workshop Application Developer Edition are: EJB file, or Enterprise Java Bean. An EJB file contains the Java implementation class for an EJB, with Javadoc annotations that configure the EJB. To learn more about building EJBs in WebLogic Workshop, see Developing Enterprise Java Beans. JCS file, or Java Control Source. A JCS file contains the Java implementation class for a Java control type. There is only one JCS file per Java control. If the Java control is extensible, there may be many JCX files that extend the Java control.

How To Create A Simple Webservice In Java?

I was searching over internet for a simple tutorial how to create a webservice. I think this best tutorial I have found. This tutorial shows how to create a simple Web service and Web service client from a Java class. The Java class in this scenario converts between the Celsius and Farenheit temperature scales. Example 1       |       Exapmle 2