[Beginners Corner] - Re: Remote conenct JBoss AS
by gan.gary
"jaikiran" wrote : service.bat acts just like a wrapper over the run.bat. So edit your service.bat to include the -b option as follows:
|
| :cmdStart
| | REM Executed on service start
| | call run.bat -b 0.0.0.0>run.log
| |
|
|
| :cmdRestart
| | REM Executed on service restart
| | REM Note. We can only stop and start
| | call shutdown -S >>shutdown.log
| | call run.bat -b 0.0.0.0 >>run.log
| | goto cmdEnd
| |
thanks!
cmdRestart? I found the places call the "run.bat" is on:
:cmdStart
| REM Executed on service start
| del .r.lock 2>&1 | findstr /C:"being used" > nul
| if not errorlevel 1 (
| echo Could not continue. Locking file already in use.
| goto cmdEnd
| )
| echo Y > .r.lock
| jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log
| call run.bat < .r.lock >> run.log 2>&1
| jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
| del .r.lock
| goto cmdEnd
:waitRun
| REM Delete lock file
| del .r.lock > nul 2>&1
| REM Wait one second if lock file exist
| jbosssvc.exe -s 1
| if exist ".r.lock" goto waitRun
| echo Y > .r.lock
| jbosssvc.exe -p 1 "Restarting %SVCDISP%" >> run.log
| call run.bat < .r.lock >> run.log 2>&1
| jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log
| del .r.lock
| goto cmdEnd
why on cmdRestart?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161934#4161934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161934
17 years, 4 months
[JBoss jBPM] - Sub process is always null
by scholtz.albert
I have an old problem or so it seems. I have the following process definition:
<?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="" name="KYHProcess">
| <start-state name="start-state1">
| <transition to="viewAccount" name="toViewAccount"></transition>
| </start-state>
| <state name="viewAccount">
| <transition to="end-state1" name="toEndState1"></transition>
| <transition to="updateThreshold" name="toUpdateThreshold"></transition>
| <transition to="addCompanionProducts" name="toAddCompanionProducts"></transition>
| <transition to="viewBill" name="toViewBill"></transition>
| <transition to="resendVPin" name="toResendVPin"></transition>
| </state>
|
| <process-state name="updateThreshold">
| <sub-process name="updateThreshold"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="addCompanionProducts">
| <sub-process name="addCompanionProducts"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="viewBill">
| <sub-process name="viewBill"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <process-state name="resendVPin">
| <sub-process name="resendVPin"></sub-process>
| <transition to="viewAccount"></transition>
| </process-state>
|
| <end-state name="end-state1"></end-state>
| </process-definition>
I have the updateThreshold process specified as followed:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="updateThreshold">
|
| <start-state name="start-state1">
| <transition to="updateThreshold"></transition>
| </start-state>
|
| <task-node name="updateThreshold">
| <transition to="updateSuccessful"></transition>
| </task-node>
|
| <decision name="updateSuccessful">
| <transition to="success"></transition>
| <transition to="failed" name="to failed"></transition>
| </decision>
|
| <end-state name="failed"></end-state>
| <end-state name="success"></end-state>
| </process-definition>
As i signal to enter the updateThreshold process-state, i get the following exception: org.jbpm.JbpmException: can't create a process instance when processDefinition is null.
I deploy my processes using jbpm admin console, first updateThreshold and then KYHProcess. I also added
<bean name="jbpm.sub.process.resolver" class="org.jbpm.graph.node.DbSubProcessResolver" />
to my jbm-console.war jbpm.cfg.xml as some forum posts suggest and still the same result. Using jBPM 3.2
Regards Albert Scholtz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161932#4161932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161932
17 years, 4 months
[JBoss Portal] - Re: problem with IPC
by dilipreddy
HI sbiwal, senthilkumar,Ruchika,
please help me regarding this ipc issue....
I am explaning my problem here,
Can anyone help me in IPC problem. I have portlet A and portlet B. I am trying to trigger from portlet A The problem is request havent went for processaction method in porltet B.
Steps i have followed is...
1. I have created a war file
war files contains web-inf and meta-inf.
in meta-inf i have jboss-service.xml
Inside this xml i have following code
<?xml version="1.0" encoding="UTF-8"?>
server>
<!-- A sample listener -->
<mbean
code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
name="portal:service=ListenerService,type=test_listener"
xmbean-dd=""
xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
<depends
optional-attribute-name="Registry"
proxy-type="attribute">portal:service=ListenerRegistry
test_listener
<!-- org.jboss.portal.core.samples.basic.event.PortletB$Listener-->
layout.test.PortletB1$Listener
I created PortletB1.java class in layout.test. package
and *-object.xml file is as follows:
<if-exists>overwrite</if-exists>
<parent-ref>Lay</parent-ref>
<page-name>event test</page-name>
<window-name>CatalogPortletWindow</window-name>
<instance-ref>CatalogPortletInstance</instance-ref>
left
0
<window-name>PortletA1Window</window-name>
<instance-ref>PortletA1Instance</instance-ref>
test_listener
center
0
<window-name>PortletB1Window</window-name>
<instance-ref>PortletB1Instance</instance-ref>
center
1
I am creating war file ant deploying it, when ever I am trying to submit it is displaying error msg?
on which format I want to deploy as .sar or .war file format.
plz help me regarding this issue..
or give me suggestions (you may mail to dileep4u.mca(a)gmail.com)
waiting for your reply..sbiwal,senthil,ruchika
Thanks & Regards,
Dileep
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161927#4161927
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161927
17 years, 4 months