portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r380760 - /portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
Date Fri, 24 Feb 2006 18:12:48 GMT
Author: taylor
Date: Fri Feb 24 10:12:45 2006
New Revision: 380760

URL: http://svn.apache.org/viewcvs?rev=380760&view=rev
Log:
for rollback testing of Spring transactions

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java?rev=380760&r1=380759&r2=380760&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/java/org/apache/jetspeed/portlets/site/SiteBrowserPortlet.java
Fri Feb 24 10:12:45 2006
@@ -239,9 +239,29 @@
         return myindex;
     }
     
+    public void txTest()
+    {
+        Page[] pages = new Page[3];
+        pages[0] = pageManager.newPage("/tx__test1.psml");
+        pages[1] = pageManager.newPage("/tx__test2.psml");
+        pages[2] = pageManager.newPage("/tx__test3.psml");
+        try
+        {
+            pageManager.addPages(pages);
+        }
+        catch (Exception e)
+        {
+            System.out.println("Exception adding pages" + e);
+            e.printStackTrace();
+            
+        }        
+    }
+    
     public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortletException,
             IOException
     {
+        // DST: FOR TX ROLLBACK TESTING: txTest();
+        
         TreeControl control = (TreeControl) actionRequest.getPortletSession().getAttribute(SITE_TREE_ATTRIBUTE);
         //assert control != null
         if (control != null)



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message