[JBoss AS 7 Development] - Server Shutdown Problem with HornetQ
by Rob Cernich
Rob Cernich [https://community.jboss.org/people/rcernich] created the discussion
"Server Shutdown Problem with HornetQ"
To view the discussion, visit: https://community.jboss.org/message/646594#646594
--------------------------------------------------------------
Hey all,
Over in SwitchYard land we have a problem where the server hangs for 2-3 minutes during shutdown when a SwitchYard application references a queue. If the SwitchYard application is undeployed before shutting down the server, all is well.
The problem appears to be caused by the messaging system shutting down before the application, which is still holding on to the queues. (The "HornetQ cannot delete ... it has consumers" exception is thrown during shutdown.) I've tried various things to inject a service dependency on the SwitchYard application service, but nothing seems to work (e.g. adding a dependency on the JNDI binding for the queues, the messaging system itself, adding a application-client.xml to the SwitchYard application, etc.).
At this point, I'm at a total loss as to how to proceed. Is there any way to ensure the messaging system is stopped after the deployment has stopped?
Any help greatly appreciated.
Thanks in advance,
Rob
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646594#646594]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[JBoss AS 7 Development] - Re: System Property is not resolved in standalone.xml
by Valerio Spadaro
Valerio Spadaro [https://community.jboss.org/people/vspadaro] created the discussion
"Re: System Property is not resolved in standalone.xml"
To view the discussion, visit: https://community.jboss.org/message/646650#646650
--------------------------------------------------------------
I am migrating my application from jboss 6 to 7 and I would to use some custom system properties in the standalone.xml for logging and datasource configuration but jboss doesn't resolve them.
I think that Jboss resolves system properties only in some sections of standalone.xml (for example it resolves ${jboss.binding.address} or {jboss.socket.binding.port-offset} in socket and webservice sections).
I have the same problem in JPA persistence.xml inside a jar: i would to point to a different orm file so i can use my application with different dbms (oracle or mysql). In jboss 6 i used this:
<mapping-file>/META-INF/${db.type}/orm.xml</mapping-file>
but jboss 7 doesnt resolve db.type.
However jboss 7 can resolve the following tag in the same file:
<property name="hibernate.dialect" value="${db.dialect}" />
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646650#646650]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[JBoss AS 7 Development] - ID auto generation for MySQL on JBoss AS 7
by koshey
koshey [https://community.jboss.org/people/koshey] created the discussion
"ID auto generation for MySQL on JBoss AS 7"
To view the discussion, visit: https://community.jboss.org/message/646493#646493
--------------------------------------------------------------
Hi everyone,
I need help to resolve such problem. Application needs to support several DB (MySQL, Oracle). After migration to JBoss 7 entity id auto generation was broken.
Etity example:
@Entity
@Table(name="foo")
public class Foo {
private Integer id;
private String model;
@Id
@SequenceGenerator(name="foo_seq_gen", sequenceName="foo_0", initialValue=1, allocationSize=1)
@Column(name="id", updatable=false)
@GeneratedValue(generator = "foo_seq_gen")
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Column(name="model", length=64, updatable=false)
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
}
For Oracle all still works fine. But when trying to perform create operation on MySQL an error occures:
15:34:56,290 ERROR [org.hibernate.util.JDBCExceptionReporter] (http-localhost-127.0.0.1-8080-1) Table 'scheme.foo_0' doesn't exist
Thus MySQL tries to access unexistent table as sequence insteed use native autogeneration mechanism.
Does anybody know the cure?
Environment:
MySQL 5.5.16
JBoss AS 7.1.0.Beta1
Hibernate 3.6.1
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646493#646493]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM Development] - Re: How to bypass the jbpm console login form
by Ram Biradar
Ram Biradar [https://community.jboss.org/people/ram-biradar] created the discussion
"Re: How to bypass the jbpm console login form"
To view the discussion, visit: https://community.jboss.org/message/646319#646319
--------------------------------------------------------------
Hi Mauricio,
Thanks for your response. Our requirement is to embed/open the BPM Tasks screen and Process screens within our application. We do not want to enter the user name and password in the console again, because the used has already entered his user id and password in our web application. We looked for options to find a way to supply username and password to the console application and bypass the login and then open the BPMConsole home page within our webapplication. Is this acheivable ? Earlier we have received feedback from the forum members that we have download the console source and modify to suit our needs. I am not sure whether we are proceeding in right direction. Can you please suggest your opinion if this is not the best approach? If we are proceeding in the right direction, then we are facing few issues on deploying the BPM Console source code. I will post the steps/issue that we have tried so far and the current problem that we face as well.
Background on the versions
BPM Version------------------JBPM 5.1 version
JBOSS Version---------------JBoss 5.1.0GA
BPM Console source code- https://github.com/bpmc/bpm-console https://github.com/bpmc/bpm-console..
gwt version---------------------2.4
MVN Installer-------------------3.0.3
Steps followed:
1.Downloaded source code from https://github.com/bpmc/bpm-console https://github.com/bpmc/bpm-console..
2.Extracted in a folder (bpmc-bpm-console-1cf8710).
3.Completed "mvn clean install" from the bpmc-bpm-console-1cf8710 folder.
4. Completed "mvn package" from the bpmc-bpm-console-1cf8710 folder
5. I deployed generated War files from gui,server folders in JBoss Running Instance.
6.All the Pom.xml files are having 2.4.0 Snapshots versions
But,It is generating exception:
RROR [org.reflections.Reflections] (HDScanner) could not create Vfs.Dir from url. ignoring the exception and continuing
org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfszip:/D:/jbpm5.1_BKP/jbpm-installer/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console.war/WEB-INF/classes/
at org.reflections.vfs.Vfs.fromURL(Vfs.java:99).
Unable to Process deployment descriptor for /gwt-console.
I'm struggling with these issues.Could you please suggest me.
Thanks
Ram
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646319#646319]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years