[jboss-user] [EJB 3.0 Users] - Overriding clientBindUrl does not work! Why?

eminil do-not-reply at jboss.com
Thu Sep 3 03:23:46 EDT 2009


Okay.

We are using AS 5.1.0.GA and want to run our EJB3 over SSL. Following the tutorial at:
http://www.jboss.org/ejb3/docs/tutorial/ssl/ssl.html

We have a bean set up as:

  | @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843")
  | 

This doesn't work good since we are going to run the app on several different machines. So we would like to override this clientBindUrl in the jboss.xml as described here:
https://jira.jboss.org/jira/browse/EJBTHREE-1650

However, using a jboss.xml looking like this:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <jboss xmlns:xs="http://www.jboss.org/j2ee/schema"  
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |     xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
  |     http://www.jboss.org/j2ee/schema/jboss_5_1.xsd"
  |     version="5.1">
  | 
  |    	<enterprise-beans>
  |       <session>
  |          <ejb-name>SystemEJB</ejb-name>
  |          <remote-binding>
  |          	<jndi-name>SystemEJB</jndi-name>      
  |             <client-bind-url>sslsocket://0.0.0.0:3843</client-bind-url>            
  |          </remote-binding>
  |       </session>
  |    </enterprise-beans>
  | 	
  | </jboss>
  | 

Just gives an error when starting up Jboss:


  | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: remote-binding cannot appear in this position. Expected content of session is unordered_sequence: port-component? call-by-value? configuration-name? security-proxy? clustered? home-jndi-name? method-attributes? cluster-config? security-identity? local-jndi-name? ejb-name? local-home-jndi-name? timer-persistence? security-domain? ior-security-config? exception-on-rollback? jndi-name? ejb-timeout-identity? depends* invoker-bindings? {all descriptionGroup}? {unordered_sequence jndiEnvironmentRefsGroup}?

What is the problem?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253220#4253220

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253220



More information about the jboss-user mailing list