>From what you describe, this should work - you should be getting the value of the preference as defined in portlet-instances.xml.
Please post your portlet.xml, portlet-instances.xml, *-object.xml and the code from your portlet that accesses the preference. You don't have to post the entire files, just enough to show one of the preferences you are having an issue with and how the portlet instance and portlet window(object) are defined.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068868#4068868
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068868
Ahhh... now I understand your question:
This is something you can easily do in JNDI. You could create a method like this. the returned Context will be bound to the host you pass as a parameter:
|
|
| // the default method
| protected Context createContext() throws Exception
| {
| return createContext("jnp://localhost:1099");
| }
| protected Context createContext(String host) throws Exception
| {
| Properties props = new Properties();
|
| props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| props.put(Context.PROVIDER_URL, host);
| props.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
|
| return new InitialContext(props);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068867#4068867
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068867
Thanks a lot peter for you Immediate Response,
I am able to access the preference value from the portlet.xml.
However I am not able to access the value I set in the portlet-instances.xml for the same preference. The values of the preference are set to be different in portlet.xml and portlet-instances.xml, the name is same in both the xml files. I would like to get the value set in the portlet-instances.xml file. if you could help me it would be great. Thanks a lot
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068862#4068862
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068862
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
| ObjectName: jboss.jca:service=RARDeployment,name='infranetconnector.rar'
| state: NOTYETINSTALLED
| I Depend On:
| Depends On Me: jboss.jca:service=ManagedConnectionFactory,name=Ombi.Infranet
|
The above log message indicates that the infranetconnector.rar deployment is not done.
The Resource Adapter needs to be available prior you deploy the ds.xml file..
Please look at the chapter 7 from the Jboss AS document , it contains the sample application .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068859#4068859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068859
When I put the jars in the war/WEB-INF/lib, I get:
SEVERE: Error Rendering View[/index.xhtml]
| com.sun.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: org.jboss.seam.ui.facelet.SeamExpressionFactory
| at com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:154)
| at com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:128)
| at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:198)
|
It totally breaks it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068855#4068855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068855