About the reload period of portal 7.0's WebApp
Hi,
<br>
I have set WLS_PROD_MODE = false in the startWebLogic.cmd
<br>
to run my portalDomain in Development mode
<br>
And have set the reload period in
<br>
WebApp's Configuration tab and Files subtabto to zero.
<br>
But when I test my new jsp every time,
<br>
it shows the result of the old jsp.
<br>
How should I configure any other setting?
<br>
Any suggestion is welcome. Thanks a lot!
Chain,
There is one more place to make a change. Set your pageCheckSeconds to zero in WEB-INF/weblogic.xml
http://e-docs.bea.com/wls/docs70/webapp/weblogic_xml.html#jsp-descriptor
PJL
"Chain" <[email protected]> wrote:
>
Hi,
<br>
I have set WLS_PROD_MODE = false in the startWebLogic.cmd
<br>
to run my portalDomain in Development mode
<br>
And have set the reload period in
<br>
WebApp's Configuration tab and Files subtabto to zero.
<br>
But when I test my new jsp every time,
<br>
it shows the result of the old jsp.
<br>
How should I configure any other setting?
<br>
Any suggestion is welcome. Thanks a lot!
Similar Messages
-
About the performance of plumtree portal.
Please let me ask a question about the performance of plumtree portal.The good reply is not obtained although I have asked the support center in Japan.I saw the log of ptspy.Delay had occurred in the following two points.
1. Although it is a "<.static.> InetHost::Select(xxxx) is called on 0 write+xx read sockets." part, what processing is performed actually in the message by the plum tree by the processing of inethost.cpp in a WebDownloaderParallel.dll component?
2. Although it is the part of "CreateFilterContext()-Created new context at address" by the message, is it the operation which is creating the context path for connection with the exterior in PTGWFilter.cpp in a Gateway component?
Moreover, although delay of processing may occur in these parts, what factor can be considered?
Thanks,Hi, this is Nobuyuki, Plumtree PSO, working for this project.
I'm attaching snapshot of ptspy from them. I've found that there are two ares which
seem to take much time.
1.
125649 02-22 20:31:23 Debug Gateway 5788 5564 PTGWFilter.cpp(1271) OnEndOfRequest() - called for CtxtPass::TunnelIn <0x2a82210> request125650 02-22 20:31:23 Debug Gateway 5788 5564 PTGWFilter.cpp(232) DeleteContext() - Deleting context at address <0x03CE9478>.125651 02-22 20:31:23 Debug Unified Cache 5988 5936 ptcache.h(2547) PTCache<StoredType, KeySize>::GC() Ending TTL run with 0 item(s) freed!125652 02-22 20:31:23 Debug Unified Cache 5988 5936 ptcache.h(2468) PTCache<StoredType, KeySize>::GC() Starting new TTL run!125653 02-22 20:31:23 Debug Unified Cache 5988 5936 ptcache.h(2547) PTCache<StoredType, KeySize>::GC() Ending TTL run with 0 item(s) freed!125654 02-22 20:31:25 Debug Gateway 5788 3748 PTGWFilter.cpp(198) CreateFilterContext() - Created new context at address <0x03CE9478>.125655 02-22 20:31:25 Debug Gateway 5788 3748 PTGWFilter.cpp(944) OnReadRawData() - Called on new managed request <0x3923f00> with 1460 bytes of data (GET /portal/server.pt?in_hi_userid)125656 02-22 20:31:25 Debug Gateway 5788 3748 PTGWFilter.cpp(1147) OnReadRawData() - Disable Notifications for request <0x3923f00>.(NOT a gateway request)
Process id of portal is 5988, not 5788.
2.
151358 02-22 20:34:27 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1057) 1751857657 : < .static. > InetHost::Select(2104) is called on 0 write + 1 read sockets.151359 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(996) 1751859579 : <0x0A132950> InetHost::Recv(16234) is called for host "http://eippt2.cc.avex.co.jp:80".151360 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1036) 1751859579 : <0x0A132950> InetHost::Recv(16234) exiting for host "http://eippt2.cc.avex.co.jp:80" in 0 mS.151361 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1057) 1751859579 : < .static. > InetHost::Select(823) is called on 0 write + 1 read sockets.151362 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(996) 1751859579 : <0x0A132950> InetHost::Recv(16234) is called for host "http://eippt2.cc.avex.co.jp:80".151363 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1036) 1751859579 : <0x0A132950> InetHost::Recv(16234) exiting for host "http://eippt2.cc.avex.co.jp:80" in 0 mS.151364 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1057) 1751859579 : < .static. > InetHost::Select(823) is called on 0 write + 1 read sockets.151365 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(996) 1751859594 : <0x0A132950> InetHost::Recv(16219) is called for host "http://eippt2.cc.avex.co.jp:80".151366 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1036) 1751859594 : <0x0A132950> InetHost::Recv(16219) exiting for host "http://eippt2.cc.avex.co.jp:80" in 0 mS.151367 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1057) 1751859594 : < .static. > InetHost::Select(813) is called on 0 write + 1 read sockets.151368 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(996) 1751859594 : <0x0A132950> InetHost::Recv(16219) is called for host "http://eippt2.cc.avex.co.jp:80".151369 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1036) 1751859594 : <0x0A132950> InetHost::Recv(16219) exiting for host "http://eippt2.cc.avex.co.jp:80" in 0 mS.151370 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1057) 1751859594 : < .static. > InetHost::Select(813) is called on 0 write + 1 read sockets.151371 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(996) 1751859594 : <0x0A132950> InetHost::Recv(16219) is called for host "http://eippt2.cc.avex.co.jp:80".151372 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 inethost.cpp(1036) 1751859594 : <0x0A132950> InetHost::Recv(16219) exiting for host "http://eippt2.cc.avex.co.jp:80" in 0 mS.151373 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 httprequest.cpp(1883) 1751859594 : <0x099E9110> HttpRequest::Process(20000) completed one of the requests in 3781 msec.151374 02-22 20:34:29 Performance WebDownloaderParallel.dll 5988 3960 httprequest.cpp(2185) 1751859594 : <0x099E9110> HttpRequest::Process(20000) completed in 3781 msec.
All lines are Performance type and I guess turning off performance output of ptspy may
elimnate this bottle neck. -
Unable to view Time-Statement for the Chosen period in Portal
Hi ,
I am unable to get the timestatement for the Chosen period in Portal
What are the configurations that are to be made for the Timestatements to get dispalyed at the Portal end .
At r/3 end , we have a timestatement data for an employee and moved that to a Cluster B1. so how does it reflect in the portal.
What am i missing to get that Timestatement to get displayed on Portal
Regards,
VijayHi there,
As of what I see it is an MSS scenario.In this you used a business package, iviews. There should be a webdynpro application or BSP application running at the front end to get this out.
Now, as you mentioned at the R/3 end you have a time statement. So if your web application is programmed properly, it will fetch the req. time data from backend. What you need to see is that the web application is bug free.
You need to do some debugging there, if the right data is fetched.
but before all this, you need to check if your portal worksets in the business package are set up properly, along with the iviews, pages.
Regards,
Bharat
Message was edited by:
Bharat -
hi,
can u tell me the diff. for -period and in-period in the sap-abap-hr. wt is the use of these in hr-payrollhi
this is what is get when i looke dfor the same
For Period is Retro..
In Period is Current Period Processing
anuj -
I have V6 of Firefox and never had to worry about the "Reload Page" icon before so when I upgraded to V6 I was sorry to see that it was gone. Also the "Page Back" arrow isn't lit up and won't work. I have to go to the history and go back using that.. what happened to the back arrow? Now there are 2 clicks instead of one?
I went to the "customize Toolbar" and moved the "reload Page" icon back to the top and it disappeared when I was done. How can I keep the "Reload Page" visible and useful?You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden (View > Toolbars > Customize or right-click a toolbar).<br />
If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.<br />
You only see the Bookmarks menu button if the Menu bar is hidden. -
I'm in the trial period for Creative Cloud - I have about 19 days to go on Photoshop CC on my iMac. Can I use the same CC trial on a second machine? Specifically on a Windows 7 machine?
Nothing personal to you or Rajshee, but this is exactly why I absolutely despise these "community forums" (not just Adobe but any company). I called the Tech Support phone line today after digging and digging for a phone number, and they told me the exact opposite, and they did it a lot faster than it was possible to get a forum response. (That's really not personal, because you can't control that, but it's a fact.)
Their answer: As long as I'm signed in with the same ID, I can try, say, Photoshop CC on my iMac at home and also try Acrobat Pro CC on my Windows 7 machine at work. Same account, same login, one trial.
This makes complete sense to me as I'm financially on the hook (potentially) for the same package. If I give away my login to someone else, which I wouldn't do, I'm still on the hook. This is why the cloud approach to software is such genius and I applaud it.
BTW, 99% of the "community forum" wrong answers come on Microsoft sites, so don't feel bad. -
Portal activity reports "No content available for the specified period."
Hello experts,
I'm running NW04S PS18 (7.0.18.0.0), and I like to create a activity report iview. I've turned on the service in the service configuration and it's all running and enabled there. Then I created an iview from the portal activity report template. Type of report is page/iview activity and reporting period is most recent activity for 1 week. I add a couple of iviews. When I preview the iview I get the message 'No content available for the specified period'. When I add a role where the iviews are included the reports shows data. I try it with pages and worksets but the report is only working when I add roles. When I add roles, the hits will be shown add role level. When iview 'a' is added to 3 roles, the iview is displayed 3 times in the report and not 1 time. Why?
Is it not possible to add just iviews?
Greetings
JoeriHi,
First check the monitor properties of the page/iview is properly enabled or not.
then add the role(in which your iview/page is present) to the portla activity report iview.
Delete all other pages/iviews/worksets/role except your iview/page. this can be done easily.
now save and check the report iview.
Raghu -
About the role of SSO interface versions on portal functioning
i have a general question about the SSO version and the Portals functioning. it relates specifically to 9iAS portals 3.0.9 and OracelAS 10g(904).
how significant is the SSO interface version (like v1.1, or v1.2) in the portal functioning.
- what relevance does it have with the WWSEC_ENABLER_CONFIG_INFO table entries? i know it can be seen in that table too. but what does it do for these entries.
- if the SSO interface version would not be correct, will it change the site2pstoretoken value? i suppose it precedes this token value sometimes.
- what errors one should expect if the SSO interface version is not correct for a certain portal?
thanks for any help.i have a general question about the SSO version and the Portals functioning. it relates specifically to 9iAS portals 3.0.9 and OracelAS 10g(904).
how significant is the SSO interface version (like v1.1, or v1.2) in the portal functioning.
- what relevance does it have with the WWSEC_ENABLER_CONFIG_INFO table entries? i know it can be seen in that table too. but what does it do for these entries.
- if the SSO interface version would not be correct, will it change the site2pstoretoken value? i suppose it precedes this token value sometimes.
- what errors one should expect if the SSO interface version is not correct for a certain portal?
thanks for any help. -
Planned Orders Are Being Created In The Future Period (About Six Months onw
Dear All,
We are facing a problem that when we execute the product heuristics for a particular location - item, planned orders are not getting generated as per the demand element in the current period but they are getting generated in future period say six months from now... We could NOT understand that Why the system is pushing the orders in future period. We have checked the following parameters :
Calendar is active for the period upto DEC"2012.
Time Streams have been genereted for the particular resource.
Resource(s) do exist in Live Cache.
Sufficient capapcity is available in the current period (as viewed from the resource planning table).
Please advise that what other parameters should be checked in order to get the planned orders in current period. In this regard, we shall like to confirm that we are facing this issue since last 8 - 10 days, earlier, there was NOT such an issue.
With Best Regards,
Sanjeev Chugh
06-JAN-2012Hi Sanjeev,
Did you maintain any value for planning time fence, and if yes, how big is it? This could be one possible reason why system is not able to plan the orders (also depends on what Heuristics you are using).
In RRP3, double click on your planned orders and check out the start date and the end date. Is your start date also lying in the future, or is it that due to long time in your operations (somehow your PDS/PPMs got messed up?), orders availability got pushed to the future.
I am not an expert in PPDS, but I can only think of different lead times coming into picture which could possibly push your planned orders availability to the future.
See if this helps.
Thanks - Pawan -
Portal Theme - Portal Theme Editor - What about the WD4A Applications
Hello,
Question is :
i copied a standard theme : SAP_TRADESHOW to make a custom theme. I used the portal theme editor in the portal.
i changed the colors and the pics.. The Screens of the portal is like i changed it.
But my problem is, when i open a WD4A Application which is included in the portal, for example "Travel Management" it is showen in the standard sap_tradeshow colors.
I also checked the versions of the backend themes in the mime, but the version of the theme in der portal i used is younger than the backend theme.
Is it necessary, that to make a backend theme with the colors of the changed portal theme, and contain the URL of the mime in the theme_root parameter of the WD4A Applications?
What kind of options do i have ??
Can anyone help me ??
greeting
dominicI have found it already.... The structure of the themes can be located at the Portal server (file system) in path:
\usr\sap\ep1\jc00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\ irj\root\portalapps\com.sap.portal.themes.lafservice\themes\portal
regards,
Noel -
How to get the log on details of users in the given period
Hi Frndz..
I need logon information of portal users, means in a given period i need the information of each user when they loged in and how much time they are in portal and if it is possible whcih application they accessed.
Am trying to get this from Portal Activity Reports but am not gettinig as per my requirment, n it seems to be not possible to customize as per our requirment.
Thanks in Advance
Regards
Rajeshhi
You can also directly query the following Portal database tables,for information on users:
WCR_USERSTAT: Holds information about the number of users who logged on to the portal.
WCR_USERFIRSTLOGON: Holds information about the first logon of each user and how many pages and iViews the user viewed
WCR_USERPAGEUSAGE: Holds information about which users viewed which pages and iViews.
Thanks
Bharathi.ch -
Today I had requirement, where we have to use the SharePoint Foundation 2013 (free version) to build an intranet portal ( basic announcement , calendar , department site , document management - only check-in check-out / Version).
Please help me regarding the license and size limitations. ( I know the feature comparison of Standard / Enterprise) I just want to know only about the installation process and license.
6 Server - 2 App / 2 Web / 2 DB cluster ( so total license 6 windows OS license , 2 SQL Server license and Guess no sharepoint licenes)Thanks Trevor,
Is load balance service also comes in free license... So, in that case I can use SharePoint Foundation 2013 version for building a simple Intranet & DMS ( with limited functionality). And for Workflow and content management we have to write code.
Windows Network Load Balancing (the NLB feature) is included as part of Windows Server and would offer high availability for traffic bound to the SharePoint servers. WNLB can only associate with up to 4 servers.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Namburi,
When you said you used the Reg Exp tool, did you use it only as
preconfigured by the iMT migrate application wizard?
Because the default configuration of the regular expression tool will only
target the files in your ND project directories. If you wish to target
classes outside of the normal directory scope, you have to either modify the
"Source Directory" property OR create another instance of the regular
expression tool. See the "Tool" menu in the iMT to create additional tool
instances which can each be configured to target different sets of files
using different sets of rules.
Usually, I utilize 3 different sets of rules files on a given migration:
spider2jato.xml
these are the generic conversion rules (but includes the optimized rules for
ViewBean and Model based code, i.e. these rules do not utilize the
RequestManager since it is not needed for code running inside the ViewBean
or Model classes)
I run these rules against all files.
See the file download section of this forum for periodic updates to these
rules.
nonProjectFileRules.xml
these include rules that add the necessary
RequestManager.getRequestContext(). etc prefixes to many of the common
calls.
I run these rules against user module and any other classes that do not are
not ModuleServlet, ContainerView, or Model classes.
appXRules.xml
these rules include application specific changes that I discover while
working on the project. A common thing here is changing import statements
(since the migration tool moves ND project code into different jato
packaging structure, you sometime need to adjust imports in non-project
classes that previously imported ND project specific packages)
So you see, you are not limited to one set of rules at all. Just be careful
to keep track of your backups (the regexp tool provides several options in
its Expert Properties related to back up strategies).
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, August 08, 2001 6:08 AM
Subject: [iPlanet-JATO] Re: Use Of models in utility classes - Pease don't
forget about the regular expression potential
Thanks Matt, Mike, Todd
This is a great input for our migration. Though we used the existing
Regular Expression Mapping tool, we did not change this to meet our
own needs as mentioned by Mike.
We would certainly incorporate this to ease our migration.
Namburi
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
All--
Great response. By the way, the Regular Expression Tool uses thePerl5 RE
syntax as implemented by Apache OROMatcher. If you're doing lotsof these
sorts of migration changes manually, you should definitely buy theO'Reilly
book "Mastering Regular Expressions" and generate some rules toautomate the
conversion. Although they are definitely confusing at first,regular
expressions are fairly easy to understand with some documentation,and are
superbly effective at tackling this kind of migration task.
Todd
----- Original Message -----
From: "Mike Frisino" <Michael.Frisino@S...>
Sent: Tuesday, August 07, 2001 5:20 PM
Subject: Re: [iPlanet-JATO] Use Of models in utility classes -Pease don't
forget about the regular expression potential
Also, (and Matt's document may mention this)
Please bear in mind that this statement is not totally correct:
Since the migration tool does not do much of conversion for
these
utilities we have to do manually.Remember, the iMT is a SUITE of tools. There is the extractiontool, and
the translation tool, and the regular expression tool, and severalother
smaller tools (like the jar and compilation tools). It is correctto state
that the extraction and translation tools only significantlyconvert the
primary ND project objects (the pages, the data objects, and theproject
classes). The extraction and translation tools do minimumtranslation of the
User Module objects (i.e. they repackage the user module classes inthe new
jato module packages). It is correct that for all other utilityclasses
which are not formally part of the ND project, the extraction and
translation tools do not perform any migration.
However, the regular expression tool can "migrate" any arbitrary
file
(utility classes etc) to the degree that the regular expressionrules
correlate to the code present in the arbitrary file. So first andforemost,
if you have alot of spider code in your non-project classes youshould
consider using the regular expression tool and if warranted adding
additional rules to reduce the amount of manual adjustments thatneed to be
made. I can stress this enough. We can even help you write theregular
expression rules if you simply identify the code pattern you wish to
convert. Just because there is not already a regular expressionrule to
match your need does not mean it can't be written. We have notnearly
exhausted the possibilities.
For example if you say, we need to convert
CSpider.getDataObject("X");
To
RequestManager.getRequestContext().getModelManager().getModel(XModel.class);
Maybe we or somebody else in the list can help write that regularexpression if it has not already been written. For instance in thelast
updated spider2jato.xml file there is already aCSpider.getCommonPage("X")
rule:
<!--getPage to getViewBean-->
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getViewBean($1ViewBean.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
Following this example a getDataObject to getModel would look
like this:
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getModel($1Model.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
In fact, one migration developer already wrote that rule andsubmitted it
for inclusion in the basic set. I will post another upgrade to thebasic
regular expression rule set, look for a "file uploaded" posting.Also,
please consider contributing any additional generic rules that youhave
written for inclusion in the basic set.
Please not, that in some cases (Utility classes in particular)
the rule
application may be more effective as TWO sequention rules ratherthan one
monolithic rule. Again using the example above, it will convert
CSpider.getDataObject("Foo");
To
getModel(FooModel.class);
Now that is the most effective conversion for that code if that
code is in
a page or data object class file. But if that code is in a Utilityclass you
really want:
>
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
So to go from
getModel(FooModel.class);
To
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
You would apply a second rule AND you would ONLY run this rule
against
your utility classes so that you would not otherwise affect yourViewBean
and Model classes which are completely fine with the simplegetModel call.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getModel\(]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getModel\(]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getRequestContext().getModelManager().getModel(]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
A similer rule can be applied to getSession and other CSpider APIcalls.
For instance here is the rule for converting getSession calls toleverage
the RequestManager.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getSession().]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
----- Original Message -----
From: "Matthew Stevens" <matthew.stevens@e...>
Sent: Tuesday, August 07, 2001 12:56 PM
Subject: RE: [iPlanet-JATO] Use Of models in utility classes
Namburi,
I will post a document to the group site this evening which has
the
details
on various tactics of migrating these type of utilities.
Essentially,
you
either need to convert these utilities to Models themselves or
keep the
utilities as is and simply use the
RequestManager.getRequestContext.getModelManager().getModel()
to statically access Models.
For CSpSelect.executeImmediate() I have an example of customhelper
method
as a replacement whicch uses JDBC results instead of
CSpDBResult.
matt
-----Original Message-----
From: vnamboori@y... [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071048">vnamboori@y...</a>]
Sent: Tuesday, August 07, 2001 3:24 PM
Subject: [iPlanet-JATO] Use Of models in utility classes
Hi All,
In the present ND project we have lots of utility classes.
These
classes in diffrent directory. Not part of nd pages.
In these classes we access the dataobjects and do themanipulations.
So we access dataobjects directly like
CSpider.getDataObject("do....");
and then execute it.
Since the migration tool does not do much of conversion forthese
utilities we have to do manually.
My question is Can we access the the models in the postmigration
sameway or do we need requestContext?
We have lots of utility classes which are DataObjectintensive. Can
someone suggest a better way to migrate this kind of code.
Thanks
Namburi
[email protected]
[email protected]
[Non-text portions of this message have been removed]
[email protected]
[email protected]Namburi,
When you said you used the Reg Exp tool, did you use it only as
preconfigured by the iMT migrate application wizard?
Because the default configuration of the regular expression tool will only
target the files in your ND project directories. If you wish to target
classes outside of the normal directory scope, you have to either modify the
"Source Directory" property OR create another instance of the regular
expression tool. See the "Tool" menu in the iMT to create additional tool
instances which can each be configured to target different sets of files
using different sets of rules.
Usually, I utilize 3 different sets of rules files on a given migration:
spider2jato.xml
these are the generic conversion rules (but includes the optimized rules for
ViewBean and Model based code, i.e. these rules do not utilize the
RequestManager since it is not needed for code running inside the ViewBean
or Model classes)
I run these rules against all files.
See the file download section of this forum for periodic updates to these
rules.
nonProjectFileRules.xml
these include rules that add the necessary
RequestManager.getRequestContext(). etc prefixes to many of the common
calls.
I run these rules against user module and any other classes that do not are
not ModuleServlet, ContainerView, or Model classes.
appXRules.xml
these rules include application specific changes that I discover while
working on the project. A common thing here is changing import statements
(since the migration tool moves ND project code into different jato
packaging structure, you sometime need to adjust imports in non-project
classes that previously imported ND project specific packages)
So you see, you are not limited to one set of rules at all. Just be careful
to keep track of your backups (the regexp tool provides several options in
its Expert Properties related to back up strategies).
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, August 08, 2001 6:08 AM
Subject: [iPlanet-JATO] Re: Use Of models in utility classes - Pease don't
forget about the regular expression potential
Thanks Matt, Mike, Todd
This is a great input for our migration. Though we used the existing
Regular Expression Mapping tool, we did not change this to meet our
own needs as mentioned by Mike.
We would certainly incorporate this to ease our migration.
Namburi
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
All--
Great response. By the way, the Regular Expression Tool uses thePerl5 RE
syntax as implemented by Apache OROMatcher. If you're doing lotsof these
sorts of migration changes manually, you should definitely buy theO'Reilly
book "Mastering Regular Expressions" and generate some rules toautomate the
conversion. Although they are definitely confusing at first,regular
expressions are fairly easy to understand with some documentation,and are
superbly effective at tackling this kind of migration task.
Todd
----- Original Message -----
From: "Mike Frisino" <Michael.Frisino@S...>
Sent: Tuesday, August 07, 2001 5:20 PM
Subject: Re: [iPlanet-JATO] Use Of models in utility classes -Pease don't
forget about the regular expression potential
Also, (and Matt's document may mention this)
Please bear in mind that this statement is not totally correct:
Since the migration tool does not do much of conversion for
these
utilities we have to do manually.Remember, the iMT is a SUITE of tools. There is the extractiontool, and
the translation tool, and the regular expression tool, and severalother
smaller tools (like the jar and compilation tools). It is correctto state
that the extraction and translation tools only significantlyconvert the
primary ND project objects (the pages, the data objects, and theproject
classes). The extraction and translation tools do minimumtranslation of the
User Module objects (i.e. they repackage the user module classes inthe new
jato module packages). It is correct that for all other utilityclasses
which are not formally part of the ND project, the extraction and
translation tools do not perform any migration.
However, the regular expression tool can "migrate" any arbitrary
file
(utility classes etc) to the degree that the regular expressionrules
correlate to the code present in the arbitrary file. So first andforemost,
if you have alot of spider code in your non-project classes youshould
consider using the regular expression tool and if warranted adding
additional rules to reduce the amount of manual adjustments thatneed to be
made. I can stress this enough. We can even help you write theregular
expression rules if you simply identify the code pattern you wish to
convert. Just because there is not already a regular expressionrule to
match your need does not mean it can't be written. We have notnearly
exhausted the possibilities.
For example if you say, we need to convert
CSpider.getDataObject("X");
To
RequestManager.getRequestContext().getModelManager().getModel(XModel.class);
Maybe we or somebody else in the list can help write that regularexpression if it has not already been written. For instance in thelast
updated spider2jato.xml file there is already aCSpider.getCommonPage("X")
rule:
<!--getPage to getViewBean-->
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getPage[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getViewBean($1ViewBean.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
Following this example a getDataObject to getModel would look
like this:
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[CSpider[.\s]*getDataObject[\s]*\(\"([^"]*)\"]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[getModel($1Model.class]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
In fact, one migration developer already wrote that rule andsubmitted it
for inclusion in the basic set. I will post another upgrade to thebasic
regular expression rule set, look for a "file uploaded" posting.Also,
please consider contributing any additional generic rules that youhave
written for inclusion in the basic set.
Please not, that in some cases (Utility classes in particular)
the rule
application may be more effective as TWO sequention rules ratherthan one
monolithic rule. Again using the example above, it will convert
CSpider.getDataObject("Foo");
To
getModel(FooModel.class);
Now that is the most effective conversion for that code if that
code is in
a page or data object class file. But if that code is in a Utilityclass you
really want:
>
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
So to go from
getModel(FooModel.class);
To
RequestManager.getRequestContext().getModelManager().getModel(FooModel.class
You would apply a second rule AND you would ONLY run this rule
against
your utility classes so that you would not otherwise affect yourViewBean
and Model classes which are completely fine with the simplegetModel call.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getModel\(]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getModel\(]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getRequestContext().getModelManager().getModel(]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
A similer rule can be applied to getSession and other CSpider APIcalls.
For instance here is the rule for converting getSession calls toleverage
the RequestManager.
<mapping-rule>
<mapping-rule-primarymatch>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-primarymatch>
<mapping-rule-replacement>
<mapping-rule-match>
<![CDATA[getSession\(\)\.]]>
</mapping-rule-match>
<mapping-rule-substitute>
<![CDATA[RequestManager.getSession().]]>
</mapping-rule-substitute>
</mapping-rule-replacement>
</mapping-rule>
----- Original Message -----
From: "Matthew Stevens" <matthew.stevens@e...>
Sent: Tuesday, August 07, 2001 12:56 PM
Subject: RE: [iPlanet-JATO] Use Of models in utility classes
Namburi,
I will post a document to the group site this evening which has
the
details
on various tactics of migrating these type of utilities.
Essentially,
you
either need to convert these utilities to Models themselves or
keep the
utilities as is and simply use the
RequestManager.getRequestContext.getModelManager().getModel()
to statically access Models.
For CSpSelect.executeImmediate() I have an example of customhelper
method
as a replacement whicch uses JDBC results instead of
CSpDBResult.
matt
-----Original Message-----
From: vnamboori@y... [mailto:<a href="/group/SunONE-JATO/post?protectID=081071113213093190112061186248100208071048">vnamboori@y...</a>]
Sent: Tuesday, August 07, 2001 3:24 PM
Subject: [iPlanet-JATO] Use Of models in utility classes
Hi All,
In the present ND project we have lots of utility classes.
These
classes in diffrent directory. Not part of nd pages.
In these classes we access the dataobjects and do themanipulations.
So we access dataobjects directly like
CSpider.getDataObject("do....");
and then execute it.
Since the migration tool does not do much of conversion forthese
utilities we have to do manually.
My question is Can we access the the models in the postmigration
sameway or do we need requestContext?
We have lots of utility classes which are DataObjectintensive. Can
someone suggest a better way to migrate this kind of code.
Thanks
Namburi
[email protected]
[email protected]
[Non-text portions of this message have been removed]
[email protected]
[email protected] -
I am a bit of a computer/Internet/iTunes dummy....
I am concerned about the health of my current computer but have not yet made the commitment to a new one, but:
1) How can I transfer my iTunes account to a new computer when I get one...
and
2) What can I do if my current computer suddenly implodes and I have not yet 'copied/'saved'/otherwise protected my account, as is? -- I have already had my computer crash once and had one of your people help me restore all of the paid for songs (none of the uploaded from my own collection of CD songs, of course, so I had to spend a long time rebuilding that) -- and I believe I was told you could only help me recover that material one or two times altogether, no?
WithOUT purchasing a Mach or iCloud (I actually think I have one of the later, but rarely have checked it) account, is there anything I can do to responsibly protect my account?
Thanks for any time taken on this!!!These are two possible approaches that will normally work to move an existing library to a new computer.
Method 1
Backup the library with this User Tip.
Deauthorize the old computer if you no longer want to access protected content on it.
Restore the backup to your new computer using the same tool used to back it up.
Keep your backup up-to-date in future.
Method 2
Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
I'd recommend method 1 since it establishes an ongoing backup for your library.
Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should merge the existing data from the device.
If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
tt2 -
How to find out about the SMTP Server
Hi,
I have been trying to configure groupware in the portal - in particular I want to enable the sending of emails through the portal. I already have a how-to-guide that that seems to explain the steps quite well. However, it mentions that I need to know the SMTP Server of the email. Can you tell me how to find out about the SMTP Server? Where do I need to look for the name of it?
Thank you and regards,
KatharinaHi Katharina,
you need the SMTP server of your company. This means you can't look for it in the portal, but have to ask the responsible person in your company.
Kind regards,
dominik
Maybe you are looking for
-
Hi, I need some help with Layers? Here is a link to a simple page layout with 1 blue table, and 1 small green box. Both have a capital "I" on the left. The table was aligned to "center" in DW. http://sfrcreations.com/tbe.html When I built this page a
-
How do I get the Serial Number for Adobe XI that purchased from Amazon over two weeks ago?
I am trying to get the serial number so that I can have the permanent version of the Adobe XI that I purchased from Amazon. Does anybody know how Adobe alerts a buyer to this info? I purchased the software as a Download so do not have a box.
-
The browser will not go on line it says that there is an error ...
-
Can I use an iPad with 3G purchased in the USA in Brazil?
Can I use an iPad with 3G purchased in the USA in Brazil? The Apple iPad sold in the USA is configured to be used with the cellular networks operated by Verizon and AT&T. What I am wondering is whether either of those networks can work with the cellu
-
ORA-12154: Error when connecting to asm instance
hi all, I am now facing new problem with asm of clusterware, I failed to connect to asm instance, there is how I did it: sqlplus /nologSQL*Plus: Release 11.2.0.1.0 Production on Wed Jul 7 04:58:52 2010 Copyright (c) 1982, 2010, Oracle. All rights res