jcr shutdown order
by Richard Huddleston
i'm using apache jackrabbit with the JCA ... my jcrDS.xml is below.
starting up works great, but shutdown is a problem. my jcrDS is
unbound before my apache jackrabbit has a change to shutdown. thus,
jackrabbit can't get access to the jcrDS any more and throws
exceptions.
any ideas?
<connection-factories>
<tx-connection-factory>
<jndi-name>jcr/local</jndi-name>
<xa-transaction />
<rar-name>jackrabbit-jca-1.4.rar</rar-name>
<connection-definition>javax.jcr.Repository</connection-definition>
<config-property name="homeDir"
type="java.lang.String">${java.io.tmpdir}/jackrabbit</config-property>
<config-property name="configFile"
type="java.lang.String">${jboss.server.home.dir}/conf/jcr-repository.xml</config-property>
<config-property name="bindSessionToTransaction"
type="java.lang.Boolean">true</config-property>
<depends>jboss.jca:service=DataSourceBinding,name=jcrDS</depends>
</tx-connection-factory>
<local-tx-datasource>
<jndi-name>jcrDS</jndi-name>
<connection-url>jdbc:mysql://localhost/jcr</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jboss</user-name>
<password>password</password>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</connection-factories>
17 years, 11 months
Re: Jbossws Tutorial.
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=15734 Posted on behalf of a User
I am using JDK 1.5 and I also had to add the jaxb jars to the lib directory of JBoss 4.2.2. Shouldn't that late a version work without having to add these? Is there any other config also required?
In Response To:
I have search a lot to find a starting tutorial for JBossws without EJB and wiht server 4.0.5.
Can any body help me how to create a very simple Web Service. Which files need to be created, directory structure, where to deploy and how to test it.
It would be very helpful.
Regards,
Zeeshan
17 years, 11 months