atg

How to get a user clinet/Remote port in java DynamoHttpServletRequest

我怕爱的太早我们不能终老 提交于 2021-01-29 09:11:13
问题 I try to get a client port for some security purpose. The Remote Port is change for each and every DynamoHttpServlet Request and Response. I need a constant Remote port look like session. When user enter into the site that time Remote port was generated but this generated port destroy only when user leave the site until i need the same port in each and every request. Is there any possibilities ? 来源: https://stackoverflow.com/questions/64641731/how-to-get-a-user-clinet-remote-port-in-java

ATG RepositoryItem getPropertyValue, no cache, no transaction

て烟熏妆下的殇ゞ 提交于 2019-12-25 07:03:06
问题 If I have an ATG Nucleus Repository Item that is not cacheable (ATG/Nucleus simple cache is disabled) AND I'm not in a transaction, the following results in two queries to the database. The following code results in a db query for every property. repositoryItem.getPropertyValue("columnA"); repositoryItem.getPropertyValue("columnB"); If debugging for the user entity is enabled you would see the following log statements ever each call: repositoryItem.getPropertyValue("columnA"); DEBUG

ATG RepositoryItem getPropertyValue, no cache, no transaction

喜欢而已 提交于 2019-12-25 07:02:11
问题 If I have an ATG Nucleus Repository Item that is not cacheable (ATG/Nucleus simple cache is disabled) AND I'm not in a transaction, the following results in two queries to the database. The following code results in a db query for every property. repositoryItem.getPropertyValue("columnA"); repositoryItem.getPropertyValue("columnB"); If debugging for the user entity is enabled you would see the following log statements ever each call: repositoryItem.getPropertyValue("columnA"); DEBUG

Jquery unescape response text from java servlet not working properly

爱⌒轻易说出口 提交于 2019-12-25 06:07:22
问题 java code pResponse.setHeader("content-type", "text/plain;chartset=UTF-8"); pResponse.setContentLength(resultsJson.length()); Writer out = pResponse.getWriter(); String escapedJsonString = StringEscapeUtils.escapeJavaScript(resultsJson); out.write(escapedJsonString); The purpose to escape the return text is because there are some accented character in 'resultsJson' and even though I set charset=UTF-8, I still get garbled text from ajax. check this question from me ajax garbled text ajax code

Error on reference integration ATG Siebel

倖福魔咒の 提交于 2019-12-24 06:03:57
问题 We are integrating ATG to Siebel, we are getting an error while syncing the products from Siebel below are the error. [oracle@localhost logs]$ less VodafonePub.out **** Error Wed Jul 20 04:41:36 EDT 2016 1469004096089 /atg/siebel/catalog/SiebelCatalogImportService THREAD (Thread-58): Batch processing failed. Logging details with parent. **** Error Wed Jul 20 04:41:36 EDT 2016 1469004096090 /atg/siebel/catalog/SiebelCatalogImportService Aborting Job after ADD/UPDATE PHASE - all repository

Is it possible to do Hotswapping of ATG classes

落爺英雄遲暮 提交于 2019-12-14 04:16:26
问题 The deployment we follow is that we use runAssembler.bat to build an ear file and deploy it in a app server. We are using weblogic and jboss for testing purposes of the modules we built. However for every small change, we need to run runAssembler and build a new ear and deploy it in app server and restart the server. I would like to find out if anyone figured out a way to do Hotswapping of class files which are generated by the code we write in ATG environment in either weblogic or jboss. 回答1

ATG-JBoss project in eclipse

ぐ巨炮叔叔 提交于 2019-12-13 04:42:30
问题 I have created a sample ATG project in eclipse. This is the way I followed. File->New->Project-> ...atg wizards->New ATG Module Next-> put project name as MyFirstATGApp and select ed root diretory as C:\ATG\ATG10.1.2 Next->Default atg adaptive senario engine is selected. Next->Next-> changed "Default output folder" value as " MyFirstATGApp /classes" Next->set J2EE application Name= MyFirstATGApp-j2ee, Web application name= MyFirstATGApp-web, Context-root= MyFirstATGApp and selected Target

PWA cache for xml based frameworks

ⅰ亾dé卋堺 提交于 2019-12-13 04:33:27
问题 While integrating PWA for Frameworks based on XML & FTL like ApacheOfbiz, Oracle ATG the js, CSS file gets cached but unable to cache text/document files. As the result my pages are not loading in offline Here my service worker code: workboxSW.router.registerRoute(/\.(?:html|document|css|js)$/, workboxSW.strategies.networkFirst({ "cacheName": "CachePages" }), 'GET'); 来源: https://stackoverflow.com/questions/56863293/pwa-cache-for-xml-based-frameworks

Using PowerMock to obtain the ATG Nucleus in testing results in NPE

╄→尐↘猪︶ㄣ 提交于 2019-12-13 03:24:55
问题 I am trying to test the following bit of code: GSARepository productCatalog = (GSARepository) Nucleus.getGlobalNucleus().resolveName("/atg/commerce/catalog/ProductCatalog"); for (RepositoryItem orderItem : orderItems) { String product = (String) orderItem.getPropertyValue(PropertyNameConstants.PRODUCTID); if (!ProductUtils.isSpecial(product, productCatalog)) { isSpecial = false; break; } } clearly Nucleus.getGlobalNucleus() is static. According to the docs I should be able to use:

How do you organise your ATG projects?

依然范特西╮ 提交于 2019-12-12 08:31:00
问题 If you develop for ATG Dynamo, how do you structure your modules and dependencies? How do you structure the projects? source directories, JARs configs etc. How do you build and deploy? What tools do you use? 回答1: We have a monolithic architecture with a single ATG module. We originally developed this site with JHTML and have since created a (monolithic) J2EE web app within this ATG module and converted all of our JHTML to JSP. Our project on disk looks like this: root deploy class (compile