[Design of Embedded JBoss] - Is Embedded testsuite-full-dependency ready to use?
by jaikiran
I was just looking at running the testsuite-full-dependency against AS branch 5_x in Embedded. But looks like its testcases are having compile issues because of dependencies not being speicified in the pom:
| [INFO] [compiler:testCompile]
| [INFO] Compiling 10 source files to /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/target/test-classes
| [INFO] ------------------------------------------------------------------------
| [ERROR] BUILD FAILURE
| [INFO] ------------------------------------------------------------------------
| [INFO] Compilation failure
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/ejb3/entity/Jbossian.java:[26,24] package javax.persistence does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/ejb3/entity/Jbossian.java:[27,24] package javax.persistence does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/ejb3/entity/Jbossian.java:[28,24] package javax.persistence does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/ejb3/entity/Jbossian.java:[29,24] package javax.persistence does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/ejb3/entity/Jbossian.java:[40,1] cannot find symbol
| symbol: class Entity
| @Entity
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[26,20] package javax.servlet does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[27,20] package javax.servlet does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[28,25] package javax.servlet.http does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[29,25] package javax.servlet.http does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[30,25] package javax.servlet.http does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[32,24] package org.jboss.logging does not exist
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[42,42] cannot find symbol
| symbol: class HttpServlet
| public class JspForwardingServlet extends HttpServlet
|
| /NotBackedUp/jpai/business/jboss/wc/jbossas/projects/embedded/trunk/testsuite-full-dep/src/test/java/org/jboss/embedded/testsuite/fulldep/servlet/JspForwardingServlet.java:[52,24] cannot find symbol
| symbol : class Logger
| location: class org.jboss.embedded.testsuite.fulldep.servlet.JspForwardingServlet
| .... // many more
|
The pom.xml of this component does not explicitly add these dependencies. Is this work in progress component?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247148#4247148
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247148
15 years, 5 months
[Design of EJB 3.0] - Re: Quartz MDB integration and classloader issues
by jaikiran
"ALRubinger" wrote :
|
| Nope. :)
|
| Interceptors are aspects; they encapsulate logic that runs across the core concerns of other components. So to dump them all in the same project would be counterproductive; we'd eventually build up a tangled mess of dependencies equivalent to the old "aspects" module of the AS.
|
I see what you mean.
"ALRubinger" wrote :
| So each interceptor should get its own component with release cycle. Then they can be plugged in at will.
|
As for this specific interceptor i don't see a reason why it needs to be in a new component. Infact the only reason this logic is going into an interceptor is to avoid repeated code all over the place, like what you say here:
"ALRubinger" wrote :
| Also, IMO we overuse interceptors. Oftentimes we leverage them just to break code out into some other space,
|
Given that this specific interceptor is going to put the right classloader on the thread, for use by components invoked by the container(s), i guess the core would be a right place for this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247142#4247142
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247142
15 years, 5 months
[Design of JBoss jBPM] - Re: Re-using the REST facade
by rmoskal
I do see how the cleanest way to do is is to replace the jbpm jboss service with one that publishes processEngine that is embedded in my spring context. This does tie me to JBoss which is not so bad.
I also see a hack, which really doesn't seem so bad either. It basically involves short-circuiting your workflow engine neutral abstractions. It might even be worth it to incorporate these changes into the main code. Let me know what you think:
I will simply create a jar file of everything in this module gwt-console/server/server-core to avoid mucking with the code. I'll make a subclass for all the rest facades that simply add a setter for the ProcessEnginePlugin. This way I can inject that directly from the spring context. It would be nice to add that to the actual classes.
Then the only other thing that needs to be addressed are the classes in integration/console/src/main/java/org/jbpm/integration/console: TaskManagementImpl, ProcessEnginePluginImpl.java, etc.. The all extend from JBPMIntegration which gets the process engine from jndi: ProcessEngine)ctx.lookup("java:/ProcessEngine");
All I need to do then is to subclass each of these and replace the constructor with one that gets the process engine from the spring context. The nice thing is that these classes are all packaged as part of jbpm-console-integration.jar.
Both the Facades and the JBPMIntegration integration classes will live on the spring framework. I'm not sute about the plugin stuff, but this will get me a free rpc layer for my app. I'll burn that bridge when I come to it.
Now as far as I can tell, to simplify this integration all thats' needed is:
All of the facades in server-core org.jboss.bpm.console.server need a public setter for ProcessEnginePlugin.
A maven task goal needs to be added to the pom file that will create a jar file for server-core.
Add a constructor to all the classes descending from JBPMIntegration that accepts a process engine.
You know the code well, if you have time let me know if I've missed anything.
If you think it is a reasonable idea, I'd be happy to help make the changes.
Thanks and regards,
Robert
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247122#4247122
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247122
15 years, 5 months