[JBoss/Spring Integration] - Accessing app_1's spring beans in app_2's config file
by mr_belowski2
Hi folks,
I've got a 'server' application which has a set of beans defined in its config xml. I've got a client webapp which uses these (they're injected in Tapestry pages). The structure looks a bit like this:
server_app.spring
->someClasses
->META-INF
->jboss-spring.xml
client_app.ear
->webapp.war
->WEB-INF
->applicationContext.xml
jboss-spring.xml defines some beans, and I'm trying to access these in the webapp.
jboss-spring.xml contains
BeanFactory=(server_app)
then the bean definitions
webapp's applicationContext.xml contains
BeanFactory=(webapp) ParentBeanFactory=(server_app)
the some webapp specific bean definitions.
Some of the webapp bean definitions reference beans defined in the server app - e.g.
I name the apps so the server one gets deployed first. When the client app is deployed it can't create this someWebAppBean, saying "No bean named 'someServerBean' is defined. So the deployment fails.
Is there a configuration step I'm missing? Have I done something silly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056124#4056124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056124
18Â years, 10Â months
[JBoss Portal] - Re: JOSSO and JBoss Portal
by ch33zm0ng3r
I am attempting to get portal to authenticate against a JOSSO configuration as well, using jboss-portal-2.4.1. I haven't seen much info about doing this so far. It seems like this should have a straightforward solution, much like connecting to an LDAP identity/credential store. My first thought was to include an entry in portal's login-config.xml much like the one in jboss' login-config.xml
<login-module code = "org.josso.jb4.agent.JBossSSOGatewayLoginModule"
| flag = "required">
| <module-option name="debug">true</module-option>
| </login-module>
Under the Portal application policy. This caused a null pointer exception when attempting to authenticate users with the user portlet. I really feel that this has an easy solution, but i'm lost in the XML jungle that jboss and portal carry with them. Any clues?
Nick
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056122#4056122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056122
18Â years, 10Â months