Re: [jboss-user] [JBoss Web Services] - accessing secure wsdl
by aodhan hoffman
aodhan hoffman [http://community.jboss.org/people/gryffin] replied to the discussion
"accessing secure wsdl"
To view the discussion, visit: http://community.jboss.org/message/550690#550690
--------------------------------------------------------------
Thank you. Unfortunately, I do this already as you can see here:
assetApiService = new AssetAPIService( );
assetService = assetApiService.getAssetAPIServiceHttpPort();
((BindingProvider)assetService).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "******");
((BindingProvider)assetService).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "******");
The problem arises because *assetApiService = new AssetAPIService( );* fails. It fails because the entire service url is protected. I need to provide the username/password at the time the WSDL is dynamically sought as the ws stub is instantiated.
So I somehow need to get the credentials into a the context somewhere around here:
public AssetAPIService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
where 'wsdlLocation' is password protected. Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550690#550690]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[JBoss Messaging] - detected failure on control connection
by Armin Haaf
Armin Haaf [http://community.jboss.org/people/arminhaaf] created the document:
"detected failure on control connection"
To view the document, visit: http://community.jboss.org/docs/DOC-15535
--------------------------------------------------------------
in our cluster with 3 nodes we get the following warnings
2010-07-01 15:26:41,646 WARN [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] [T:206] org.jboss.remoting.transport.bisocket.BisocketServerInvoke
r$ControlMonitorTimerTask@236d517d: detected failure on control connection Thread[control: Socket[addr=/10.199.18.12,port=46677,localport=49926],5,jboss] (3j0
02-b6u5j-gayr2q3g-1-gb257m80-9dhq: requesting new control connection
today the message occured on the first node 290 times, the second 179 times and on the third 8 times
we are using jboss as 5.1 with jboss-remoting 2.5.2-SP2 and messaging 1.4.6-GA
it seems that this warning did not produce any problems. But every 3-4 days a nodes serverpeer dies (client connection no longer possible, jmx info about client connections did not return)
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-15535]
Create a new document in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 6 months
[JBoss Cache] - JDBC Loader doesn't create table?
by Sehee Lee
Sehee Lee [http://community.jboss.org/people/tosehee75] created the discussion
"JDBC Loader doesn't create table?"
To view the discussion, visit: http://community.jboss.org/message/550668#550668
--------------------------------------------------------------
Hello.
Trying to configure the jboss cache.xml with JDBC loader and table.create=true, but it doesn't seem to be doing it.
Here is the snippet of config xml.
<loader async="true" fetchPersistentState="true" ignoreModifications="true" purgeOnStartup="true">
<properties>
cache.jdbc.table.name=JBOSSCACHE
cache.jdbc.table.create=true
cache.jdbc.table.drop=true
cache.jdbc.datasource=datasource_name
</properties>
<singletonStore>
<properties> pushStateWhenCoordinator=true pushStateWhenCoordinatorTimeout=20000</properties>
</singletonStore>
</loader>
and I get this exception..
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'staging.JBOSSCACHE' doesn't exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.Util.getInstance(Util.java:381)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
My question is..
Does cache.jdbc.table.create=true get ignored if using datasource for jdbc loader?
If so, is there a custom sql that I can run to create these tables manually?
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550668#550668]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months