[Design of POJO Server] - Re: Getting the whole cause stack of the deployment exceptio
by adrian@jboss.org
"pete.muir(a)jboss.org" wrote :
| "alesj" wrote : Wrt to having entire exception in IDE, I think we would need to change too much code, in order to still properly display any useful info.
| | (we're already not the greatest there, but the issue is more complex than it looks like)
| |
|
| For me, IDE isn't a big problem. My use case is that I need to examine deployment exceptions (root cause and sometimes the next level or so up) in an testsuite so I can verify that the correct error happened on deployment.
|
| try
| {
| deploySomething();
| }
| catch (IncompleteDeploymentException e)
| {
| Throwable t = e.getDeploymentsInError().get(deploymentURL);
| // assert things here
| }
|
Or if you aren't directly deploying something,
e.g. the test framework does the deployment.
You can run the check later:
| try
| {
| deployerClient.checkComplete(deploymentURL);
| }
| catch (IncompleteDeploymentException e)
| {
| // as before.
| }
|
Or finally more direct access (if you want to peek under the covers into unsupported code):
| MainDeployerStructure mds = (MainDeployerStructure) mainDeployer;
| DeploymentContext dc = mds.getDeploymentContext(deploymentURL);
| Throwable t = dc.getProblem();
| // etc.
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241020#4241020
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241020
15 years, 5 months
[Design of POJO Server] - Re: Getting the whole cause stack of the deployment exceptio
by pete.muir@jboss.org
"alesj" wrote : "pete.muir(a)jboss.org" wrote :
| | This should be checked when we're unwinding the exception to its cause,
| | as you never know who all is wrapping the real cause.
|
| Yes, this is probably enough control for those who need to dig deeper into deployment exceptions, especially if I can get the whole stack here.
|
| "alesj" wrote : Wrt to having entire exception in IDE, I think we would need to change too much code, in order to still properly display any useful info.
| | (we're already not the greatest there, but the issue is more complex than it looks like)
| |
|
| For me, IDE isn't a big problem. My use case is that I need to examine deployment exceptions (root cause and sometimes the next level or so up) in an testsuite so I can verify that the correct error happened on deployment.
|
| But, I can see that this is more generally applicable in the area of tooling (both prod via Jopr, and dev via JBoss Tools) - that if an accurate deployment exception(s) can be reported back to the tool, it can start to suggest possible remedies...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241000#4241000
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241000
15 years, 5 months
[Design of JBoss ESB] - Re: Supporting entry-point
by beve
Sorry for not replying earlier..some other stuff came up :(
anonymous wrote : The answer is that we want both streams of objects in a single working memory so the rules operate against the combined set of facts.
Are we talking about sharing a working memory between three services here?
OrderEventHandlingService and CustomerEventHandlingService would need to insert their events/facts into the same working memory that the DiscountService later uses.
I guess this could be done by passing the RuleBase along with the ESB Message instance in the pipeline but this could get messy given the current architecture.
Would a possible solution for this use case be that the OrderEventHandlingService did its required transformations and post the result to a JMS destination. The DiscountService Drools Fusion application then uses that destination as the one of its sources for event. It would do the same for the CustomerEventHandlingService.
What is the advantage of putting this business logic in an ESB service. This would mean that replacing the ESB would also affect you business application as opposed to "simply" configuring the new ESB with a transformation and a router to a JMS destination in this case.
Regards,
/Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240955#4240955
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240955
15 years, 5 months