Recently for a training I started learning struts2. As I had worked on struts one few years back I started comparing both struts-2 and 1. I found struts2 very easier than struts1.
Though struts 1 was very popular, comparing it with the newer frameworks, which has come into market in last 2 years, struts 1 has some problems.
- ActionForms / Action classes etc – one action needed lots of coding and they were a pain
- Also the action class unit testing was difficult.
- Type conversions were not automatic.
- There was no special feature for AJAX in the framework.. etc
Read more…
Further to may last post , Oracle 11g new Features – Part 1 , I am covering some more features here.
Client Query Result Cache
Oracle 11g allows client’s memory to cache query result sets which significantly improves the performance of repetitive queries by OCI-based clients.
Benefits of Client Cache feature
- Extending server-side query caching to client side memory, by leveraging cheaper client-side memory and caching each application’s working set locally.
- Ensuring better performance by eliminating round trips to the server.
- Improving server scalability by saving server resources
- offering transparent cache management: memory management, concurrent access of result-sets.
To start using client cache – set following initialization parameter:
CLIENT_RESULT_CACHE_SIZE = 1G Read more…
Raheel Ahmad is the first Supply Chain certification guru on Skill-Guru. He has added Supply Chain Certification Mock test for our users. Take the test and give you.
Based on your feedback he will add more questions.
Oracle 11g has some pretty cool new features. I am covering some of the Read Only tables and Server result cache features in this post
Read only Tables
In 10g or prior oracle releases, table can be made read only by granting the SELECT object privilege to them. Oracle 11g allows tables to be marked as read-only by ALTER TABLE command.
Example:
Create table
CREATE TABLE orders (
id NUMBER
);
Mark table as read-only
ALTER TABLE orders READ ONLY;
DML operations
INSERT INTO orders VALUES (2) ;
UPDATE orders SET id = 2;
DELETE FROM orders; Read more…
There is some bit of confusion with hibernate users as to what exactly saveorUpdate method does . saveOrUpdate is general purpose method that either saves a transient instance by generating a new identifier or updates/reattaches the detached instances associated with its current identifier.
I have seen people using saveOrUpdate() instead of an update. Hibernate doc clearly says that update() or saveOrUpdate() is to be used in the following scenario: Read more…
Hibernate mapping: the <Class> element: Some useful options
In hibernate mapping file the <class> element maps the domain object with corresponding entity in the database. It will be defined under <hibernate-mapping> tag. <Hibernate-mapping> tag also allows multiple <class> tags inside it. (i.e we can save multiple class mapping information in a single file).
A sample class element looks like below:
<hibernate-mapping>
<class table=”user_tasks” >
<id column=”user_task_id”>
<generator>
</generator>
</id>
.
.
.
</class>
</hibernate-mapping>
Here we don’t discuss all the class element attributes, but some which I found very useful: Read more…
Using Spring with JDBC is not a very common usage I have seen but sometimes you have applications with very few tables and simple CRUD operation and you do not need full fledged ORM framework like hibernate .
JDBC API provides connectivity between the database and java program. It provides support for wide range of databases from complex SQL – Based databases to tabular data sources like spread sheets. With JDBC – enabled driver one can connect to database and run the queries, fetch data etc in a java program.
JDBC API is widely used to access db in java applications. Often hibernate and JDBC gets compared and Hibernate looks better than JDBC API. But Hibernate it has a big learning curve. People who are aware of JDBC sometime want their projects to be completed fast and might not want to switch to ORM. In this case one can use JDBC with Spring. Read more…
For a lot of small business who rely on Google ads to bring them customers , this would not be good news. A report says that only 8% of Internet Users Account for 85% of all Clicks. This is an update to the comScore highly publicized “Natural Born Clickers” research, conducted two years ago with Starcom USA and Tacoda.
The Complete report can be found at Media Post
Now this data along with other news abut click fraud on face book , would not sound sweet to ears of those who are paying for google adwords or facebook ads. There was another story on techcrunch Facebook Click Fraud 101.
I think the way to combat the problem is performance based ads. Companies like google and facebook should get paid only if some transaction happens. The banner ads can help in getting brand awareness but this is good for only big companies or those who have big budgets. A small medium to size business is more interested in getting revenues in order to sustain long enough for the brand to be recognized.