[JBoss Seam] - Just curious - Am I out of my mind?
by PatrickMadden
Hi,
I have a legacy java service/application code that runs on Windows Vista/XP etc. It uses embedded tomcat 6.0.14 providing a top notch servlet container in addition to JSP/HTML support and everything else tomcat provides.
I also have a new Seam 2.0.0.GA/RichFaces app running on standard JBossAS-4.2.2.GA with JBoss 2.0 native web services that communicates with my legacy application.
I wanted to to add EJB/Seam/JNDI support etc to my legacy application and after a few days of work it is fully functional.
Now I have my "legacy" J2E application with embedded tomcat and embedded jboss with Seam 2.0/RichFaces running. It's fully functional and authenticates against active directory using LdapExtLoginModule.
I'm wondering if anyone else actually has done what I've done. I think its very cool to be able to have a standard java application with abilities to support servlets (via tomcat etc) as well as embedded JBoss and Seam while still providing a full desktop gui on the machine its actually running on. For remote clients they can see my richfaces/seam GUI with many options of how to communicate with the app.
Just Curious,
Thanks in advance,
PVM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105335#4105335
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105335
18 years, 8 months
[JBoss Seam] - Seam 2.0.CR1, jBPM and custom entity process variables
by MSchmidke
Hello all,
now that I've understood how to bootstrap Seam's jBPM support, I'm immediately facing the next problem.
The root of the problem is that I want to use my own EJB3 entites as jBPM process variables. I've done some research before, because this is not very well documented yet, but finally I was successful.
But now I fear that my way how to use jBPM interferes with Seam's way how to support jBPM.
What I have done with respect to jBPM:
- in my own persistence.xml, I reference jBPM's hibernate.cfg.xml so that my EntityManager knows about jBPM's entity
- in the same file, I tell Hibernate to register a Session Factory in JNDI
- in jbpm.cfg.xml I tell jBPM to use a JtaDbPersistenceServiceFactory, referencing my Hibernate Session Factory JNDI name
- in every JbpmContext I create, I inject a Hibernate Session from my EJB3 EntityManager (jbpmContext.setSession()).
The result is that jBPM uses the EJB3 entity manager for it's work, and there is absolutely no problem in mixing jBPM entities and my own entities, for example as process variables.
Now the point where Seam comes into play. Since Seam has some support for jBPM, I wanted to try it, but was unsuccessful. I configured:
| <bpm:jbpm>
| <bpm:process-definitions>
| <value>Argos3Freigabeprozess/processdefinition.xml</value>
| </bpm:process-definitions>
| </bpm:jbpm>
|
, but on startup I get:
anonymous wrote :
| 09:17:28,787 ERROR [[/Argos3Web]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: could not deploy a process definition
| [...]
| Caused by: org.hibernate.TransactionException: Could not register synchronization for container transaction
| at org.hibernate.transaction.CMTTransaction.begin(CMTTransaction.java:45)
|
I am accustomed to this error message; it usually shows up if I forget to inject the Hibernate Session into a jBPM context. This tells me that my way of configuring jBPM is not compatible with Seam's way of using jBPM.
Any ideas??
Marcus.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105332#4105332
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105332
18 years, 8 months
[EJB 3.0] - jbossall-client.jar incompatible between 421 and 422
by Herculesx
I have an stateless EJB3 deployed in jboss-4.2.2GA, when I use jbossall-client.jar from jboss-4.2.1 to call this EJB, then I found:
| javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| ......
|
|
After I replaced the jbossall-client.jar with jboss-4.2.2, it works fine. And I tested the case for call jboss-4.2.1 EJB3 by jbossall-client.jar from jboss-4.2.2, the same exception occured.
My question is, I need to make EJB3 call for two version of jbossAS in one Application, is that possible to use a single jbossall-client.jar?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105325#4105325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105325
18 years, 8 months