aspose file tools*
The moose likes JBoss/WildFly and the fly likes Login-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Login-config.xml" Watch "Login-config.xml" New topic
Author

Login-config.xml

kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
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


Kapil Munjal
SCJP 1.4, SCWCD 1.4
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

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.


JBoss In Action
kapil munjal
Ranch Hand

Joined: May 11, 2004
Posts: 298
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

Joined: May 14, 2008
Posts: 5837
    
    7

You will have to change one of the names and reconfigure the app to use the new name.
Hakan Erdogan
Greenhorn

Joined: Jun 30, 2006
Posts: 10
Here is the fastest solution:
Merge two login modules into one application-policy and mark their flag as sufficient.



SCJP 1.4
Ri Ay
Greenhorn

Joined: Apr 09, 2013
Posts: 2
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.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login-config.xml