Hello,
I have a question about the UserTransaction object.
Indeed, when I deploy a webapp using the following JNDI name java:comp/UserTransaction for the UserTransaction, it works, although when I go in the JNDIView bean of the JMX console, and I invoke the list, I can't see this name in the java: namespace.
And when I deploy an EJB and that I try to access the UserTransaction the same way, it doesn't work.
Can someone explain me please?
Thanks in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072860#4072860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072860
suppose if I put the space in the jboss directory name like jboss-4.0.0 to jboss-4.0.0 s then it will not run and gives the error like
| ===============================================================================
| .
| JBoss Bootstrap Environment
| .
| JBOSS_HOME: C:\jboss-4.0.0 s\bin\\..
| .
| JAVA: C:\j2sdk1.4.2_07\bin\java
| .
| JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
| .
| CLASSPATH: C:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-4.0.0 s\bin\\run.jar
| .
| ===============================================================================
| .
| Exception in thread "main" java.lang.NoClassDefFoundError: s\bin\\//\lib\endorsed
| Press any key to continue . . .
If anyone have the idea for it then please suggest me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072854#4072854
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072854
I try to use the EntityManager in a Hibernate Validator, for I'd like to ensure the uniqueness of a username. This should get reported to the user using ajax4jsf. I implemented it using a JSF Validator and it worked, but the Hibernate Validator approach would be preferable, I guess.
How can I inject the EntityManager into my Validator? I also tried Component#getInstance but it returns a proxy to an already closed Entity Manager...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072850#4072850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072850