• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Login-config.xml

 
Ranch Hand
Posts: 298
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will have to change one of the names and reconfigure the app to use the new name.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the fastest solution:
Merge two login modules into one application-policy and mark their flag as sufficient.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
reply
    Bookmark Topic Watch Topic
  • New Topic