How can i know that servers are up and running?
hello everyone...
i have a distributed application which does the following.. a client submits a job which is passed from one server to another and after some processing on each server the job is returned back to the client.. the thing is that i want to make the whole application more reliable... how can i found out if the next server that i am going to submit the job is up and running?
the client has decided the order of the servers that should be followed but when a server processes the job another one may "die..." and i am telling you that because i cannot check if the cast of the objectReference fails when i make the list on the client...
is there any function that i can call to the orb and find that out ?
thxxxxx
ps. i am using java and corba orb
hmm... when i reproduce the situation i get the following
15 ─ίΆ 2006 2:39:47 ΉΉ com.sun.corba.se.impl.transport.SocketOrChannelConnection
Impl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR
_TEXT; hostname: 10.34.153.11; port: 2945"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U
nknown Source)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U
nknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(
Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(
Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.create
Connection(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.begin
Request(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknow
n Source)
at org.omg.CORBA.portable.ObjectImpl._request(Unknown Source)
at WorkflowFramework._ServiceStub.translationService(_ServiceStub.java:1
8)
at wF.ServantEnglishToGreek.translationService(ServantEnglishToGreek.jav
a:294)
at WorkflowFramework._ServiceImplBase._invoke(_ServiceImplBase.java:41)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
tchToServant(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
tch(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
Request(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(U
nknown Source)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.call
back(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest
(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatc
h(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(
Unknown Source)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket
(Unknown Source)
... 19 more
NEXT SERVER IS DOWN! org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201
completed: Noi added to my code the following catch
try{
//call next server
nextServerRef.translationService(objRef, buffer);
catch(org.omg.CORBA.COMM_FAILURE o){
System.out.println("NEXT SERVER IS DOWN! "+o);
}it is obvious that i haven't worked with exceptions a lot rather than some standard things.. which are the exact exceptions that i should catch and how??
thx again!!
Message was edited by:
panosjava
Similar Messages
-
I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
Here you can see both routers:
I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
Below, one can see the summary of the config for both routers.
Would somebody explain it?
Thanks,
Marcelo
Message was edited by: Marcelãoplease disregard this answer.
Message was edited by: Marcelão -
How can I know what objects are under specific tablesapce?
Dear all,
I want to find out how many tables are under "SYSAPPL" tablespace. How can I know that?
Please advice,
AmyAssuming you have appropriate privileges,
SELECT COUNT(*)
FROM dba_tables
WHERE tablespace_name = 'SYSAPPL'If you don't have access to DBA_TABLES, you may be able to use USER_TABLES or ALL_TABLES, but that may miss objects that are in that tablespace that you don't have access to.
Justin -
How can we know that size of dimension is more than fact table?
how can we know that size of dimension is more than fact table?
this was the question asked for me in interviewHi Reddy,
This is common way finding the size of cube or dimensions or KF.
Each keyfiure occupies 10 Bytes of memory
Each Char occupies 6 Bytes of memory
So in an Infocube the maximum number of fields are 256 out of which 233 keyfigure, 16 Dimesions and 6 special char.
So The maximum capacity of a cube
= 233(Key figure)10 + 16(Characteristics)6 + 6(Sp.Char)*6
In general InfoCube size should not exceed 100 GB of data
Hope it answer your question.
Regards,
Varun -
How can I prevent that emails are downloaded (POP3) when the lid of my MacBook Pro is closed?
Disable Power Nap in the Energy Saver pane of System Preferences. Uncheck the box marked Enable Power Nap... in each of the tabs.
-
HT4061 How can I know that my iPad is original or not?
How can I know that my iPad is original or not? If I can know, how?
Do you think it's a fake iPad?
Were you able to register it with no problems?
https://supportprofile.apple.com/MySupportProfile.do
Where did you buy it? Can you compare it with iPads at an Apple store or reseller? -
How can I know which photos are in the library was used in each album I have created before.
How can I know which photos are in the library was used in each album I have created before?
I have many photos in the library folder of iPhoto, but actually I don't know which photos were used in my album.
Is there any method to find this?
Thanks.Album or Book?
If Album you can find the ones not already used:
File -> New Smart Album
Album -> is not -> Any
Regards
TD -
my iphone5s head phones got mixed up with my room mates headphones and i really want to know witch one is mine how can i know that please help !
I doubt there is you dropped it and broken the screen
try holding the top button and the round button at bottom of screen
hold both until maybe an Apple logo appears if nothing after 20 secs
the iPad is toast
It can be exchanged at an apple store for around $249 to $219 depending on model
Apple do not do repairs
I would own up now before it gets more complicated -
How can we know that JVM is running in our system?
how can we know that JVM is running in our system?
On a *dows system you can use pslist and the like:
http://www.sysinternals.com/Utilities/PsTools.html
http://www.sysinternals.com/Utilities/PsList.html -
Please can you tell me how can I know is my nano affected and can I replace it if I live in Bosnia and Herzegovina.
The OS 10.6 Snow Leopard install DVD is available for $19.99 from the Apple Store:
http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
and in the UK:
http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
When you have installed it, run Software Update to download and install the latest updates for Snow Leopard to bring it up to 10.6.8, or download the combo update from here:
http://support.apple.com/kb/DL1399
Check via Software Update whether further updates are required.
You should now see the App Store icon in iTunes, and you now need to set up your account:
http://support.apple.com/kb/HT4479
To use iCloud you have to upgrade at least to Lion, but some functions are only available in Mountain Lion:
http://support.apple.com/kb/HT4759
You can also purchase the code to use to download Lion (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
http://www.apple.com/osx/specs/ -
How can i know who get my photos and messages from my icloud???
How can i know who get my photos and messages from my icloud???
Nobody, except the persons who have your username and password or with whom you share photos streams would be able to see anything from you.
-
How can i know who get my photos and messages from my icloud???
The following website gives you an overview on how your iCloud data is encrypted: https://support.apple.com/kb/HT4865 So as long as you don not share your Apple ID with someone else, everything should be fine.
-
How can I know whether PI is ready to run
Hi.
How can I know whether PI is ready to run?
ex)
MMC status is green.
J2EE Engine status is "10"(RUNNING)
http://<host>:<port>/AFW/rtc returns some status
I want to check the whether PI is ready to run periodcically.
Can I use sapcontorl interface?
regards,Gaspard,
>MMC status is green.
>J2EE Engine status is "10"(RUNNING)
> Check the ABAP Stack
If all this good, PI is ready to go ahead
Cheers
Agasthuri Doss -
My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean? And how can I get my computer back up and running normal?
Start up in Safe Mode.
http://support.apple.com/kb/PH14204?viewlocale=en_US
Repair Disk.
http://support.apple.com/kb/PH5836
Reset PRAM.
http://support.apple.com/kb/PH14222 -
How can I know that the listener is starting up?
Hi,
I follow the instruction in ACS Oracle Installation guide. I believe that many of you use the document to install oracle. I have a question when I try to start the listener. when I execute ./listener8i stop or ./listener8i start I got the same message, which is different from the message in the ACS document.
Here is the message:
Oracle 8i listener start/stop
Startting the Listener for 8i:
LSNRCTL for Linux: Version 8.1.6.0.0 - Production on 31-AUG-2000 14:00:00
(c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.
TNS-01106: Listener using listener name LISTNENER has already been startd.
Is the message above correct? How can I know the listener is started up?
TIA,
Tonytry "lsnrctl status" on the linux command line.
for further info use "lsnrctl help"
Maybe you are looking for
-
my icloud was bought with my old apple id and i forgot my password. now i cannot back up my phone
-
How can I tell if one of my iBooks has an update available?
I was listening to a podcast where the author of a particular iBook, which I have purchased, stated that there was an updated version available. My questions are: Is there some way to know that there is an update to an iBook I have purchased and have
-
I'm having trouble with Reader XI under Windows 7. I was recently prompted to upgrade from Reader X, and accepted the invitation to do so. Part way through, I realized that the prompt was not from Adobe. but from a third party, so cancelled the insta
-
Solaris 10 kernel Patch 127127-11
we need to apply solaris 10 kernel Patch 127127-11 in our prod server as a prerequisite for oracle10g patch set 10.2.0.4 installation but i found a Doc 242366 (May Cause a system Panic from ip_wput_ioctl()).It is mentioned in doc that Binary relief i
-
Installer Packages - Can they be deleted?
Hello, I am looking to free up some HD space and found many packages in the following path: HD/Library/Receipts. It looks like these are apps that either came with the iMac or that I subsequently installed. Can these be deleted with causing harm? Som