Here you go David...

Regards
Chris



-----Original Message-----
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 15 August 2002 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] SAP R/3 JCA connector and JBoss 3.0.0


Can you send me the (suitably de-password-ized) working config file so I
can put it with our examples in cvs?

Thanks!
david jencks

On 2002.08.14 19:54:55 -0400 Chris Pinfold wrote:
> Yes, you were spot on David.  The SAP Adapter was deployed under a 
> different name .. doh!.  The Jetty problem I was getting was
> because I had a distributable tag in my web.xml - although this
> didn't cause a problem in 3.0.0.
> 
> Anyway, thanks for all your help .. it is all working now.
> 
> Cheers
> Chris
> 
> 
> -----Original Message-----
> From: David Jencks [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 10 August 2002 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] SAP R/3 JCA connector and JBoss 3.0.0
> 
> 
> Is the SAP adapter itself deploying properly?  this makes it look like it
> isn't:
> 
>  ObjectName: jboss.jca:service=XaTxDS,name=SAPConnectorFactory
>  state: CONFIGURED
>  I Depend On:   jboss.jca:service=RARDeployment,name=SAP R3 Connector
> 
>  Depends On Me:   jboss.jca:service=XaTxCM,name=SAPConnectorFactory
> ]
> 
> Look on the jmx viewer for jboss.jca:service=RARDeployment,name=SAP R3
> Connector
> 
> Don't know about the Jetty problem.
> 
> david jencks
> 
> On 2002.08.09 01:36:54 -0400 Chris Pinfold wrote:
> > Thanks David. I have created a new sapr3-service.xml file based on
> > the firebird-service.xml example, but I am still having a few
> > problems (see below).
> > 
> > I have attached, the sapr3-service.xml file, my jboss.xml and
> ejb-jar.xml
> > 
> > If I deploy to JBoss 3.0.0:
> > 1) Deployment completes successfully, i.e.
> > 
> > 05:16:31,053 INFO  [MainDeployer] Successfully completed deployment of
> > package: file:/C:/j2ee/jboss-3.0.0/server/default/conf/jboss-service.xml
> > 
> > 2) When I run a test from a JSP page, I get the following error:
> > 
> > 05:18:32,577 ERROR [MSapBean] Error processing request
> > javax.naming.NameNotFoundException: R3ConnectionFactory not bound
> >         at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
> >         at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
> >         at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
> >         at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> >         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
> >         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
> >         at javax.naming.InitialContext.lookup(InitialContext.java:347)
> >         at 
>com.yambay.mflim.sapadapter.ejb.MSapBean.executeBapiFunction(MSapBean.java:284)
> >         at com.yambay.mflim.sapadapter.ejb.MSapBean.getOrderList(MSapBean.java:119)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
>org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664)
> >         at 
>org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
> >         at 
>org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)
> >         at 
>org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
> >         at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
> >         at 
>org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
> >         at 
>org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129)
> >         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
> >         at 
>org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
> >         at org.jboss.ejb.Container.invoke(Container.java:705)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> >         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
> >         at 
>org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
> >         at 
>org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
> >         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> >         at 
>org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
> >         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> >         at $Proxy28.getOrderList(Unknown Source)
> >         at org.apache.jsp.bapi$jsp._jspService(bapi$jsp.java:157)
> >         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
> >         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> >         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
> >         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
> >         at org.mortbay.http.HttpServer.service(HttpServer.java:757)
> >         at org.jboss.jetty.Jetty.service(Jetty.java:527)
> >         at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
> >         at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
> >         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
> >         at 
>org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151)
> >         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
> >         at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
> >         at java.lang.Thread.run(Thread.java:536)
> > 
> > The code that causes this exception is:
> > 
> >    protected String sapFactory = "java:/R3ConnectionFactory";
> > 
> >       try {
> >          InitialContext initialcontext = new InitialContext();
> >          R3ConnectionFactory connectionFactory = (R3ConnectionFactory)
> > initialcontext.lookup(sapFactory); 
> >          connection = establishConnection(connectionFactory);
> > 
> >             ....
> > 
> > If I deploy to JBoss 3.0.1:
> > 
> > 1) I get the following error upon deployment:
> > 05:04:31,270 ERROR [URLDeploymentScanner] MBeanException: Exception in
> > MBean operation 'checkIncompleteDeployments()'
> > Cause: Incomplete Deployment listing:
> > Packages waiting for a deployer:
> >   <none>
> > Incompletely deployed packages:
> >   <none>
> > MBeans waiting for classes:
> >   <none>
> > MBeans waiting for other MBeans:
> > [ObjectName: jboss.jca:service=XaTxCM,name=SAPConnectorFactory
> >  state: CONFIGURED
> >  I Depend On:   jboss.jca:service=RARDeployer
> >   jboss.jca:service=XaTxDS,name=SAPConnectorFactory
> >   jboss.jca:service=XaTxPool,name=SAPConnectorFactory
> >   jboss.jca:service=CachedConnectionManager
> >   jboss.security:service=JaasSecurityManager
> > 
> >  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=SAPConnectorFactory
> >  state: CONFIGURED
> >  I Depend On:   jboss.jca:service=RARDeployment,name=SAP R3 Connector
> > 
> >  Depends On Me:   jboss.jca:service=XaTxCM,name=SAPConnectorFactory
> > ]
> > 05:04:31,280 DEBUG [AbstractDeploymentScanner$ScannerThread] Notified
> > that enabled: true
> > 05:04:31,280 INFO  [URLDeploymentScanner] Started
> > 
> > 2) As a side issue, I also get a Jetty error I was not getting in
> > 3.0.0...
> > 05:04:31,180 WARN  [Manager] distributed Store
> > (org.jboss.jetty.session.ClusterStore) failed to initialise
> > java.lang.NoClassDefFoundError: 
>org.jboss.ha.httpsession.server.ClusteredHTTPSessionServiceMBean
> >         at org.jboss.jetty.session.ClusterStore.class$(ClusterStore.java:26)
> >         at org.jboss.jetty.session.ClusterStore.start(ClusterStore.java:48)
> >         at org.mortbay.j2ee.session.Manager.start(Manager.java:165)
> >         at org.mortbay.jetty.servlet.ServletHandler.start(ServletHandler.java:395)
> >         at 
>org.mortbay.jetty.servlet.WebApplicationHandler.start(WebApplicationHandler.java:141)
> >         at org.mortbay.http.HttpContext.startHandlers(HttpContext.java:1678)
> >         at 
>org.jboss.jetty.JBossWebApplicationContext.startHandlers(JBossWebApplicationContext.java:257)
> >         at org.mortbay.http.HttpContext.start(HttpContext.java:1648)
> >         at 
>org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:384)
> >         at org.jboss.jetty.Jetty.deploy(Jetty.java:409)
> >         at org.jboss.jetty.JettyService.performDeploy(JettyService.java:243)
> >         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
> >         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
> >         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:788)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
> >         at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
> >         at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> >         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
> >         at $Proxy4.deploy(Unknown Source)
> >         at 
>org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:427)
> >         at 
>org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:648)
> >         at 
>org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:499)
> >         at 
>org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:238)
> >         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:164)
> >         at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> >         at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> >         at 
>org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
> >         at $Proxy0.start(Unknown Source)
> >         at org.jboss.system.ServiceController.start(ServiceController.java:396)
> >         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
> >         at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> >         at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
> >         at $Proxy3.start(Unknown Source)
> >         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:249)
> >         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
> >         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at 
>org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
> >         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> >         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
> >         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
> >         at org.jboss.Main.boot(Main.java:142)
> >         at org.jboss.Main$1.run(Main.java:375)
> >         at java.lang.Thread.run(Thread.java:536)
> > 
> > 3) I also get the following error if I execute my test JSP...
> > 
> > 05:05:57,161 ERROR [MarshallingInterceptor] could not get Attribute:
> msap
> > java.io.InvalidClassException: org.mortbay.j2ee.session.SerializableEJBObject;
> > local class incompatible: stream classdesc serialVersionUID = 9075948
> > 9670159644, local class serialVersionUID = 9076021037437592860
> >         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:454)
> >         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1511)
> >         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1425)
> >         at 
>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1616)
> >         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
> >         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
> >         at 
>org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterceptor.java:84)
> >         at 
>org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInterceptor.java:93)
> >         at 
>org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java:43)
> >         at 
>org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java:43)
> >         at 
>org.mortbay.j2ee.session.TypeCheckingInterceptor.getAttribute(TypeCheckingInterceptor.java:90)
> >         at 
>org.mortbay.j2ee.session.StateAdaptor.getAttribute(StateAdaptor.java:204)
> >         at org.apache.jsp.connect$jsp._jspService(connect$jsp.java:128)
> >         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
> >         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> >         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344)
> >         at 
>org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:313)
> >         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554)
> >         at 
>org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler.java:199)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1572)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1522)
> >         at org.mortbay.http.HttpServer.service(HttpServer.java:795)
> >         at org.jboss.jetty.Jetty.service(Jetty.java:531)
> >         at org.mortbay.http.HttpConnection.service(HttpConnection.java:784)
> >         at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941)
> >         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799)
> >         at 
>org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186)
> >         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322)
> >         at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:713)
> >         at java.lang.Thread.run(Thread.java:536)
> > 
> > 
> > 
> > Regards
> > Chris
> > 
> > 
> > 
> > -----Original Message-----
> > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 9 August 2002 1:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] SAP R/3 JCA connector and JBoss 3.0.0
> > 
> > 
> > I suggest you modify the firebird-service.xml example.  If you can't
> get
> > it
> > to work quickly post what you have and I'll try to help.  I recommend
> > using
> > 3.0.1 at least: start with the example config that comes with your
> > download
> > to get a compatible format.
> > 
> > david jencks
> > 
> > On 2002.08.08 02:43:16 -0400 Chris Pinfold wrote:
> > > I am currently trying to port our project to jboss-3.0.0alpha to
> > > jboss-3.0.0 (final release) and I am having trouble
> > > getting our SAP R/3 Resource Adapter to deploy correctly.
> > > 
> > > I am using the sapr3-service.xml file available on sourceforge from
> the
> > > link below..
> > > 
> > > 
>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/Attic/sapr3-service.xml
> > > 
> > > This worked fine for the Alpha version, since the classes
> > > org.jboss.resource.ConnectionFactoryLoader and
> > > org.jboss.resource.ConnectionManagerFactory were available in
> > > jboss-jca.jar.  These seem to have been removed in both the final
> > release
> > > of jboss-3.0.0 and jboss-3.0.1.
> > > 
> > > Any help would be greatly appriciated.
> > > 
> > > The sapr3-service.xml I am using (minus ip address and user/pwd) is
> > > listed below...
> > > 
> > > Regards
> > > Chris
> > > 
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!-- $Id: sapr3-service.xml,v 1.2 2002/06/21 23:40:09 d_jencks dead $
> > -->
> > > 
> > > 
> > > <!-- =====================================================================
> > > -->
> > > <!--                                                                 
>  
> >  
> > >  -->
> > > <!--  JBoss Server Configuration                                     
>  
> >  
> > >  -->
> > > <!--                                                                 
>  
> >  
> > >  -->
> > > <!-- =====================================================================
> > > -->
> > > 
> > > 
> > > <server>
> > > 
> > >   <!-- ====================================================================
> > > -->
> > >   <!-- Example ConnectionFactoryLoader for SAP R/3 connector         
>  
> >  
> > >   -->
> > >   <!-- Put sap.rar in deploy also. This rar should contain jars      
>  
> >  
> > >   -->
> > >   <!-- ra.jar and jCO.jar.  The native libraries need to be moved by
> > hand
> > >   -->
> > >   <!-- to your PATH.                                                 
>  
> >  
> > >   -->
> > >   <!-- Author: David Jencks [EMAIL PROTECTED]           
>  
> >  
> > >   -->
> > >   <!-- Author: Paul McLachlan [EMAIL PROTECTED]                       
>  
> >  
> > >   -->
> > >   <!-- ====================================================================
> > > -->
> > > 
> > >   <mbean code="org.jboss.resource.ConnectionFactoryLoader"
> > >    name="JCA:service=ConnectionFactoryLoader,name=SAP
> > > ConnectorFactory">
> > >     <attribute name="ManagedConnectionFactoryProperties">
> > >       server-name=<ip address>
> > >       system-name=
> > >       system-number=00
> > >       UserName=<user>
> > >       password=<pwd>
> > >       Language=EN
> > >     </attribute>
> > >     <attribute name="JndiName">R3ConnectionFactory</attribute>
> > >     <attribute name="TransactionManagerName">java:/TransactionManager</attribute>
> > >     <mbean-ref name="ResourceAdapterName">JCA:service=RARDeployment,name=SAP
> > > ConnectorFactory</mbean-ref>
> > >     <mbean-ref 
>name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory</mbean-ref>
> > >     <attribute name="ConnectionManagerProperties">#
> > >       BlockingTimeoutMillis=500000
> > >       IdleTimeoutMinutes=30
> > >       MaxSize=10
> > >       CleanupIntervalMinutes=30
> > >       MinSize=0
> > >       MaxIdleTimeoutPercent=1.0
> > >     </attribute>
> > >     <attribute name="PrincipalMappingClass">
> > >       org.jboss.resource.security.ManyToOnePrincipalMapping
> > >    </attribute>
> > >     <attribute name="PrincipalMappingProperties">
> > >       UserName=<user>
> > >       password=<pwd>
> > >     </attribute>
> > >   </mbean>
> > > 
> > > </server>
> > > 
> > > 
> > > 
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> > > <HTML>
> > > <HEAD>
> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
> > charset=iso-8859-1">
> > > <META NAME="Generator" CONTENT="MS Exchange Server version
> > 6.0.5770.91">
> > > <TITLE>SAP R/3 JCA connector and JBoss 3.0.0</TITLE>
> > > </HEAD>
> > > <BODY>
> > > <!-- Converted from text/rtf format -->
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">I am currently trying to port our
> project
> > to
> > > jboss-3.0.0alpha to jboss-3.0.0 (final release) and I am having
> > > trouble</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Arial">getting our SAP R/3 Resource Adapter to
> > > deploy correctly.</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">I am using the sapr3-service.xml file
> > > available on sourceforge from the link below..</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial"><A
HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/Attic/sapr3-service.xml";>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/examples/resources/jca/Attic/sapr3-service.xml</A></FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">This worked fine for the Alpha version,
> > > since the classes org.jboss.resource.ConnectionFactoryLoader and
> > > org.jboss.resource.ConnectionManagerFactory were available in
> > > jboss-jca.jar.&nbsp; These seem to have been removed in both the
> final
> > > release of jboss-3.0.0 and jboss-3.0.1.</FONT></P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">Any help would be greatly
> > > appriciated.</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">The sapr3-service.xml I am using (minus
> ip
> > > address and user/pwd) is listed below...</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Arial">Regards</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Arial">Chris</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&lt;?xml version=&quot;1.0&quot;
> > > encoding=&quot;UTF-8&quot;?&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&lt;!-- $Id: sapr3-service.xml,v
> > 1.2
> > > 2002/06/21 23:40:09 d_jencks dead $ --&gt;</FONT>
> > > </P>
> > > <BR>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&lt;!--
> > > =====================================================================
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier 
>New">&lt;!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&lt;!--&nbsp; JBoss Server
> > > 
>Configuration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier 
>New">&lt;!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&lt;!--
> > > =====================================================================
> > > --&gt;</FONT>
> > > </P>
> > > <BR>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&lt;server&gt;</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!--
> > > ====================================================================
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- Example
> > > ConnectionFactoryLoader for SAP R/3
> > 
>connector&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- Put sap.rar in
> > deploy
> > > also. This rar should contain 
>jars&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- ra.jar and
> > > jCO.jar.&nbsp; The native libraries need to be moved by
> > hand&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- to your
> > > 
>PATH.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- Author: David
> Jencks
> > > 
>[EMAIL PROTECTED]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!-- Author: Paul
> > McLachlan
> > > 
>[EMAIL PROTECTED]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > --&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;!--
> > > ====================================================================
> > > --&gt;</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;mbean
> > > code=&quot;org.jboss.resource.ConnectionFactoryLoader&quot;</FONT>
> > > 
> > > <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=2
> > > FACE="Courier New"> 
>name=&quot;JCA:service=ConnectionFactoryLoader,name=SAP</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">ConnectorFactory&quot;&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > name=&quot;ManagedConnectionFactoryProperties&quot;&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > server-name=&lt;ip address&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > system-name=</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > system-number=00</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > UserName=&lt;user&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > password=&lt;pwd&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > Language=EN</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;
> > > &lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > name=&quot;JndiName&quot;&gt;R3ConnectionFactory&lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > 
>name=&quot;TransactionManagerName&quot;&gt;java:/TransactionManager&lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;mbean-ref
> > > name=&quot;ResourceAdapterName&quot;&gt;JCA:service=RARDeployment,name=SAP</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">ConnectorFactory&lt;/mbean-ref&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;mbean-ref
> > > 
>name=&quot;ConnectionManagerFactoryLoaderName&quot;&gt;JCA:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory&lt;/mbean-ref&gt;</FONT></P>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > name=&quot;ConnectionManagerProperties&quot;&gt;#</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > BlockingTimeoutMillis=500000</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > IdleTimeoutMinutes=30</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > MaxSize=10</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > CleanupIntervalMinutes=30</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > MinSize=0</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > MaxIdleTimeoutPercent=1.0</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;
> > > &lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > name=&quot;PrincipalMappingClass&quot;&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > org.jboss.resource.security.ManyToOnePrincipalMapping</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;
> > > &lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; &lt;attribute
> > > name=&quot;PrincipalMappingProperties&quot;&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > UserName=&lt;user&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> > > password=&lt;pwd&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;
> > > &lt;/attribute&gt;</FONT>
> > > 
> > > <BR><FONT SIZE=2 FACE="Courier New">&nbsp; &lt;/mbean&gt;</FONT>
> > > </P>
> > > 
> > > <P><FONT SIZE=2 FACE="Courier New">&lt;/server&gt;</FONT>
> > > </P>
> > > <BR>
> > > 
> > > </BODY>
> > > </HTML>
> > > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > 
> >   <!-- ====================================================================
> > -->
> >   <!-- New ConnectionManager setup for firebird dbs using jca-jdbc xa
> > driver-->
> >   <!-- Build jmx-api (build/build.sh all) and view for config
> > documentation -->
> >   <!-- ====================================================================
> > -->
> > 
> > <service>
> > 
> >   <mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager"
> > name="jboss.jca:service=XaTxCM,name=SAPConnectorFactory">
> >     <!--make the rar deploy - A BIG HACK till xslt based deployment is
> > written-->
> >     <depends>jboss.jca:service=RARDeployer</depends>
> > 
> >     <depends optional-attribute-name="ManagedConnectionFactoryName">
> >       <mbean code="org.jboss.resource.connectionmanager.RARDeployment"
> > name="jboss.jca:service=XaTxDS,name=SAPConnectorFactory">
> >         <!--more hack-->
> >         <depends 
>optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=SAP
> > R3 Connector</depends>
> >         <attribute name="ManagedConnectionFactoryProperties">
> >           <properties>
> >             <config-property>
> >               <description>The client-number of the R/3
> > system</description>
> >               <config-property-name>ClientNumber</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>010</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The name of the user, with which to logon to
> > the system</description>
> >               <config-property-name>UserName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>myUsername</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description> The password, with wich to logon to the
> > system </description>
> >               <config-property-name>Password</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>myPassword</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The language, with wich to logon to the
> > system</description>
> >               <config-property-name>Language</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>EN</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The name of the server (hostname or
> > ip-address) of the R/3 system</description>
> >               <config-property-name>ServerName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>myServer</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The system-number of the R/3
> > system</description>
> >               <config-property-name>SystemNumber</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value>00</config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The name of the gateway-server (hostname or
> > ip-address) - optional</description>
> >               <config-property-name>GatewayServerName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value></config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The service-number of the gateway -
> > optional</description>
> >               <config-property-name>GatewayServiceNumber</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value></config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The name of the message-server (hostname or
> > ip-address) for the R/3 system</description>
> >               <config-property-name>MessageServerName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value></config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The system-name of the R/3
> > system</description>
> >               <config-property-name>SystemName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value></config-property-value>
> >             </config-property>
> >             <config-property>
> >               <description>The name of the group of application
> > servers</description>
> >               <config-property-name>GroupName</config-property-name>
> >               <config-property-type>java.lang.String</config-property-type>
> >               <config-property-value></config-property-value>
> >             </config-property>
> >           </properties>
> >         </attribute>
> >         <attribute name="JndiName">R3ConnectionFactory</attribute>
> >       </mbean>
> > 
> >     </depends>
> >     <depends optional-attribute-name="ManagedConnectionPool">
> >       <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
> > name="jboss.jca:service=XaTxPool,name=SAPConnectorFactory">
> > 
> >         <attribute name="MinSize">0</attribute>
> >         <attribute name="MaxSize">50</attribute>
> >         <attribute name="BlockingTimeoutMillis">5000</attribute>
> >         <attribute name="IdleTimeoutMinutes">15</attribute>
> >         <!--criteria indicates if Subject (from security domain) or app
> > supplied
> >             parameters (such as from getConnection(user, pw)) are used
> to
> > distinguish
> >             connections in the pool. Choices are 
> >             ByContainerAndApplication (use both), 
> >             ByContainer (use Subject),
> >             ByApplication (use app supplied params only),
> >             ByNothing (all connections are equivalent, usually if
> adapter
> > supports
> >               reauthentication)-->
> >         <attribute name="Criteria">ByContainer</attribute>
> >       </mbean>
> >     </depends>
> >     <depends 
>optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
> >     <!-- Include a login module configuration named SAPR3Realm.
> >          Update your login-conf.xml, here is an example for a 
> >          ConfiguredIdentityLoginModule:
> > 
> >     <application-policy name = "SAPR3Realm">
> >        <authentication>
> >           <login-module code = 
>"org.jboss.resource.security.ConfiguredIdentityLoginModule"
> > flag = "required">
> >              <module-option name =
> "principal">myUsername</module-option>
> >              <module-option name =
> "userName">myUsername</module-option>
> >              <module-option name =
> "password">myPassword</module-option>
> >              <module-option name =
> 
>"managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=SAPConnectorFactory</module-option>
> >           </login-module>
> >        </authentication>
> >     </application-policy>
> > 
> >     NOTE: the application-policy name attribute must match
> > SecurityDomainJndiName, and the 
> >       module-option name = "managedConnectionFactoryName"
> >     must match the object name of the ConnectionManager you are
> > configuring here.
> >     -->
> >     <!--comment out this line if you want component managed security or
> > want
> >         to use the default values in the
> > ManagedConnectionFactoryProperties -->
> >     <attribute name="SecurityDomainJndiName">SAPR3Realm</attribute>
> > 
> >     <depends 
>optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
> > 
> >     <attribute name="TransactionManager">java:/TransactionManager</attribute>
> >   </mbean>
> > 
> > </service>
> > 
> > <?xml version="1.0"?>
> > 
> > <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
> > JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>
> > 
> > <ejb-jar>
> >   <display-name>Sync Operations Store</display-name>
> >   <enterprise-beans>
> > 
> >     <session>
> >       <ejb-name>MSapBean</ejb-name>
> >       <home>com.yambay.mflim.sapadapter.ejb.MSapHome</home>
> >       <remote>com.yambay.mflim.sapadapter.ejb.MSap</remote>
> >       <ejb-class>com.yambay.mflim.sapadapter.ejb.MSapBean</ejb-class>
> >       <session-type>Stateless</session-type>
> >       <transaction-type>Bean</transaction-type>
> >       <resource-ref>
> >          <description>R3ConnectionFactory</description>
> >          <res-ref-name>R3ConnectionFactory</res-ref-name>
> >          <res-type>javax.resource.cci.ConnectionFactory</res-type>
> >          <res-auth>Container</res-auth>
> >       </resource-ref>
> >     </session>
> > 
> >   </enterprise-beans>
> > 
> >   <assembly-descriptor>
> > 
> >      <security-role>
> >       <role-name>Everyone</role-name>
> >     </security-role>
> >     <method-permission>
> >       <role-name>Everyone</role-name>
> >       <method>
> >          <ejb-name>MSapBean</ejb-name>
> >          <method-name>*</method-name>
> >       </method>
> >     </method-permission>
> > 
> >   </assembly-descriptor>
> > 
> >   </ejb-jar>
> > 
> > 
> > 
> > 
> > <?xml version="1.0" encoding="Cp1252"?>
> > 
> > <jboss>
> >     <secure>false</secure>
> >     <container-configurations />
> > 
> >    <resource-managers>
> >             <resource-manager>
> >                     <res-name>R3ConnectionFactory</res-name>
> >                     <res-jndi-name>R3ConnectionFactory</res-jndi-name>
> >             </resource-manager>
> >     </resource-managers>
> > 
> >     <enterprise-beans>
> > 
> >         <session>
> >           <ejb-name>MSapBean</ejb-name>
> >            <jndi-name>MSapBean</jndi-name>
> >           <resource-ref>
> >             <res-ref-name>R3ConnectionFactory</res-ref-name>
> >             <resource-name>R3ConnectionFactory</resource-name>
> >           </resource-ref>
> >         </session>
> > 
> >    </enterprise-beans>
> > 
> >     </jboss>
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: Dice - The leading online job board
> for high-tech professionals. Search and apply for tech jobs today!
> http://seeker.dice.com/seeker.epl?rel_code1
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
<?xml version="1.0" encoding="UTF-8"?>

  <!-- ==================================================================== -->
  <!-- New ConnectionManager setup for SAP R3 					    -->
  <!-- Author: David Jencks ([EMAIL PROTECTED])		    -->
  <!-  Author: Chris Pinfold ([EMAIL PROTECTED])				    -->
  <!--	    										    -->
  <!-- ==================================================================== -->

<service>

  <mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager" name="jboss.jca:service=XaTxCM,name=SAPConnectorFactory">
    <!--make the rar deploy - A BIG HACK till xslt based deployment is written-->
    <depends>jboss.jca:service=RARDeployer</depends>

    <depends optional-attribute-name="ManagedConnectionFactoryName">
      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=XaTxDS,name=SAPConnectorFactory">
        <!--more hack-->
        <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=SAPConnectorFactory</depends>
        <attribute name="ManagedConnectionFactoryProperties">
          <properties>
            <config-property>
              <description>The client-number of the R/3 system</description>
              <config-property-name>ClientNumber</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>010</config-property-value>
            </config-property>
            <config-property>
              <description>The name of the user, with which to logon to the system</description>
              <config-property-name>UserName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>myusername</config-property-value>
            </config-property>
            <config-property>
              <description> The password, with wich to logon to the system </description>
              <config-property-name>Password</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>mypassword</config-property-value>
            </config-property>
            <config-property>
              <description>The language, with wich to logon to the system</description>
              <config-property-name>Language</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>EN</config-property-value>
            </config-property>
            <config-property>
              <description>The name of the server (hostname or ip-address) of the R/3 system</description>
              <config-property-name>ServerName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>myservername</config-property-value>
            </config-property>
            <config-property>
              <description>The system-number of the R/3 system</description>
              <config-property-name>SystemNumber</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>00</config-property-value>
            </config-property>
            <config-property>
              <description>The name of the gateway-server (hostname or ip-address) - optional</description>
              <config-property-name>GatewayServerName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The service-number of the gateway - optional</description>
              <config-property-name>GatewayServiceNumber</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The name of the message-server (hostname or ip-address) for the R/3 system</description>
              <config-property-name>MessageServerName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The system-name of the R/3 system</description>
              <config-property-name>SystemName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
            <config-property>
              <description>The name of the group of application servers</description>
              <config-property-name>GroupName</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value></config-property-value>
            </config-property>
          </properties>
        </attribute>
        <attribute name="JndiName">R3ConnectionFactory</attribute>
      </mbean>

    </depends>
    <depends optional-attribute-name="ManagedConnectionPool">
      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=XaTxPool,name=SAPConnectorFactory">

        <attribute name="MinSize">0</attribute>
        <attribute name="MaxSize">50</attribute>
        <attribute name="BlockingTimeoutMillis">5000</attribute>
        <attribute name="IdleTimeoutMinutes">15</attribute>
        <!--criteria indicates if Subject (from security domain) or app supplied
            parameters (such as from getConnection(user, pw)) are used to distinguish
            connections in the pool. Choices are 
            ByContainerAndApplication (use both), 
            ByContainer (use Subject),
            ByApplication (use app supplied params only),
            ByNothing (all connections are equivalent, usually if adapter supports
              reauthentication)-->
        <attribute name="Criteria">ByContainer</attribute>
      </mbean>
    </depends>
    <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
    <!-- Include a login module configuration named SAPR3Realm.
         Update your login-conf.xml, here is an example for a 
         ConfiguredIdentityLoginModule:

    <application-policy name = "SAPR3Realm">
       <authentication>
          <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
             <module-option name = "principal">myusername</module-option>
             <module-option name = "userName">myusername</module-option>
             <module-option name = "password">mypassword</module-option>
             <module-option name = "managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=SAPConnectorFactory</module-option>
          </login-module>
       </authentication>
    </application-policy>

    NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the 
      module-option name = "managedConnectionFactoryName"
    must match the object name of the ConnectionManager you are configuring here.
    -->
    <!--comment out this line if you want component managed security or want
        to use the default values in the ManagedConnectionFactoryProperties -->
    <attribute name="SecurityDomainJndiName">SAPR3Realm</attribute>

    <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>

    <attribute name="TransactionManager">java:/TransactionManager</attribute>
  </mbean>

</service>

Reply via email to