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
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
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
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
*-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
--
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
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
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...
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
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
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 :
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 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
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 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
| 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
---
16 matches
Mail list logo