[JBoss jBPM] - problem in invoking of a web service
by danesharman
Dear Friends,
I have deisigned a simple process in BPEL designer to invoke a web service. But when I deploy this process to jbpm 1.1 GA, it shows an error message. I am sedning this error message at the end of this message. As it is not possible to attach the project, I am also sending the other files of this project as the content. As you see the root of the error is Process1Artifact.wsdl (the file which is generated after defining the web service), but it seems a normal wsdl file.
I hope to find the answer,
Thanks,
Arman
All files are as blow:
Error Message:
16:49:10,812 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
16:49:39,812 ERROR [ProblemHandler] document is not readable ()
java.io.FileNotFoundException: D:\Tools\jbpm\jbpm-bpel-1.1.4\jboss-4.0.5.GA\bin
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLC
onnection.java:105)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
urce)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jbpm.bpel.xml.ProcessWsdlLocator.upgradeWsdlDocumentIfNeeded(Proc
essWsdlLocator.java:153)
at org.jbpm.bpel.xml.ProcessWsdlLocator.getBaseInputSource(ProcessWsdlLo
cator.java:109)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2184)
at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java
:519)
at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser
.java:49)
at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(Gene
ricArchiveParser.java:134)
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:54)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
16:49:39,906 ERROR [ProblemHandler] could not read wsdl document (process1.bpel)
WSDLException: faultCode=PARSER_ERROR: Problem parsing ''.: D:\Tools\jbpm\jbpm-b
pel-1.1.4\jboss-4.0.5.GA\bin (Access is denied): java.io.FileNotFoundException:
D:\Tools\jbpm\jbpm-bpel-1.1.4\jboss-4.0.5.GA\bin (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLC
onnection.java:105)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
urce)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2030)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java
:519)
at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser
.java:49)
at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(Gene
ricArchiveParser.java:134)
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:54)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2036)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java
:519)
at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser
.java:49)
at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(Gene
ricArchiveParser.java:134)
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:54)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
16:49:40,062 ERROR [STDERR] [Fatal Error] :-1:-1: Premature end of file.
16:49:40,062 ERROR [ProblemHandler] could not read wsdl document (process1.bpel)
WSDLException: faultCode=PARSER_ERROR: Problem parsing 'process1Artifacts.wsdl'.
: Premature end of file.: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2030)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java
:519)
at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser
.java:49)
at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(Gene
ricArchiveParser.java:134)
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:54)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2036)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201)
at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java
:519)
at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser
.java:49)
at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(Gene
ricArchiveParser.java:134)
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:54)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
16:49:40,218 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymen
tServlet threw exception
org.jbpm.bpel.xml.BpelParseException: 3 problem(s) found
at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchive
Parser.java:59)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchiv
e.java:81)
at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentS
ervlet.java:169)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Process1Artifact.wsdl (this file is generated after defining the web service)
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:tns="http://eclipse.org/bpel/sample1Artifacts" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" xmlns:wsdl="http://default_package/" name="process1Artifacts" targetNamespace="http://eclipse.org/bpel/sample1Artifacts" xmlns="http://schemas.xmlsoap.org/wsdl/">
<plnk:partnerLinkType name="Goodbye">
<plnk:role name="Role1" portType="wsdl:Goodbye"/>
<plnk:role name="Role2" portType="wsdl:Goodbye"/>
</plnk:partnerLinkType>
Process1.bpel:
<?xml version="1.0" encoding="UTF-8"?>
<bpws:process exitOnStandardFault="yes" name="process1"
suppressJoinFailure="yes"
targetNamespace="http://eclipse.org/bpel/sample1"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns="http://eclipse.org/bpel/sample1Artifacts"
xmlns:ns0="http://default_package/" xmlns:tns="http://eclipse.org/bpel/sample1">
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="process1.wsdl" namespace="http://eclipse.org/bpel/sample1"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/" namespace="http://eclipse.org/bpel/sample1Artifacts"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="process1Artifacts.wsdl" namespace="http://eclipse.org/bpel/sample1Artifacts"/>
<bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
location="../bpel5/wsdl/Goodbye.wsdl" namespace="http://default_package/"/>
<bpws:partnerLinks>
<bpws:partnerLink myRole="process1Provider" name="client" partnerLinkType="tns:process1"/>
<bpws:partnerLink initializePartnerRole="no" myRole="Role1"
name="service1" partnerLinkType="ns:Goodbye" partnerRole="Role1"/>
</bpws:partnerLinks>
<bpws:variables>
<bpws:variable messageType="tns:process1RequestMessage" name="input"/>
<bpws:variable messageType="tns:process1ResponseMessage" name="output"/>
<bpws:variable element="ns0:sayBye" name="var1">
<bpws:from>
<bpws:literal>rasoul</bpws:literal>
</bpws:from>
</bpws:variable>
<bpws:variable element="ns0:sayByeResponse" name="out1"/>
<bpws:variable messageType="ns0:sayByeResponse" name="service1Response"/>
<bpws:variable messageType="ns0:sayBye" name="service1Request"/>
</bpws:variables>
<bpws:sequence name="main">
<bpws:receive createInstance="yes" name="receiveInput"
operation="process" partnerLink="client"
portType="tns:process1" variable="input"/>
<bpws:invoke inputVariable="service1Request" name="Invoke"
operation="sayBye" outputVariable="service1Response"
partnerLink="service1" portType="ns0:Goodbye"/>
<bpws:reply name="replyOutput" operation="process"
partnerLink="client" portType="tns:process1" variable="input"/>
</bpws:sequence>
</bpws:process>
Process1.wsdl:
<?xml version="1.0"?>
<definitions name="process1"
targetNamespace="http://eclipse.org/bpel/sample1"
xmlns:tns="http://eclipse.org/bpel/sample1"
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
xmlns="http://schemas.xmlsoap.org/wsdl/"
>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TYPE DEFINITION - List of types participating in this BPEL process
The BPEL Designer will generate default request and response types
but you can define or import any XML Schema type and use them as part
of the message types.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MESSAGE TYPE DEFINITION - Definition of the message types used as
part of the port type defintions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PORT TYPE DEFINITION - A port type groups a set of operations into
a logical service unit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- portType implemented by the process1 BPEL process -->
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARTNER LINK TYPE DEFINITION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<plnk:partnerLinkType name="process1">
<plnk:role name="process1Provider" portType="tns:process1"/>
</plnk:partnerLinkType>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132539#4132539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132539
16 years, 8 months
[JBoss Messaging] - Client failover
by dlakhin
Hello all,
I have a problem with the client failover sending JMS messages to the JBoss Cluster if I shutdown (not kill) one of the cluster nodes.
JBoss version 4.2.2 GA
JBM version 1.4.0 SP3
Java version 1.6.0_04
OS solaris 2.10
The cluster contains 2 nodes. JBM was installed on the clean JBoss AS installations.
The client is sending 1000 messages to the clustered queue.
If one of the cluster nodes is shut down (using shutdown.sh) the exception on the client side is sometimes thrown:
javax.jms.JMSException: Failed to route Reference[1369]:RELIABLE to sampleprocess
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:743)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:383)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
| at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
| at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:795)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.remoting.Client.invoke(Client.java:536)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:477)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:632)
| at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect28.invoke(SessionAspect28.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:114)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
| at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
| at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:278)
| at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect39.invoke(ProducerAspect39.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
| at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)
| at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)
| at com.mycompany.bpm.client.service.impl.BpmMessageServiceImpl.sendMessage(BpmMessageServiceImpl.java:162)
| at com.mycompany.bpm.client.service.impl.BpmMessageServiceImpl.sendTextMessage(BpmMessageServiceImpl.java:154)
| at com.mycompany.bpm.client.service.impl.BpmMessageServiceImplTest.sendTextMessageTest(BpmMessageServiceImplTest.java:16)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
| at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
| at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
| at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
| at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
| at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
|
|
There is also an exception on the server side:
| javax.jms.JMSException: Failed to route Reference[1369]:RELIABLE to sampleprocess
| at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:743)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:383)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
| at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
| at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
| at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
| at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
| at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:795)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:387)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
| 15:00:33,450 INFO [ServerPeer] ServerPeer[0] is Stopping. NOTE! Stopping the server peer cleanly will NOT cause failover to occur
| 15:00:34,017 INFO [ServerPeer] JMS ServerPeer[0] stopped
Queue definion in destinations-service.xml (on both of nodes)
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=sampleprocess"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| <attribute name="Clustered">true</attribute>
| </mbean>
|
My jndi config
### JBossNS properties
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.provider.url=jnp://node1:1099,jnp://node2:1099
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
|
The messages in the queue are consumed by MDBs.
I know that clean shutdown does not cause failover and the messages will be delivered as soon as I start the node again.
What I don't understand why the exception is occasionally thrown on the client side. Should it work like this or is it a bug? What should I do in this case? Should I reconnect like with JBossMQ or not?
Thanks in advance.
Regards
Dmitry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132534#4132534
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132534
16 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Re: 4.2.2 wont deploy my persistency unit
by yugantshah
"alllle" wrote : "aborland" wrote : Is there currently any other solution/workaround for this? I'd prefer not to hack in such a change. I'm using 4.2.0.GA_CP01 and having this exact problem.
|
| This fix is pretty safe and should not have any impact to the rest of the system.
|
| As for other workaround, I guess it would be your turn to find it and publish it out :)
Hello,
This solution solves the persistence context loading issue.
But now I have one more issue.The @PersistenceContext is not supported in MDB. Also I tried with the
<persistence-context-ref>
<persistence-context-ref-name>hopsLM3/messaging/entity_manager</persistence-context-ref-name>
<persistence-unit-name>hopsMessaging$LM</persistence-unit-name>
</persistence-context-ref>
in ejb-jar.xml but still same issue.
The error that I get is
14:50:01,042 ERROR [STDERR] javax.naming.NameNotFoundException: hopsLM3 not boun
d
14:50:01,042 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
Server.java:529)
14:50:01,042 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(Naming
Server.java:537)
14:50:01,057 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingS
erver.java:543)
14:50:01,057 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ
er.java:267)
14:50:01,057 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServ
er.java:270)
I am not able to resolve it.
Any help on it would be appreciated.
Thanks and Regards,
Yugant Shah.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132525#4132525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132525
16 years, 8 months
[EJB/JBoss] - Re: Migrating from jBoss4.0.5GA to 4.2.2GA
by nsmith80
"nsmith80" wrote : Here's the bean, the interface(s) implemented, and class he inherits from. Basically the business tier was built on a hierarchical scheme where the highest level user BeloAdmin would inherit his characteristics from the lower levels. ie. RegionAdmin
|
|
| | @Stateless
| | public class BeloAdminFactoryBean extends RegionAdminFactoryBean implements ISessionBeloAdminFactoryLocal {
| |
| |
| | @EJB private ISessionBeloAdminRegionLocal beloAdminRegionBean;
| | @EJB private ISessionBeloAdminDMALocal beloAdminDMABean;
| | @EJB private ISessionBeloAdminSportLocal beloAdminSportBean;
| | @EJB private ISessionBeloAdminPlayerLocal beloAdminPlayerBean;
| | @EJB private ISessionBeloAdminCoachLocal beloAdminCoachBean;
| | @EJB private ISessionBeloAdminGameLocal beloAdminGameBean;
| | @EJB private ISessionBeloAdminStatsLocal beloAdminStatBean;
| | @EJB private ISessionBeloAdminUserLocal beloAdminUserBean;
| |
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminRegionBean()
| | */
| | public ISessionBeloAdminRegionLocal getBeloAdminRegionBean() {
| |
| | return beloAdminRegionBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminDMABean()
| | */
| | public ISessionBeloAdminDMALocal getBeloAdminDMABean() {
| |
| | return beloAdminDMABean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminSportBean()
| | */
| | public ISessionBeloAdminSportLocal getBeloAdminSportBean() {
| |
| | return beloAdminSportBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminPlayerBean()
| | */
| | public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean() {
| |
| | return beloAdminPlayerBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminCoachBean()
| | */
| | public ISessionBeloAdminCoachLocal getBeloAdminCoachBean() {
| |
| | return beloAdminCoachBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminGameBean()
| | */
| | public ISessionBeloAdminGameLocal getBeloAdminGameBean() {
| |
| | return beloAdminGameBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminStatBean()
| | */
| | public ISessionBeloAdminStatsLocal getBeloAdminStatBean() {
| |
| | return beloAdminStatBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionBeloAdminFactory#getBeloAdminUserBean()
| | */
| | public ISessionBeloAdminUserLocal getBeloAdminUserBean() {
| |
| | return beloAdminUserBean;
| |
| | }
| |
| |
| | }
| |
|
|
| |
| | package com.belo.leaderboard.ejb.session.factories;
| |
| | import javax.ejb.Local;
| |
| | /**
| | * Interface for use in the EJB and web tier.
| | * Interface to Belo Admin Entity Beans
| | */
| | @Local
| | public interface ISessionBeloAdminFactoryLocal extends ISessionBeloAdminFactory {
| |
| | }
| |
| |
|
|
|
| | package com.belo.leaderboard.ejb.session.factories;
| |
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminCoachLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminDMALocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminGameLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminPlayerLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminRegionLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminSportLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminStatsLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionBeloAdminUserLocal;
| |
| | /**
| | * Interface for use in the EJB and web tier.
| | * Interface to Belo Admin Entity Beans
| | */
| |
| | public interface ISessionBeloAdminFactory extends ISessionRegionAdminFactory {
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminRegionLocal getBeloAdminRegionBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminDMALocal getBeloAdminDMABean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminSportLocal getBeloAdminSportBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminPlayerLocal getBeloAdminPlayerBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminCoachLocal getBeloAdminCoachBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminGameLocal getBeloAdminGameBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminStatsLocal getBeloAdminStatBean();
| |
| | /**
| | * @return
| | */
| | public ISessionBeloAdminUserLocal getBeloAdminUserBean();
| |
| | }
| |
|
|
|
| | package com.belo.leaderboard.ejb.session.factories;
| |
| | import javax.ejb.EJB;
| | import javax.ejb.Stateless;
| |
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminDMALocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminGroupLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminRegionLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSchoolLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminSeasonLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminStatsLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminUserLocal;
| | import com.belo.leaderboard.ejb.session.function.ISessionRegionAdminVenueLocal;
| |
| | /**
| | * Factory class for use in the EJB and web tier.
| | * Factory Class for access to Region Admin Entity Beans(interfaces)
| | */
| | @Stateless
| | public class RegionAdminFactoryBean extends DMAMgrFactoryBean implements ISessionRegionAdminFactoryLocal {
| |
| |
| | @EJB private ISessionRegionAdminDMALocal regionAdminDMABean;
| | @EJB private ISessionRegionAdminSchoolLocal regionAdminSchoolBean;
| | @EJB private ISessionRegionAdminVenueLocal regionAdminVenueBean;
| | @EJB private ISessionRegionAdminSeasonLocal regionAdminSeasonBean;
| | @EJB private ISessionRegionAdminGroupLocal regionAdminGroupBean;
| | @EJB private ISessionRegionAdminStatsLocal regionAdminStatsBean;
| | @EJB private ISessionRegionAdminUserLocal regionAdminUserBean;
| | @EJB private ISessionRegionAdminRegionLocal regionAdminRegionBean;
| |
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminDMABean()
| | */
| | public ISessionRegionAdminDMALocal getRegionAdminDMABean() {
| |
| | return regionAdminDMABean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSchoolBean()
| | */
| | public ISessionRegionAdminSchoolLocal getRegionAdminSchoolBean() {
| |
| | return regionAdminSchoolBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminVenueBean()
| | */
| | public ISessionRegionAdminVenueLocal getRegionAdminVenueBean() {
| |
| | return regionAdminVenueBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminSeasonBean()
| | */
| | public ISessionRegionAdminSeasonLocal getRegionAdminSeasonBean() {
| |
| | return regionAdminSeasonBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminGroupBean()
| | */
| | public ISessionRegionAdminGroupLocal getRegionAdminGroupBean() {
| |
| | return regionAdminGroupBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminStatsBean()
| | */
| | public ISessionRegionAdminStatsLocal getRegionAdminStatsBean() {
| |
| | return regionAdminStatsBean;
| |
| | }
| |
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminUserBean()
| | */
| | public ISessionRegionAdminUserLocal getRegionAdminUserBean() {
| |
| | return regionAdminUserBean;
| |
| | }
| |
| | /* (non-Javadoc)
| | * @see com.belo.leaderboard.ejb.session.factories.ISessionRegionAdminFactory#getRegionAdminRegionBean()
| | */
| | public ISessionRegionAdminRegionLocal getRegionAdminRegionBean() {
| |
| | return regionAdminRegionBean;
| |
| | }
| |
| |
| | }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132517#4132517
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132517
16 years, 8 months