[JBossMQ] - adding a JMS user for Durable JMS Consumer
by mpurdy1973
I have looked at the sql in hsqldb-jdbc-state-service.xml and come to the conclusion that i could append to the attribute name="SqlProperties" with the following:
| POPULATE.TABLES.15 = INSERT INTO JMS_USERS (USERID, PASSWD) VALUES ('test', 'testUser')
| POPULATE.TABLES.16 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('subscriber','test')
| POPULATE.TABLES.17 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('publisher','test')
| POPULATE.TABLES.18 = INSERT INTO JMS_ROLES (ROLEID, USERID) VALUES ('durpublisher','test')
|
|
| then use the method: TopicConnectionFactory.createTopicConnection('test', 'testUser');
|
| however, is there an easier way to do this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179214#4179214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179214
17 years, 7 months
[Beginners Corner] - Re: Yet another isolated classloader question
by PeterJ
Isolation, while handy, is not infallible. Let's say that class A uses class B which in turn uses class C. Classes A and C are in your isolated EAR. Classes B and C are in the lib directory. You now have a problem because the "C" you are using is from the lib directory, not the EAR. The solution to this situation is to also package B within the EAR. In many cases this is possible, in some cases it is not, especially if the standard Java EE libraries are involved.
One way to resolve such situations is to set the -verbose:class JVM command-line option. This option causes the classloaders to print out each class loaded and the JAR file the class came from. This might help solve the isolation issue.
As far as the Maven transitive dependencies go, I cannot think of any way around it that would not be more painful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179200#4179200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179200
17 years, 7 months
[Installation, Configuration & DEPLOYMENT] - Re: Configuring JBoss 5.0.0 CR1 for MySQL
by PeterJ
anonymous wrote : unable to find the PU
PU? What do Public Utilities (gas, electricity, water) have to do with this?
Also, you never answered my question:
anonymous wrote : are attempting to replace the hsqldb with MySQL?
If the answer to that question is "yes," then are you past the initial problem you posted and on to another problem with deploying your EJB? Which did you do first - start jbossas, or deploy your EJB? CR1 is a little buggy when it comes to startup deployment, try starting jbossas first, wait until you see the "Started in" message, and then deploy your EJB. (Or better yet, move up to CR2, many of the deployment-on-startup issues have been fixed in CR2.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179199#4179199
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179199
17 years, 7 months