I'm using websphere application server 7, then I want to externalise values from "ibm-web-bnd.xml", because my application must turn on 3 environments.
<virtual-host name="default_host"/>
<ejb-ref name="ejb/EjbFacade" binding-name="corbaname::localhost:2809#cell/nodes/businessNode01/servers/server1/ejb/EjbFacade"/>
Thank's in advance !
Related
something weird is happening, I have a value from an Excel file and I use Regex.Replace() to transform the value into what I need, locally everything works fine but when I publish the return is different from Regex.Replace():
Given this value: 376900€
I use this code:
x = Regex.Replace(sheet.Cells['D' + row].Text.Replace("€", ""), #"\s+", "");
var Amount = int.Parse(x);
Locally x is: 376900
but when published in a app service x is: 376,900, which throws an exception while parsing to int.
I solved it without using Regex.Replace() but was wondering why is this happening? is it because the server is in North Europe and Regex.Replace() uses some UK conversion or something?
Thanks
My test result. Azure app service reture value same as local.
So MacroMarc's comment is quite right. It should be the data format of this field in the Excel file. When debugging locally, I get 376900€ (according to the local culture/format).
Suggestion
You can deploy your azure web app with debug model. And use remote debugging, to check the value of sheet.Cells['D' + row].Text. I believe that after debugging, you will find the answer you want.
As part of my application setup i have mistakenly changed the JSF implementation on WAS admin console from DEFAULT to SunRI1.2 which is causing issues while running the application. I get Caused by: java.lang.NoClassDefFoundError: com/ibm/ws/webcontainer/srt/SRTServletResponse and i assume it's due to the change i made. I need to change it back to DEFAULT but couldn't do it.
These are steps i've followed to set it to SunRI1.2
set server [$AdminConfig list ApplicationServer *server1*]
$AdminConfig modify $server {{jsfProvider SunRI1.2}}
$AdminConfig save
Doing the following doesn't set it back to DEFAULT.
set server [$AdminConfig list ApplicationServer *server1*]
$AdminConfig modify $server {{jsfProvider DEFAULT}
$AdminConfig save
Appreciate your help on this, many thanks
If you're on a WAS 8 or higher, MyFaces is the default value - setting that value will get you the equivalent of DEFAULT
$AdminConfig modify $server {{jsfProvider MyFaces}}
$AdminConfig save
Using ServiceStack version 4.0.40.
I am trying get RedisSentinel to use the RedisManagerPool instead of the
PooledRedisClientManager so it will allow clients above the client pool size.
I see this in the docs to set this...
sentinel.RedisManagerFactory = (master,slaves) => new RedisManagerPool(master);
I'm not sure how to use this. Do I pass in the master host name? What if I don't know which is master because of a previous failover? I can't sentinel.start() to find out which is master because it will start with the PooledRedisClientManager, which isn't what I want.
Or, do I pass in the sentinel hosts? RedisManagerPool takes a list of hosts, I can pass in the sentinel hosts, but I cannot set it to sentinel.RedisManagerFactory as RedisManagerFactory is not convertible to RedisManagerPool.
I think I am missing something simple here. Any help appreciated.
UPDATE
As per mythz's comment below, this isn't available in version 4.0.40 of ServiceStack. But you can use;
sential.RedisManagerFactory.FactoryFn = (master, slaves) => new RedisManagerPool(master);
Thanks
This is literally the config you need to use to change RedisSentinel to use RedisManagerPool:
sentinel.RedisManagerFactory = (master,slaves) =>
new RedisManagerPool(master);
You don’t need to pass anything else, the master host argument uses the lambda argument.
How to set Hybris db transaction timeout using oracle database?
I have tried the following code but no effect, thanks in advance.
TransactionTemplate template = new TransactionTemplate(manager);
template.setTimeout(1);
You can set in local.properties db.connectionparam.oracle.jdbc.ReadTimeout or db.connectionparam.oracle.net.READ_TIMEOUT (both in millisecond).
Check this post for the difference : https://stackoverflow.com/a/18513472/1140748
To explain a bit, in the platform, in AbstractTenant you have a method extractCustomDBParams that checks for key starting with db.connectionparam .
Does it possible to use simultaneously AMI and BiDir features with jacorb?
Both work for me, but would not work together.
Examples, coming with jacorb demonstrates either BiDir or AMI.
The error that I see is following:
SEVERE: Unexpected error during receiveMessages. Lost a message!
java.lang.NullPointerException
at rg.jacorb.orb.giop.BiDirConnectionClientInterceptor.send_request(BiDirConnectionClientInterceptor.java:125)
at org.jacorb.orb.portableInterceptor.ClientInterceptorIterator.invoke(ClientInterceptorIterator.java:129)
at org.jacorb.orb.portableInterceptor.AbstractInterceptorIterator.iterate(AbstractInterceptorIterator.java:66)
at org.jacorb.orb.portableInterceptor.ClientInterceptorIterator.iterate(ClientInterceptorIterator.java:87)
at org.jacorb.orb.DefaultClientInterceptorHandler.invokeInterceptors(DefaultClientInterceptorHandler.java:328)
at org.jacorb.orb.DefaultClientInterceptorHandler.handle_send_request(DefaultClientInterceptorHandler.java:132)
at org.jacorb.orb.Delegate.servant_preinvoke(Delegate.java:2505)
at org.jacorb.orb.ReplyReceiver.performCallback(ReplyReceiver.java:240)
at org.jacorb.orb.ReplyReceiver.replyReceived(ReplyReceiver.java:183)
at org.jacorb.orb.giop.ClientConnection.replyReceived(ClientConnection.java:355)
at org.jacorb.orb.giop.GIOPConnection.receiveMessagesLoop(GIOPConnection.java:820)
at org.jacorb.orb.giop.GIOPConnection.receiveMessages(GIOPConnection.java:527)
at org.jacorb.orb.giop.MessageReceptor.doWork(MessageReceptor.java:69)
at org.jacorb.util.threadpool.ConsumerTie.run(ConsumerTie.java:60)
at java.lang.Thread.run(Thread.java:724)
please, advise.
UPD: I modified AMI example from jacorb's demo, added BiDir functionality (copied from BiDir example) and now synchronious calls work but ansync (AMI) do not.
They should work together. This does look like a possible issue. Are you using local calls? Can you please provide your test case and submit a ticket on http://www.jacorb.org/bugzilla/
(Please note the official JacORB mailing lists are here : http://www.jacorb.org/contact.html )