[JBoss/Spring Integration] - Re: boot strapping spring inside Jboss
by hungtru
Hi there.
Yeah, I'm trying to use spring with a web app.
I have a collection of enties extending from AbstractMarshallingPayloadEndpoint and one particular from a ServletContextListener (which i am using to start up a bunch of stuff).
So, my web.xml contains:
<web-app
version="2.4"
id="WebApp_ID">
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener-class>
<display-name>MyServerListener</display-name>
<listener-class>com.my.MyServletContextListener</listener-class>
<!-- take especial notice of the name of this servlet -->
<servlet-name>spring-ws</servlet-name>
<servlet-class>
org.springframework.ws.transport.http.MessageDispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>spring-ws</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
I put a break point inside the class, but it never gets created.
All this is wrapped inside a war and deployed inside JBoss. The same war deployed inside WAS starts up properly.
Am I missing some configuration inside JBoss to start up spring? When i remove the Spring libraries, i do get errors from JBoss saying that it can't find the spring libraries.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173360#4173360
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173360
15 years, 11 months
[JBossWS] - Re: Issues with WS-Eventing and JBoss-4.2.3
by riveradon
The following is an example of the code I am trying to execute using the JBoss-4.2.3 libraries. This is a simple main program and interface:
Client
| public class Test {
|
| private static Logger mLogger = Logger.getLogger(Test.class);
|
| public void registerService() {
| final String METHOD_NAME = "registerService";
| mLogger.debug(METHOD_NAME + " - ENTRY");
| boolean result = false;
| try {
| // Running the getCurrent function
| Service service = Service.create(
| new URL("http://ssdr_server:8080/ssdi-ssdr/ssdi-ssdr?wsdl"),
| new QName("http://ssdr.webservices.com/", "SsdrRegistryService"));
| ISsdr servicePort = service.getPort(ISsdr.class);
|
| String registerRDF = "payload";
|
| // Registering the ssdr via the SSDR Web Service
| result = servicePort.registerService(registerRDF);
| mLogger.info("Register results are:" + result);
|
| } catch (Exception e) {
| mLogger.error(METHOD_NAME + " : Exception: ", e);
| }
| mLogger.debug(METHOD_NAME + " - EXIT");
| }
|
| public static void main(String[] args) {
| Test test = new Test();
| test.registerService();
| }
| }
|
Interface
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
| parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public interface ISsdr {
| @WebMethod
| public boolean registerService(@WebParam(name = "serviceRDF") String serviceRDF);
|
| @WebMethod
| public boolean unregisterService(@WebParam(name = "serviceRDF") String serviceRDF);
|
| @WebMethod
| public ArrayList<String> serviceLookup(@WebParam(name="serviceRequestRDF")
| String serviceRequestRDF);
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173344#4173344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173344
15 years, 11 months
[EJB 3.0] - Re: How do I set hibernate.dialect property outside of persi
by robertxlongo@gmail.com
It seems that it is not necessary to set this "hibernate.dialect" property. The correct dialect is chosen by the framework at run-time. For example, if I have a mysql-ds.xml file with the following contents:
| <datasources>
| <local-tx-datasource>
| <jndi-name>MyDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/mydb</connection-url>
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| ...
| <metadata>
| <type-mapping>mySQL</type-mapping>
| </metadata>
| </local-tx-datasource>
| </datasources>
|
... then I receive the following output in the console:
| [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| [InjectedDataSourceConnectionProvider] Using provided datasource
| [SettingsFactory] RDBMS: MySQL, version: 5.0.51b-community-nt
| [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
| [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
|
Note that, if you don't include the database driver in deploy/lib, JBoss will throw an exception reporting that the hibernate dialect must be set. We made this mistake and the exception lead us to believe that we had to set the "hibernate.dialect" property.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173337#4173337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173337
15 years, 11 months