VULAB IT Training Java Android JEE J2ee Spring Hibernate JPA Web Services We provide hands-on training in Java, J2ee, Spring Framework, Hibernate, JPA, Android, Apple ios, Java script, HTML5, Database Development, SAP, .NET, Web Development, Quality Assurance, Mobile application development etc....
WE KEEP IT PROFESSIONALS TRAINED AND EMPLOYED.

Posted on 05 February 2014 by Sri Nivas

Hello Apache Tomcat 8 What is New with you?

apache-tomcat-installApache Tomcat 8 is built for Java EE 7
Tomcat 8 supports Java Servlet 3.1, JavaServer Pages 2.3, Java Unified Expression Language 3.0 and Java Web Socket 1.0. The default connector is now (NIO), so expect better performance.

Start using it today.

Wish you happy coding for life.

http://tomcat.apache.org/download-80.cgi

Note: Vulab provides online java training, and we use apache tomcat 8 for web application development.

Be Sociable, Share!

0 Comments

Posted on 05 February 2014 by Sri Nivas

Hibernate 4 Second Level Cache

hibernate
Hibernate is the best Object Relational Mapping tool in the market. You can also enhance the performance of hibernate further by using second level cache feature. I am making an assumption that you are already using Hibernate in your project and want to enable second level caching to improve performance

Step 1: Make sure your Maven pom.xml has this dependency added. We are using ehcache as the caching provider. You can use a different provider also.

<!–  Hibernate ehcache library –>
<dependency>
<artifactId>hibernate-ehcache</artifactId>
<groupId>org.hibernate</groupId>
<version>4.1.0.Final</version>
</dependency>

Step 2: Update your hibernate.cfg.xml file or spring configuration file to configure hibernate properties.

<!– Caching Configuration start–>
<property name=”hibernate.cache.provider_configuration_file_resource_path”>ehcache.xml</property>
<property name=”hibernate.cache.use_second_level_cache”>true</property>
<property name=”hibernate.cache.use_query_cache”>true</property>

<property name=”hibernate.cache.region.factory_class”>org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
<property name=”hibernate.cache.provider_class”>net.sf.ehcache.hibernate.EhCacheProvider</property>
<!– Caching Configuration end –>

Step 3: Create a file called ehcache.xml in the resources folder or configuration folder.

<ehcache xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:noNamespaceSchemaLocation=”ehcache.xsd” updateCheck=”true”
monitoring=”autodetect” dynamicConfig=”true”>

<defaultCache maxElementsInMemory=”100000″ eternal=”false”
timeToIdleSeconds=”1000″ timeToLiveSeconds=”1000″ overflowToDisk=”false” />

<cache name=”com.vulab.code.domain.Product” maxElementsInMemory=”10000″
eternal=”false” timeToIdleSeconds=”500″ timeToLiveSeconds=”500″ />
</ehcache>

In the above file we are only caching Product object with 10,000 max objects in memory.

Step 4: Update all your entities with the following annotation for caching to work. If you forget to add this, the caching will not work later when you are testing your application.

@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE,region=”product”)
@Table(name = “product”, uniqueConstraints = @UniqueConstraint(columnNames = “name”))
public class Product implements java.io.Serializable {

Step 5: Write a simple Junit Test case to check

Session session = HibernateFactory.INSTANCE.getSession();

Product product = (Product) session.get(Product.class, 1);

session.close();

Session session2 = HibernateFactory.INSTANCE.getSession();

Product productFromDB = (Product) session2.get(Product.class, 1);

session2.close();

When caching is disabled, You will see the following log, and we can clearly see that query for product is executed twice against the database. Product was not found in the hibernate’s second level cache.

Hibernate: select product0_.product_id as product_1_3_0_, product0_.name as name2_3_0_ from product product0_ where product0_.product_id=?
02/05/2014 00:07:22,572 TRACE [main] – binding parameter [1] as [INTEGER] – 1
02/05/2014 00:07:22,582 TRACE [main] – Found [IPAD] as column [name2_3_0_]
02/05/2014 00:07:22,594 TRACE [main] – Created collection wrapper: [com.vulab.code.domain.Product.customers#1]
Hibernate: select product0_.product_id as product_1_3_0_, product0_.name as name2_3_0_ from product product0_ where product0_.product_id=?
02/05/2014 00:07:22,599 TRACE [main] – binding parameter [1] as [INTEGER] – 1
02/05/2014 00:07:22,600 TRACE [main] – Found [IPAD] as column [name2_3_0_]
02/05/2014 00:07:22,600 TRACE [main] – Created collection wrapper: [com.vulab.code.domain.Product.customers#1]

Enable the cache and we can see the query is firing only once for the above test case.

Hibernate: select product0_.product_id as product_1_3_0_, product0_.name as name2_3_0_ from product product0_ where product0_.product_id=?
02/05/2014 00:27:50,406 TRACE [main] – binding parameter [1] as [INTEGER] – 1
02/05/2014 00:27:50,416 TRACE [main] – Found [IPAD] as column [name2_3_0_]
02/05/2014 00:27:50,430 TRACE [main] – Created collection wrapper: [com.vulab.code.domain.Product.customers#1]
02/05/2014 00:27:50,446 TRACE [main] – Created collection wrapper: [com.vulab.code.domain.Product.customers#1]

Step 6: Start analyzing your application. Add all the objects that you need to be cached to the ehcache.xml file and also annotate your entities for read only or read write caching.

Step 7: Vulab provides hands on training in Java. We are the market leader for java training since past 15 years. Enroll with us for Live Online Java Training.

 

We wish you happy coding for life.

 

Be Sociable, Share!

0 Comments

Posted on 02 January 2014 by Sri Nivas

Spring 4 Training New Features

Vulab has updated their industry leading Spring Hibernate training course to cover Spring 4. We also cover all the topics of Spring 3 along with features in Spring 4.

Spring Training Course.

Nearly 4 years after Spring 3 is released the new version called Spring 4 is released now.

Spring 4 is built to work with JDK 8 and JEE 7

The main features of Spring 4 are as below:

  • JSR-335 Lambda expressions
  • JSR-310 Date-Time value types for Spring data binding and formatting.
  • JSR-343 JMS 2.0.
  • JSR-338 JPA 2.1.
  • JSR-349 Bean Validation 1.1.
  • JSR-236 Java EE 7 Enterprise Concurrency support.
  • JSR-356 Spring’s WebSocket endpoint mode.
  • Configuring and implementing Spring style application using Groovy 2. Also they specify that first class support for the Groovy applications.
  • Also spring plans to add the HATEOS (Hypermedia as the Engine of Application State) support for REST APIs.

Spring Framework 4.0 offers 1st class Java 8 support now, based on the pre-release Java 8 builds, and will be immediately production-capable once OpenJDK 8 is GA in March 2014. Spring Framework 4.0 doesn’t just run on Java 8, it makes it really easy and natural to leverage new language features such as Lambdas, method references, JSR-310 date and time, and repeatable annotations. The framework also has been updated to work with the latest versions of popular open source libraries like Hibernate, Quartz, and EhCache.

Be Sociable, Share!

0 Comments

Posted on 12 December 2012 by Sri Nivas

FalconDive the ultimate mobile and web application development framework using Java, HTML5

Falcon Dive Java FrameworkA framework which will be having the following features on release:

Spring MVC
Full HTML5 Support
Rest URL’s
User Friendly URL’s
JSON support
Spring Security Integration with encryption
Cookie based authentication
Locale support for I18N Suport
Use localization property files for UI
remember me functionality for autologin with Spring Security
twitter, linked in, google and facebook logins and registration
Spring JDBC Support
Spring Data JPA
Support for all relational databases
Support for all NoSQL databases
Support for Hadoop (Big Data)
Log4J with asynch
Caching with ehcache mechanism (First level cache and second level cache)
site mesh templates
simple tags of java
Deploy all google filters for encryption, compression etc.
www and http must point to the same location
build for clouds like Amazon WebServices
apache solr for search
vimeo for video
responsive UI (zurb foundation)
JQuery AJAX
GIT and Subversion compatibility
maven project
automatic continuous builds
maven profiles for different environments
Junit testcases for every service
Data Transfer Objects (cannot use domain objects on the UI)
Sample application with best coding standards to get started in few minutes
Java Messaging Service Support
REST Web Services Support
Email support and Email templates support inbuilt into the framework
Complete environment for development with Database, Eclipse IDE, JDK, Database IDE, Web Server, Continuous Build Tools integrated

and more features will be added…

will be released in last week of January 2013.

Be Sociable, Share!

0 Comments

Posted on 02 September 2012 by Sri Nivas

Learn to code, importance of IT training

Software is taking over the world, actually it already did. We can see today that more and more system’s are going online and the need for developers and coders is ever increasing. As a consequence of software usage increase in every industry the need for developers, managers, system administrators, business analysts, quality assurance managers and cloud infrastructure specialists is ever increasing. The demand for development is increasing exponentially like a weed. As a matter of fact world has run out of developers.

USA has run out of developers almost fifteen years back, USA is able to sustain because most of the IT development has been outsourced, in-sourced, extra-sourced and managed in different styles. But even after all this the demand of developers is still at it’s peak and we are not still finding qualified developers.

We can see today that most of the new investments are going into the application development tools and technologies. Investing in current IT developers of a company and training those developers for new technologies is not being undertaken. Companies must step up and increase the training activity for employees and keep them up to the latest technologies.

Demand for IT Developers and IT Training

Demand for IT Developers and IT Training

IT Training is the solution

Companies must ramp up IT training for current employees and must also hire employees and train them on required technologies. In the current market companies are trying to find experienced candidates with existing knowledge and use them on their projects, this policy is already backfiring as newer technologies are getting created every day. As new technologies emerge companies must rethink their strategy and train their employees on the required technologies.
Online training has become the most important mode of training in the last few years. This has given a number of advantages to the trained as well as the trainers.

Corporations are using software to manage internal systems, external client interfacing systems. Each system is required to be available for different devices like desktops, televisions, mobile devices like iPhone & android phones, tablet devices. Each interface requires knowledge of a different technology and skill.

Mobile revolution is introducing billions of users to the internet and these users are your customers. You need to be available on every device and at their fingertips. More developers are required to achieve this.

Companies are having petabytes of data regarding their business and client activity. Companies are trying to analyze the data, find new meanings and create new business models to compete. This field will require hundreds of developers with a wide array of skills.

Html5 and JavaScript are making the web come to life with new apps, games, and interactive systems. We need more developers.

Traditional relational databases are no longer working for companies, they are trying cloud and NoSQL databases. We need more developers.

Windows8, the brand new OS from Microsoft is adding tremendous opportunity for companies to migrate corporate desktop apps to the windows8 format. We need more developers.

Advantages of Vulab Online IT Training:

Hands-on Certified Instructor Lead Training: Every training course is delivered by highest quality certified instructors who care about the future of students and their productivity. Every student will get personal attention for the instructor and instructor will work with your strengths and opportunities. Students are trained on the same tools and methodologies used in the real world environment.

Best Value: At Vulab, all training programs are provided at the best price in the industry. If any student is having financial troubles, flexible payment plans are provided. At Vulab we do not allow for financial issues getting in the process of learning and attaining success.

Convenient (Connect from any part of the world): As individuals are having a busy life style, it is becoming difficult to manage time and have quality time with family. Online training will allow anyone to learn at their own pace or attend live training from home or office.

Relevant Topics: As training is delivered via cloud, all the content is updated to the latest versions of the technology. The training path will suit the requirements of the student and will match with the requirements by corporations.

Immediate Delivery: When a student decides to learn a topic, the course learning content and videos are delivered at that instant and there are no lengthy process involved. This will reduce the friction in learning process and learning itself has become a pleasure to enjoy.

Affordable Pricing: As training is delivered via cloud, typical wastage of cash on traveling, boarding can be removed.  Typical online courses are of greater quality than other courses . These courses have fresher content and will cost a lot lesser as the course is being delivered on internet scale not on a classroom scale.

Adds Fun to Learning: As interactive systems are creating dynamic challenges, quiz, assignments and interactions with other students and instructors, the process of learning has become a lot of fun.

Better Retention: With better methodologies, clever design and interactive mode online training has a lot better retention rate of learning.

Be Sociable, Share!

0 Comments

Posted on 31 August 2012 by Sri Nivas

Top Programming Language Report August 2012

Top Programming language as of August 2012 is Java. Java has been the top language since 1998. Recent interest in Java has been further increased by Google’s Android OS.

For the next 10 years Java will still remain the most popular language as Oracle has given a very good path for Java for the next 10 years.

Vulab or Virtual University Lab provides the best Java Training. Vulab provides various courses in Java.

Java Training

Enterprise Java Beans (EJB3) Training Course

Java Web Services Training Course

Java Novice to Professional Training Course

Advanced Java Training Course

Java with Spring and Hibernate Training Course

Liferay Portal Developer Training Course

Fundamentals of Java Training Course

Oracle Certified Professional Java Programmer Certification (OCPJP) Training Course

Top Programming Language is Java

Top Programming Language is Java

Be Sociable, Share!

0 Comments

Posted on 31 August 2012 by Sri Nivas

Best Java Online Training

Vulab provides the best online & classroom training in java.
Online Java Training

Best Java Online Training

Best Java Online Training

Be Sociable, Share!

0 Comments

Posted on 31 August 2012 by Sri Nivas

IT Job Trends Report AUGUST 2012

Vulab has just published top IT Job trends for August 2012.
The Top IT job trends are as below:
#1 HTML5
#2 MONGO DB
#3 APPLE iOS
#4 ANDROID
#5 MOBILE APP
#6 PUPPET
#7 HADOOP
#8 jQUERY
#9 PAAS
#10 SOCIAL MEDIA

Top Job Trends for Information Technology

Top Job Trends for Information Technology

Be Sociable, Share!

0 Comments

Posted on 12 May 2012 by Sri Nivas

Websockets with tomcat 7

HTML5Apache tomcat team recently added websocket support to tomcat.
WebSocket is a web technology providing for bi-directional communications channels over a TCP connection.

WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. The WebSocket protocol makes possible more interaction between a browser and a web site, facilitating live content and the creation of real-time games. This is made possible by providing a standardized way for the server to send content to the browser without being solicited by the client, and allowing for messages to be passed back and forth while keeping the connection open. In this way a two-way (bi-direction) ongoing conversation can take place between a browser and the server. A similar effect has been done in non-standardized ways using stop-gap technologies such as Comet.

In addition, the communications are done over the regular TCP port number 80, which is of benefit for those environments which block non-standard Internet connections using a firewall. WebSocket protocol is currently supported in several browsers including Safari, Firefox and Google Chrome. WebSocket also requires web applications on the server to be able to support it.

Vulab will provide code with example shortly.

Be Sociable, Share!

0 Comments

Posted on 12 May 2012 by Sri Nivas

Tips and Tricks to write better articles (not coding!!)

Writing tipsRecently I was helping a colleague to write an article for html5rocks. We used tips from Kevin at google to write the article. Use the tips for your own blog or article.

These are the same industrial-strength tips used by 9 out of 10 technical writers. (That one writer who doesn’t follow the rules explains some of the bad docs out there.)

Literary writing and tech writing have their own sets of conventions. Other writing forms are like strolling on meandering paths in a meadow where you’re supposed to take in the words and enjoy them; technical writing is like driving a taxi with a surly passenger who is in a big hurry to get to the airport. The passenger (your reader) would scream colorful words if you decide to take the scenic route.

So here are ten tips to improve your technical writing.

The 10 tips at a glance

Tip 1: Know your audience.

Tip 2: Have a conversation.

  • Pretend you are writing an email to a friend.
  • Use simple words.

Tip 3: Know your goals.

  • Tell them what you’re going to say and then tell them.
  • Wrap up.

Tip 4: Make the organization clear with good headings.

  • Make your headings task-oriented.
  • Use parallel structure.
  • Show sequence.

Tip 5: Assume that your reader has the attention span of a gnat.

  • Get to the point.
  • Bulleted lists are your friends.
  • Break up concepts.
  • Use graphics and charts.

Tip 6: Be consistent.

  • Just pick a word and stick with it.

Tip 7: Write lively.

  • Use the active voice.
  • Use action words (verbs).
  • Let your personality shine through.
  • Avoid Latin.
  • Don’t start a sentence with “There…”.

Tip 8: Be precise.

  • Stay in the present; don’t use future tense.
  • Use the right auxiliary verbs.
  • Keep the pronouns clear.
  • Don’t anthropomorphize inanimate objects.

Tip 9: Explain enough.

  • Explain why you’d want to use anything.
  • Catch the pitfalls.
  • Examples, examples, examples.
  • When saying something odd, back it up.
  • Don’t lie or oversimplify.

Tip 10: Read your own stuff.

  • Read your docs out loud.
  • Get rid of all that dead weight.
  • Test your sample code.
  • Have someone read your work .

But wait, there’s more! click here to read more….

Be Sociable, Share!

0 Comments

п»ї