Vihang Pathakhttps://blogs.oracle.com/vihang/
Blog for vihangen-usCopyright 2010Mon, 12 Apr 2010 05:22:18 +0000Apache Roller BLOGS401ORA6 (20130904125427)https://blogs.oracle.com/vihang/entry/openportal_glassfish_day_hyderabadOpenPortal @ Glassfish Day Hyderabadvihangpathakhttps://blogs.oracle.com/vihang/entry/openportal_glassfish_day_hyderabad
Fri, 14 Mar 2008 04:16:14 +0000Personaldaysglassfishopenportalsuntech<p><img width="230" vspace="0" hspace="0" height="174" border="0" align="left" alt="SunTechDaysHyderabad" src="http://blogs.sun.com/vihang/resource/SunTechDays_Hybd.JPG" /> The three days at Sun Tech Days walked through an interesting keynote by Rich Green(Executive Vice President, Sun Microsystems). Rich described how <a href="http://java.sun.com/javase">JDK</a>,
<a href="http://mysql.com/">MySQL</a> , <a href="http://www.sun.com/software/products/xvm/index.jsp">xVM</a>,
<a href="http://glassfish.dev.java.net/">GlassFish</a>,
<a href="http://netbeans.org/">NetBeans</a>, <a href="http://sun.com/solaris">Solaris</a> and many
other similar offerings provide a comprehensive suite of products that
cover the entire portfolio of software. He talked about how <a href="http://developers.sun.com/students">Sun Campus
Ambassadors</a>, out of which around 20% being from India, will play a major role in the future. He also focussed on reusability.</p><p>&nbsp;</p><p>The first day also saw a concert hosted by a popular rock-band in India, namely &quot;Euphoria&quot;. <br />The second day hosted a lot of talks especially the ones around masshups, SOA, BPEL interested me<small><font face="Verdana">.<font size="3"> <font size="2" face="arial,helvetica,sans-serif">On the Glassfish day I presented the talk on wholistic
features of &quot;OpenPortal&quot; saw an attendance of 400+ developers. Extra
chairs had to be ordered to accomodate the crowd in the auditorium
which had a capacity of around 400. Have a look below at the Glassfish Day Audience.</font></font><br /></font></small></p><p><img width="355" vspace="0" hspace="0" height="267" border="0" align="middle" alt="GlassfishDayAudience" src="http://blogs.sun.com/vihang/resource/SunTechDays_1_Hybd.JPG" />&nbsp;</p><p><small><font face="Verdana"></font></small><!----></p><p><!--<--></p><p><font size="2" face="arial,helvetica,sans-serif">I was anticipating lot of questions comparing OpenPortal with other
portals, however folks were more interested around the Enterprise features of OpenPortal.<br />Specifically lot of interest around SAW and jBOSS. There was an
interesting use case around WSRP. Interest was expressed around BPEL,
OpenESB Integration with OpenPortal, Eclipse plugin equivalents for
PortalPack and SAW/Mirage NetBeans plugin.<br />Many of the audiences openly appreciated the talk by inclining to contribute towards some feature or the other or to download it.</font><!--<--></p><p><font size="2" face="arial,helvetica,sans-serif">If anyone's watching over <a href="https://portal.dev.java.net" title="OpenPortal">OpenPortal</a> or <a href="blogs.sun.com/portal" title="ThePortalPost">ThePortalPost</a> hits, I am sure they would have increased after Friday.</font></p><p>Me Presenting OpenPortal @ Glassfish Day</p><p><img width="303" vspace="0" hspace="0" height="227" border="0" align="middle" alt="VihangGlassfishDay" src="http://blogs.sun.com/vihang/resource/SunTechDays_2_Hybd.JPG" /><br />&nbsp;</p>https://blogs.oracle.com/vihang/entry/building_and_installing_liferay_sourceBuilding and Installing Liferay Source Code on GlassfishV2vihangpathakhttps://blogs.oracle.com/vihang/entry/building_and_installing_liferay_source
Sun, 24 Feb 2008 22:38:03 +0000Personalantcodecompileglassfishinstallliferaymysqlsource<p><img hspace="0" height="80" width="165" vspace="0" border="0" align="left" alt="GlassfishLiferay" src="/vihang/resource/liferay-glassfish.JPG" />I came across various articles to deploy liferay on glassfish. Thanks to them I could figure out the exact way on how to do it. Here is a step by step procedure which I tested twice and it works. If it does not work for you , let me know.</p>
<p>Here are the steps:&nbsp;</p>
<ol>
<li>Download <a href="https://glassfish.dev.java.net/public/downloadsindex.html" title="Glassfish Download">Glassfishv2(b58g)</a>. Install it <br /></li>
<ul>
<li>java -Xmx256m -jar glassfish-installer-v2-b58g.jar <br /></li>
<li>ant -f setup.xml</li>
</ul>
<li>Download <a href="http://dev.mysql.com/downloads/" title="mySQL Download">mySQL</a> and <a title="mySQL connector jar" href="http://dev.mysql.com/downloads/connector/j/5.1.html">mySQL connector jar</a>.<br /></li>
<li>Install mySQL (Refer installation specifics below in Notes section)<br /></li>
<li>Create
database 'lportal' with user 'lportal' and grant system/administrator
level privileges. This is a sample default user. One can create other
users and try it out by modifying Liferay Source Code. For Details
refer <a href="http://dev.mysql.com/doc/refman/5.0/en/adding-users.html" title="AddUsermySQL">mySQL Documentation</a></li>
<li><a href="http://dev.mysql.com/doc/refman/5.0/en/adding-users.html" title="AddUsermySQL"></a>Alternatively, follow these steps</li>
<ol>
<li>Login to mysql as 'root' and create database lportal;</li>
<li>use lportal;</li>
<li>create user lportal;</li>
<li>set password for 'lportal'@'localhost' = password('lportal');grant all privileges on \*.\* to 'lportal'@'localhost' identified by
'lportal'</li>
</ol>
<li>Start Glassfish and login to the Admin Console.</li>
<ul>
<li>Go to Resources/JDBC/Connection Pools and create a connection pool to connect to the lportal database.</li>
<li>While doing so, one can specify the database to connect to.</li>
<li>Go to Resources/JDBC/JDBC Resources, create a JDBC resource with the
name jdbc/LiferayPool, and associate it with the connection pool
created in the previous step.</li>
<li>Stop Glassfish<br /></li>
</ul>
<li>Download <a href="http://downloads.sourceforge.net/lportal/liferay-portal-src-4.4.1.zip" title="LiferaySourceCode">Liferay Source Code</a>. Unzip it <br /></li>
<li>Download <a href="http://ant.apache.org/bindownload.cgi" title="Apache Ant 1.7.0">apache-ant-1.7.0</a>. Extract it <br /></li>
<li>set ANT_HOME to apache-ant-1.7.0 <br /></li>
<li>Use JDK 1.5 or above and set it in Path.<br /></li>
<li>Go to Liferay source code directory and modify appserver.properties. Make sure you specify the directory in which glassfish is installed and NOT the glassfish home. For example, if glassfish is installed in f:\\glassfish, then in the app.server.properties, please specify f:/(forward slash on Windows). The name of the glassfish folder has to be &quot;glassfish&quot;. Comment tomcat entry :-)</li>
<li>In <a href="http://app.server.properties">app.server.properties</a> , please specify the glassfish version viz. v2 or v3. Please change it to reflect as per the glassfish download that one has.<br /></li>
<li>Go to Liferay Source Code Directory and run ant -f build.xml all <br /></li>
<li>Once, build is successful, the build process will create the necessary jars and copy them to Glassfish Domain.<br /></li>
<li>Copy mysql connector jar in the glassfish/domains/<yourdomain>/lib</yourdomain></li>
<li>Restart Glassfish. Wait for 3 minutes, since Liferay compiles JSPs. One can turn off JSP Compilation if required.</li>
</ol>
<p>Hope this helps!!! Please try it out and let me know if we need to modify these steps anywhere. <br /></p>
<p>&nbsp;Start using Liferay with Glassfish!!!<br /></p>
<p>Note: <br /></p>
<ol>
<li>&nbsp;The build might delete the existing glassfish domains directory and create a new one. Hence, do take necessary backup. These installation steps are on a fresh glassfish installation.</li>
<li>The build might fail due to some minor Java errors. One might have to modify them and then run the build. I observed one such error.</li>
<li>For those who want to get quick started without getting their hands dirty,but want to do it with Glassfish, there is also a Liferay bundle with Glassfish available for download <a title="Liferay Glassfish bundle download" href="http://sourceforge.net/project/showfiles.php?group_id=49260&amp;package_id=42607">here</a></li>
<li>Install mySQL with detailed configuration. That way one will have
better control especially multilingual etc./firewall blocking/unblocking</li>
<li>If you have tried an unsuccesfull install of mySQL and unable to
install again, please uninstall, delete the MYSQL installation
directory and re-install MYSQL</li>
<li>When MySQL is successfully installed, log on as &quot;root&quot; and create
user lportal with lportal(password) and grant privileges.</li>
<li>If you intend to create connection pool faster, you may follow alternatively the below method:</li>
<ol>
<li>Create mysql_liferay_connection_pool.xml </li>
<li>Add the following contents to it <br /></li>
<li>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
<br />&lt;!DOCTYPE resources PUBLIC
<br />&quot;-//Sun Microsystems Inc.//DTD Application Server 9.1 Domain//EN&quot;
<br />&quot;\\\*[<a href="http://www.sun.com/software/appserver/dtds/sun-resources_1_2.dtd\*" class="moz-txt-link-freetext">http://www.sun.com/software/appserver/dtds/sun-resources_1_2.dtd\*</a>]&quot;&gt; &lt;resources&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;jdbc-connection-pool <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=&quot;LiferayPool&quot; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
datasource-classname=&quot;com.mysql.jdbc.jdbc2.optional.MysqlDataSource&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res-type=&quot;javax.sql.DataSource&quot;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;user&quot; value=&quot;lportal&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;password&quot; value=&quot;lportal&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;url&quot;
value=&quot;jdbc:mysql://localhost:3306/lportal&quot;/&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;/jdbc-connection-pool&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;jdbc-resource <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enabled=&quot;true&quot; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jndi-name=&quot;jdbc/LiferayPool&quot; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object-type=&quot;user&quot; <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pool-name=&quot;LiferayPool&quot;/&gt;<br />
&lt;/resources&gt; <br /></li>
<li>Now run following command in glassfish/bin directory:<br /> asadmin add-resources &lt;location-of-resource-file&gt;/mysql_liferay_connection_pool.xml</li>
</ol>
</ol>https://blogs.oracle.com/vihang/entry/http_developers_sun_com_portalserverIncorporating Workflow Into Sun Portals With Sun Java Composite Application Platform Suitevihangpathakhttps://blogs.oracle.com/vihang/entry/http_developers_sun_com_portalserver
Fri, 2 Mar 2007 20:56:19 +0000Personal<p>Traditionally, performing tasks on multiple portals is tedious and
inefficient as enterprises adopt back-end business processes and must then
continually manage them. Hence, demand has steadily mounted for the capability
to perform tasks on just the portal itself instead of on multiple sites with a
single-point solution; that is, a solution that not only handles the process
interactions but also enables end users to seamlessly perform tasks as &quot;hooks&quot;
in the process.</p><p>&nbsp;Through an example, this article describes how to automate human workflow by
integrating Portal Server with Java CAPS. </p><p>Check this article at <a title="Workflow-Sun Portals and JCAPS" href="http://developers.sun.com/portalserver/reference/techart/workflow.html">Workflow into Sun Portals with Java CAPS</a>.<br /></p>