Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login-config.xml

 
kapil munjal
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need some guidance related to login-config.xml configuration.

I have 2 application EAR which needs to be deployed on the same instance. But these applications are using different "jbossmq" configuration. One application is using Database and other is using file state service.

Please tell me how I can change one application to use File state service instead of Database.

Application 1 -

It uses Database settings in the "jbossmq" application policy. This application has one MDB 2.1.


Application 2 -

It uses file-state service in the "jbossmq" application policy. This application has Entity beans 2.1.



I have tried changing the Application 1 to use file-state-service. But not able to make it work. I used the steps described in the jboss documentation.

Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you cannot use the same name for two different application policies.

Why are you using the "jbossmq" policy? That should be used for messaging only (or at least, it is the example policy to use for messaging). I recommend setting up two new policies.

If after making these changesi t still does not work, post the exception stack you are getting, or provide details about the error(s) you are seeing.
 
kapil munjal
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I didn't setup these 2 policies. These 2 applications were running on different JBoss instances. And their internal functionality uses "jbossmq" for EJBs.

Application 1, which has an MDB used for Message Queuing.

If I keep the "jbossmq" policy with Application 1, then application 2 doesn't work and it throws "EJB spec violation" error.

If I keep the "jbossmq" policy with Application 2, then application 1 doesn't work and it throws "XAConnectionFactory not bound" error.

Now, the situation is that I need make these applications work on single JBoss instance.

Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to change one of the names and reconfigure the app to use the new name.
 
Hakan Erdogan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the fastest solution:
Merge two login modules into one application-policy and mark their flag as sufficient.

 
Ri Ay
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated above, if in the same situation we have two different login modules but with for two different datasources (both being DatabaseServerLoginModule) described in the <connection-url> of *-ds.xml file in deploy directory of jboss as -

<connection-url> datasource1,datasource2...</connection-url>

Then in such a situation how to configure *-ds.xml or login-config.xml ?

Thanks.

Hakan Erdogan wrote:Here is the fastest solution:
Merge two login modules into one application-policy and mark their flag as sufficient.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic