Hi, my webservice is a method from a regular 'java class'. I added the
axis libraries to the web application, that consists of just a bean and
a singleton class that handles jndi for data base connection pooling.
Would this be best practice or should I use a Stateless Session Bean?
thx jason
Hi,
> Hi, my webservice is a method from a regular 'java class'. I added the
> axis libraries to the web application, that consists of just a bean and
I always would prefer JWSD 2.0 because in case of JBoss it is
recommended, by JBoss, to generate your artificats (classes) by using
wscompile tool. In my last project i also have to use an axis based
webservice client and got problems with some JBoss versions.
> a singleton class that handles jndi for data base connection pooling.
Of course you could use a singleton for database management.
Do you use connection pooling via datasources? If not you should.
Using datasources with Tomcat
http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html
Using datasources with JBoss:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
Using datasources with Geronimo:
> Would this be best practice or should I use a Stateless Session Bean?
Would the best practice in J2EE applications because you can configure
existing business methods for webservice use.
regards,
stefan