<display-name>Simple Session Servlet</display-name>
You called the servlet "ServeletTest" but then
tried to referred to it as "testServ"
thaks . that fixed the problem .
Now just one last thing , i have changed the sqlserver-service.xml (wht ever the eact name ) file so use SQL Server as the default data source and it works alright . the SQL is used for CMP by jboss . then i tried to keep the default to hypersonic sql and specify the mssql as the data source in the jbosscmp-jdbc file in the meta-inf directory along with the ejb-jar file .
but jboss is still using hypersonic sql as the data source . why is tha t happenig . i have specified the datasource to use in the jbosscmp-jdbc file .
there is an extra entity tag in the file , which i have now removed . i have discovered another thing
the jboss is simply using the datasource that i have mentioned in the standardjaws file in the conf directory . it ignorest the data sources mentioned in the .jar files . and simply uses the one set as default in the standard jaws file . even if the default source in standardjdbccmp-jdbc.xml file is hypersonic sql . which ever source u mention in the standard jaws file , is the one it uses .
i want to keep the default to hypersonic and use sqlserver for only some of the ejb's . with which i am giving the jbosscmp file . How can that be done .
the ones with which i dont mention any data souce should go to the hypersonic sql
The structure should be
thanks but it did'nt work . it still goes for the datasource listed as default in the standardjaws file .
i am attaching the bean with the message though
Have you specified the EJB2.0 dtd in
jbosscmp won't be used if you are using JAWS.
can i ask u one thing ... it might sound dumb but , how do u tell jboss not to use jaws if thats the problem you are saying is ...
i have'nt made any particular changes to the jboss configuration ... i just want to be able to use the database i want for my EJB . some may be mapped to hypersonic sql , other may be to SQL Server .
and one more thing , is it necessary to specify the database name , as in employeeDB etc in the service file . what if we want to decide that in the deployment descriptors . can we do that ...