[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-06-16 Thread gaian
Antonie, I would appreciate if you can send me the code you used for implementing this. I have been breaking our heads for the past few weeks to get this up and running. My email id is [EMAIL PROTECTED] Thanks Srikanth View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-22 Thread suniil
very useful! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945360#3945360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945360 --- Using Tomcat but need to do mo

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-16 Thread [EMAIL PROTECTED]
You can do that of use JNDI if you prefer. By the way since we are talking about the CMS service, i am adding right now the ability to add interceptors and will provide a clustered cache as interceptor. It will be a nice entry point to define your own behavior like logging CMS accesses and mod

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-16 Thread colintoal
Thomas, So I've been doing something wrong then. Is the preferred method for declaring a dependency on a service like the CMS Service in a jboss-portlet.xml file ? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943187#3943187 Reply to th

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-16 Thread [EMAIL PROTECTED]
*-instances.xml and *-pages.xml of 2.0 has been replaced by -object.xml since 2.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943134#3943134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943134 --

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-16 Thread Antoine_h
Hello, I am using 2.2 and made a sub class of CMSPortlet. it is working, the CMS instance is retrieved the same way as in CMSPortlet class. I had to inject the service in the war, with the CMS etc... as said in the jboss-portlet.xml. By the way, I had to redefine a instance in the sub class (pr

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-12 Thread colintoal
I'm not really worried about keeping the dependency isolated. I think the deployment descriptor mechanism is much nicer for getting a reference to services like CMS than JNDI ever will be. I will redo my descriptor to jboss-portlet.xml and remove my portlet-instances.xml file. In hindsight - j

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-12 Thread indyJones
Wowthanks guys Its very clean now... 1) Create my own jboss-portlet.xml in WEB-INF of my WAR with the following | | | CMS | org.jboss.portal.cms.CMS | :service=CMS | | | 2) Create a typical portlet and grab the CMS Service with...

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread colintoal
Ahh! I think Jon is right. I'm not familiar with 2.2 but that looks like the right approach based on what little I know. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943033#3943033 Reply to the post : http://www.jboss.com/index.html?module=bb&op=po

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread colintoal
I don't know if you have to create it in the portal-core-war. That depends on whether or not 2.2 supports portlet-instances.xml the like 2.4. Roy, Thomas, Julien - any thoughts here? Does Portal 2.2 support the portlet-instances.xml metadata ? Is portlet-instances.xml a new facility for 2.4 ? H

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread [EMAIL PROTECTED]
I (think) you'll achieved the same results by adding jboss-portlet.xml to your war's WEB-INF directory: CMS org.jboss.portal.cms.CMS :service=CMS View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943030#3943030 Reply to the post :

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread indyJones
ok...i get it now... To create my own CMS class that I can configure using 2.2.0, I must add it to the default Portal (portal-core) and create the instance there. Then I can reference my custom class from my own portal instance throught the *-object.xml. Do you see any problems with this? Tha

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread indyJones
JBoss AS 4.0.3 MySQL 4.1.15 JBoss POrtal 2.2.0 I am familar with how the authentication module works. It gets the context using | | userModule = (UserModule)(new InitialContext()).lookup("java:/portal/UserModule"); | | Butthe CMSPortlet uses | CMSService = (CMS)getPortlet

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread colintoal
I don't know for certain (this is my understanding of 2.4 - not 2.2), but you might need to add your portlet to portlet-instances.xml and make sure that all of its dependent infrastructure services have corresponding entries in portlet-instances.xml. In 2.4, this is how Portal knows to 'inject'

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-11 Thread indyJones
Jboss AS 4.0.3 MySQL 4.1.15 JBoss Portal 2.20 I have the same problems | CMSService = (CMS)getPortletContext().getAttribute("CMS"); | is giving me a null pointer. I am trying to basically do the exact same thing as the CMSPorlet class... Extend GenericPortlet and try and grab a referen

[JBoss-user] [JBoss Portal] - Re: Reference to CMS Service

2006-05-02 Thread [EMAIL PROTECTED]
| CMS CMSService = (CMS)getPortletContext().getAttribute("CMS"); | is not working? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940793#3940793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940793 ---