[JBoss Messaging] - What is the purpose of the Journal files?
by Gary Marsh
I have a very simple program that has two classes, both generate JMS messages and both accept each others messages with onMessage() methods. If I delete all the files that are in my data/journal directory, after startup I find that the program by default generates 400Mgs of journal files (40 files 10Mgs each). These seem to be defined in the jbm-configuration.xml file at about lines 85 to 94, here is the snippit :
<!-- 10 MB journal file size -->
| <journal-file-size>10485760</journal-file-size>
|
| <journal-min-files>40</journal-min-files>
|
| <!-- Maximum simultaneous asynchronous writes accepted by the native layer.
| (parameter ignored on NIO)
| You can verify the max AIO on the OS level at /proc/sys/fs/aio_max_nr. (aio-nr will give you the current max-aio being used)
| -->
| <journal-max-aio>5000</journal-max-aio>
|
|
| I a curious, is this really necessary (400 MGs minimum) and what is it used for?
|
| Regards,
|
| GMarsh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203435#4203435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203435
17 years, 3 months
[JBoss jBPM] - Ad-hoc one of workflow piece
by pjacobsen
I've seen things here and there in the forums on ad-hoc tasks in a workflow... but nothing in particular to handle this situation. Does anyone have a good way to accomplish this?
SITUATION
A process is in progress when a performer realizes they have to perform some ad-hoc task or tasks for just this instance of the workflow. These are not part of the normal process but some sort of exceptions/additions that must occur. The tasks must happen at some particular point in the future of the workflow... essentially executing after an existing node leaves and then allowing the node to actually leave after they have completed.
THOUGHTS
1) Programatically create a new process definition to represent our ad-hoc process and add the various nodes that need to be executed as part of this process.
2) Override the leave function of the node object to check whether we are supposed to execute some ad-hoc process before really leaving.
3) If we are to execute some adhoc process, store the transition we were going to take and execute the ad-hoc process.
4) Once the ad-hoc process has completed call the leave function we interupted, but allow it to actually leave this time.
Any thoughts on that? Thanks so much for any suggestions!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203434#4203434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203434
17 years, 3 months
[JBossWS] - What could cause a null Endpoint?
by kringdahl
I'm creating a new web service using JBoss 4.2.3.GA with the WS 3.0.5.GA CXF stack. The call is coming in correctly but I'm getting a NPE because of a null endpoint. The stack trace is below. I've dropped in to the debugger and verified what was already obvious that the endpoint was not being set. My question is what could cause this? Am I missing an import or maybe something else form the endpoint config? FWIW, this web service is configured via Spring. The service is bound correctly:
| 2009-01-20 17:10:17,461 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://hostmanager.service.virtualizationmanager.desktone.com/}VMgrService from class com.desktone.virtualizationmanager.service.hostmanager.VMgrService
| 2009-01-20 17:10:22,843 INFO [org.apache.cxf.endpoint.ServerImpl] Setting the server's publish address to be /VMgrService
|
And if I hit the URL with a ?wsdl on the end , I do get my wsdl definition back. Here is the endpoint configuration in my application context file:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <beans
| xmlns="http://www.springframework.org/schema/beans"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:jaxws="http://cxf.apache.org/jaxws"
| xsi:schemaLocation="
| http://cxf.apache.org/jaxws
| http://cxf.apache.org/schemas/jaxws.xsd
| http://www.springframework.org/schema/beans
| http://www.springframework.org/schema/beans/spring-beans.xsd">
|
| <import resource="classpath:META-INF/cxf/cxf.xml" />
| <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
| <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
| <jaxws:endpoint id="VMgrService" address="/VMgrService" implementor="#vMgrServiceImpl">
| <jaxws:invoker>
| <bean class='org.jboss.wsf.stack.cxf.InvokerJSE' />
| </jaxws:invoker>
| </jaxws:endpoint>
|
| </beans>
|
The referenced Spring bean "vMgrServiceImpl" is in another application context file
Here is the exception:
| 2009-01-20 17:16:26,256 INFO [org.apache.cxf.phase.PhaseInterceptorChain] Interceptor has thrown exception, unwinding now
| java.lang.NullPointerException
| at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:98)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
| at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
| at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
| at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)
| at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)
| at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)
| at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)
| at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:151)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170)
| at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServlet.java:148)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
| at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4203432#4203432
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4203432
17 years, 3 months