Posts

Showing posts from 2013

Methods to Integrate Axis and CXF Webservices in our Code

Axis Download and Unzip the Axis Standard Distribution.Get all the required Axis libraries for generating java files from WSDL. set the Classpath to these libraries from the command prompt.The libraries list are given below axis.jar,org.apache.commons.logging_1.0.4.v200904062259.jar, org.apache.commons.logging_1.0.4.v201005080501.jar, commons-discovery-0.2.jar,jaxrpc.jar,jaxws-rt.jar,jaxws-tools.jar, saaj.jar,resources.jar,javax.wsdl_1.5.1.v200806030408.jar, javax.wsdl_1.5.1.v200806030408.jar use the command from Command Prompt for Eg: java org.apache.axis.wsdl.WSDL2Java mywebservice.WSDL to generate the Java Stub Files. Either write a build script or set the classpath and using javac compile the entire Java Files This will generate required stub classes for you to invoke the actual Service. Configure the WebService EndPoints in your Custom Classes and create an instance of the Stub and pass the URl. Create the Necessary Input which will be passed as the request to t...

ATG Customize and Enhance your CRS Module easily

Firstly we need to create a folder and give the name of your choice,For example i have given Wirelessstore, inside that folder you create a META-INF folder,and create a MANIFEST.MF file,once this is done then modify the Manifest file property to ATG-Install-Unit:MyWirelessStore(MyWirelessStore is the name i have given instead of the name Store in CRS module) and create a folder with the same name MyWirelessStore under Wirelessstore,after this copy all  CRS-Store folders under this folder. You can Refer the CommerceReferenceStore Manifest file for this. Now configure your eclipse and import the necessary folders to your workspace.Resolve the classpath by importing required Jars and Classes to your Buildpath and do a clean build of your Project. Now create a runAssembler command so that it will pick modules from your newly created folder structure. runAssembler -m ATGProduction.ear -m DafEar.Admin DPS DSS  DSS DCS.PublishingAgent MyWirelessStore.EStore MyWirelessStore.Rec...

ATG dos and donts with Weblogic

1. Use single and Double quotes alternatively .             <dsp:param name='<%="abc"%>' value = "12" /> - Correct     <dsp:param name="<%="abc"%>" value = "12" /> - Wrong 2. Proper String Concatenation     <dsp:param name='"xxx" + <%="abc"%>' value = "12" /> -       Correct     <dsp:param name="xxx"<%="abc"%> value = "12" /> - Wrong 3. Use DynamoHttpServletRequest instead of HttpServletRequest    DynamoHttpServletRequest drequest =     ServletUtil.getDynamoRequest(request);  4. Always Specify encoding type in JSP Pages    <%@ page contentType  = "text/html" %>    Below are few best practices for developers 1. Always use Generics. 2. Use String Builder instead of String Buffer in logging . 3. Always use Enhanced For Loop. 4. Use annotations(@over...

Endeca Set Of Questions and Answers to test your Knowledge

What  are the components that  make up the ITL transformation layer ? a: Forge Dgidx b: CAS MDEX c: CAS Experience Manager d: CAS Workbench Ans: a What is the component  which convert document and files to endeca souce property ? a: Experience  Manager b: MDEX c: Deveoloper Studio d: CAS Ans: d Source Data can come from Text files,Database,Filesystems and Websites true false  Ans: true You can update the index by one of the following a: fraction update b: modular update c: baseline update d: input update Ans: c Which process assigns auto generated dimension values a: workbench b: forge c: mdex d: application server Ans: b What are the possible data types of endeca property a: Date Time b: Integer c: Alpha d: Floating Point e: All The Above  Ans:e How many data sources a record can map a: One b: One or Many c: Upto 5 d: It cannot be possible to map Ans: e which one of the following is not a match mode a: ...

Customize to start Nucleus manually inside your java class

There is  a  simple approach to Initiate nucleus manually.Knowing this may help to customize Nucleus,like Override the default behavior, writing a custom junit test for testing profiles,repositories, etc. ATG has tools which Initiate N ucleus as a standalone to perform  some of their tasks.You might have used StartSqlRepository,the StartSqlRepositoy Initiate the nucleus as standalone.You need to take care of mapping the Repositories to appropriate Datasources.This is generally achieved through FakeXAComponents.All this are already available OOTB,but you can also start Nucleus manually doing some simple customization. Below are the customizations you need to do to start Nucleus manually,the modules given here are OOTB,additionally you need to include your respective modules and custom modules to resolve the necessary components. Define a component mynucleus and configure it in your build path . atg.dynamo.home=C:\\ATG\\ATG10.2\\home atg.dynamo.root=...

ATG-Class-Path Usage and Duplicate Class Files in JARS

I came across a situation in which i have two Class Files of the same name in different JARs but with some methods similar and other methods entirely different , these two JARS are required for the same Project with different Modules and i want to access the one which is compatible with my Code and Module,The other Module obviously dont want this Class file but requires other Classes,now the issue is you  have both the jars in CLASSPATH.How will you make sure you are pointing to the correct Class files in this situation, you need the Class Files from one JAR which has your updated method for a new functionality, You may experience the same issue while organizing imports or resolving a Java component. Here you need to do two things,first one is to resolve the component at Compile time in Eclipse or other IDEs,the second part is to resolve the runtime conflicts in the Application Server So for Compile time,Assume if you are using Eclipse and you have both  JAR added ...

ATG Implementation Developer Essential Certifications Reference

I have taken the Certification and cleared it ,Following are the few questions and answers i can recollect.Hope this would help you to prepare for the Certifications to some Extend.All the best for the Certifications. Which two ASE tasks can be performed by ACC but not BCC Ans : Scenarios,Slots,Workflow Role of allocateItemRelQuantitychain Ans : To purchase item from Preorder Backorder and the Avaialble Stock Ininvetory   How many current and saved orders does ATG allows fora User Profile Ans : One current Order and Collection of Saved Orders What is a Reanimated Order Ans : Previously Abandoned Order in which user has added items or modified the item quantities What are the properties we need to add in the Versioned schema for Primary tables and Auxiliary tables Ans : asset_version in both Primary and Auxiliary tables,other 7 columns in Primary tables What component should a shareable component register with Ans : sitegroup If you want to update the Computed Catal...

/atg/epub/DeploymentServer error encountered reading in persisted status java.io.EOFException

 Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer      error encountered reading in persisted status   java.io.EOFException  Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553)  Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)  Mon Jul 08 22:07:25 IST 2013    1373301445080   /atg/epub/DeploymentServer              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:...

Weblogic Issues during EAR Deployment Exception in AppMerge flows progression

Unable to access the selected application Exception in AppMerge flows progression Bean already exists "weblogic.j2ee.descriptor.ModuleBeanImpl@..../Modules[weblogic.descriptor.internal.Descriptor.Beankey@....] This issue can happen in many scenarios, may be you need to check your deployment descriptors based on Application Servers used, this generally happens due to issue in XML files related to deployment. I got this issue when i mistakenly added the modules twice in the Manifest file, the module 'Store.Storefront' is added more than once in  'ATG-Required'  of my Manifest.MF file,due to this i am seeing the module 'storedocroot.war' is added twice in my application.xml which is located in the  path ATGProd.ear\META-INF\application.xml.Due to this i am not able to deploy my EAR file. I have removed the duplicate entry and deployed the application and everything working fine. ....... <module>         <web>  ...