Posts

Dyna caching

Caching improves response time and reduces system load to improve the performance of world-wide web applications. The Dyna caching service includes:- ü     Servlet or JSP result cache, caching the fragments of JSP or whole page. ü     Command cache to cache business objects. ü     Edge Side Include (ESI) caching to cache, assemble and deliver the dynamic web pages at the edge of enterprise network. ü     Invalidation support to ensure that the content of cache is correct. Invalidation can be rule-based, time-based, group-based and programmatic. ü     Replication support, to enable cache sharing and replication on multiple servers. ü     Disk offload capability, to enable and storing large amount of data, preserve the content in the application server until it is restarted or stopped. The caching specific behaviour of the WCS is specified in the   cachespec.xml   present in the   Stores.war . ...

Dyna caching in WCS

Caching improves response time and reduces system load to improve the performance of world-wide web applications. The Dyna caching service includes:- ü    Servlet or JSP result cache, caching the fragments of JSP or whole page. ü    Command cache to cache business objects. ü    Edge Side Include (ESI) caching to cache, assemble and deliver the dynamic web pages at the edge of enterprise network. ü    Invalidation support to ensure that the content of cache is correct. Invalidation can be rule-based, time-based, group-based and programmatic. ü    Replication support, to enable cache sharing and replication on multiple servers. ü    Disk offload capability, to enable and storing large amount of data, preserve the content in the application server until it is restarted or stopped. The caching specific behaviour of the WCS is specified in the  cachespec.xml  present in the  Stores.war . Dyna cachi...

E-commerce development Point should be remember before kick start

1 .  Use SSL only within your cart. There’s a hell of a lot of debate around this. But one fact is clear: SSL page requests require more server cycles than non-SSL page requests. If your site gets tens of thousands of page and file requests per day, it adds up. Plus, if your whole site’s in SSL, things like Google Webmaster Tools won’t work. So only use SSL for pages that need it: Your checkout process, and any other pages where a customer has to enter confidential information. 2 .  Don’t use SSIDs in your page URLs. Ever. . SSIDs are ugly things like ?sid=asdfweroi120398123582745 that end up on the end of URLs on some sites. They’re used to uniquely identify a user session, for purposes of tracking stuff like your cart contents. They’re also unnecessary until you put something in your cart. So don’t use them, at all, on the site unless someone’s added something to their shopping cart. 3. Use good validation. When the designer asks you to check if someone forgot to type ...

Attribute Dictionary

Attributes and Products relation will be there in CATENTRYATTR table. Other required tables are, ATTR, ATTRDESC, ATTRVAL, ATTRVALDESC. Using the Services provided by OOB we can get this data by passing the catentryId and langId. WCS Service: < wcf:getData type = "com.ibm.commerce.catalog.facade.datatypes.CatalogEntryType" var = "catentryAttr" expressionBuilder = "getStoreCatalogEntryAttributesByID" >       < wcf:contextData name = "storeId" data ="${param.storeId}" />       < wcf:param name = "catEntryId" value ="${product.entitledItems[0].itemID}" />       < wcf:param name = "dataLanguageIds" value ="${WCParam.langId}" />   </ wcf:getData > WCS Service will be called by using “ wcf:getData ” tag library. We need to specify expressionBuilder which is already there in get-data-config.xml ( This file will be under the foll...

Fetching response through JSP

1: For parsing xml response from JSP   see the following file-    search.jsp 2: For parsing faceted response from JSP see the following file-          facetedsearch.jsp

Data Importing From Database

1: Move into folder c:\project\apache-solr-1.4.0\example\solr\conf 2: Create data-config.xml file . 3: Type following code- <dataConfig> <dataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/ofbiz" user="root" password="root“ />     <document name="books">  <entity name="books" pk="id" query="select id,name,price,category,publisher from books">         <field column="id" name="id" />         <field column="name" name="name" />  <field column="price" name="price" />         <field column="category" name="category" />         <field column="publisher" name="publisher" /> </entity>    </document> </dataConfig> 1: open solrconfig.xml file 2: Copy the fo...

Calling of admin panel

1: For admin panel type following url.        http://localhost:8993/solr/admin 2: Search text box will appear. 3: Type any content and click search button . 4: Xml response will generate without record .