Running one rmiregistry for multiple remote object servers
Hi,
I don't find any clear answer for this situation. I want that multiple objet servers (running in separated JVMs) share one rmiregistry placed on a dedicated server. Servers stays in a same network (no firewall at all). If this feature is covered, could you give me any example or link that describe the source code ?
Thanks very well for yours answers.
Manuel
Thanks again for your help, and sorry for my weak usage of english language.
I've tried to bind some remote objects from distinct 'physical' hosts (or computers) to a dedicated registry located on another host.
To resume: I want to use one unique registry for multiple remote objects hosts.
EJP you have posted : But they must all be running on the same host as the Registry.
After reading again the official rmi tutorial, I found :
For security reasons, an application can only bind, unbind, or rebind remote object references with a registry running on the same host. This restriction prevents a remote client from removing or overwriting any of the entries in a server's registry. A lookup, however, can be requested from any host, local or remote.
This confirm that I wanted to do was not possible.
To override this limitation, do you think it's possible to write a remote object located on the registry host, that propose a method used from other hosts to register their remote objects ? Something like that:
// Interface
public interface recordFromHost extends Remote {
int recordObject(String name, Remote obj) throws RemoteException;
// Implementation of interface
public class recordFromHostImpl extends UnicastRemoteObject implements recordFromHost {
public recordFromHostImpl () throws RemoteException {
super();
public int recordObject(String name, Remote obj) {
int ret=0;
try {
Registry registry = LocateRegistry.getRegistry();
registry.bind(name, obj);
} catch (Exception e) {
System.err.println("recordObject exception:");
e.printStackTrace();
ret = -1;
return ret;
// Server code on registry host
public class Serveur {
public static void main(String args[]) {
// Security manager
if (System.getSecurityManager() == null) {
System.setSecurityManager(new SecurityManager());
// Start of registry
try{
LocateRegistry.createRegistry(1099);
}catch(RemoteException e){
System.exit(1);
try {
String name = "recordFromHost";
recordFromHost myObj = new recordFromHostImpl ();
Registry registry = LocateRegistry.getRegistry();
registry.bind(name, myObj);
} catch (Exception e) {
System.err.println("bind exception:");
e.printStackTrace();
// Code used from a server host to register his remote object in the distant registry
Registry registry = LocateRegistry.getRegistry(registry host adress);
recordFromHost myRecord = (recordFromHost) registry.lookup("recordFromHost");
Create local remote object to register (remoteObject : interface, remoteObjectImpl : implementation)
remoteObject myRemoteObject = new remoteObjectImpl();
// register myRemoteObject
myRecord.recordObject("myRemoteObject", myRemoteObject );
...Finally, a client who want to use myRemoteObject ask the registry for this object, and use it without limitation : the remote object host will not be the registry host.
I hope that you understand what I mean :-)
Manuel
Similar Messages
-
EventListeners for multiple remote object calls
Hi all,
I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
protected function ticketConfigurationStateChangeHandler(event:Event):void
if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
this.dispatchEvent(new Event("ticketConfigurationStateChange"));
protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
Thanks in advance!
~ AmandaHi all,
I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
protected function ticketConfigurationStateChangeHandler(event:Event):void
if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
this.dispatchEvent(new Event("ticketConfigurationStateChange"));
protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
Thanks in advance!
~ Amanda -
How to schedule one report for multiple company code?
How you can schedule reports in BW 3.5? Suppose I need to schedule one report for multiple company code, how can you do that and notify the users? I do not want to send multiple emails to the same user if the report runs for 20 times (for 20 different companies).
points are given for ASAP replies.
Thanks in advance
PeterDear Peter,
Try to restrict the Company Code with those 20 values and schedule.
Regards,
Ramkumar. -
Create confirmation for multiple cost objects PO in SUS
Hi,
Is it possible to create confirmation for multiple cost objects PO ( order type 'MA') in SUS ?
We are going to implement SRM 7.
Thanks & regards,
Afandi-Hi All,
First of all, thanks for your responses..
Right, about the issue, what I explained here was that I am indeed assigning only one cost object: the WBS element. The issue was that even though I am assigning only the WBS element, it was also assigning the cost to the cost center by default. I did some R&D and found the solution to the issue (I was also asked to look for OSS notes but was not satisfied that this issue needs an OSS note to be applied so tried my solution). The issue was in table: T788M (allocate costs to variable account assignment). Here, I created an entry and called it USERGROUP_2 (just a random name) and assigned the variable cost objects (only the WBS and the Cost center) to be displayed. In the next step, I assigned this usergroup to the country in quesion feature (TRVCO). By doing this, I tell the system that only these cost objects are to be considered when an employee wants to assign the cost object. If the system sees that there is no value from the drop down to choose from, it picks up the default cost object (cost center). This was a simple issue that I had to rattle my brains on... but the solution I mention above worked like a hot knife going through butter...
If you guys face this issue, please try this else feel free to get in touch with me on my number below.
Once again, thanks for your responses.
Best regards,
Tanmay Dhingra
+91 880 6666 606 -
Can i install itunes multiple times on one computer for multiple users?
Can i install itunes multiple times on one computer for multiple users?
Like most applications you only need to install it once for it to be available to all users. (That said it is possible to install an application and only make it available to the current user, but that's rarely needed.)
tt2 -
How to create one delivery for multiple sales order
Hi!! Friends,
Can some one explain the steps to be followed in creating one delivery for multiple sales order in SAP SD.
Regards
AKASH
Message was edited by:
AKASH TAMBIHi.,
You can combine different orders in to one delivery ,But for the customer Order combination should be checked in the sales area data of the shipping tab,we can combine orders but the ship to party,Route,Inco terms,Shipping date,shipping point should be same,you can do in T.code VL04 & VL10
REWARD if helpfull
Thanks & Regards
Narayana -
How to create one TO for multiple TRs
Dear All,
how to create one TO for multiple TRs, kindly suggest me
Regards,
baluAs for your question: it is discussed in sAP online help:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
Sorry I misunderstood your question.
The above mentioned solution won't create one single TO from multiple TR.
Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM -
One TPV for multiple Countries
Hi Experts,
Could you pls share experirnce/knowledge around having one TPV for multiple countries together. The scenario is like below:
1. There are mutiple Countries in Central America which are small islands for whom we need to roll out the Travel and Expense Solution.
2. The Company code is only one which contains employees from all these Countries.
Could you tell us how can we do the setup. Should we create one TPV at the company code level. OR should we rather use some other criteria for selecting the TPV maybe at the Personnel area or Personnel Sub Area level.
Your help is much appreciated.
Regards,
VijayHi Kiron,
These things I am aware about too. My real question is if I create only one TPV for the company code and assign the Country of the Company code then what issues would this cause. To name a few pls see below.
1) The domestic Country would always be the Company code Country so would be treated as Domestic Country and show on the Form also as domestic Country even for the employees who are from other Countries.
2) There are setting which SAP allows differently for Domestic and International like per diem, miles cumulations. So these necessarily have to be kept as same even though local laws are different in all these countries as Domestic is only the Company code Country.
So I need detailed analysis of what impact I will have by having only one TPV as against making many TPV like one for each Country by using some other parameter like Personnel area/Personnel sub area etc.
Appreciate your help!
Regards,
Vijay -
One invoice for multiple deliveries
Hi Gurus,
Can any one tell how can i create one invoice for multiple deliveries.
Regards,
Vinodone invoice for multiple delivers we can do in vf04
we can do in vf04
reward points if it is help ful
Thanks
mubeen
Edited by: mahammad mubeen on Mar 5, 2008 10:02 AM -
One cheque for multiple vendors
hi,
is it possible to generate one cheque for multiple vendors ?
cheque will be sent to bank and bank will deposit the amounts into vendor banks.
Can you anybody help me?
regards,
kalyanHi
Yes. you can do it
First transfer the amount to bank and from there bank will transfer the amount to respective vendors through ther banks.
Go for implementing automatic payment programme according to your client reqyuirement. Check TCode F110 which is master transaction for APP. Check at TCode F110-Environment-maintain Config.....
Cheers
Srinivas -
One lockbox for multiple company codes
Is it possible to have one lockbox for multiple company codes?
No, I don't think so. Lockbox is 1:1 for a Company Code.
You configure Lockbox for a Company Code.
You can use one of the 2 available Lockbox user exits (not sure which) to write a piece of code that searches invoices against the customer posted to different company codes. You will have to have the intercompany setups.
You may find an OSS notes for intercompany clearing.
Hope this helps! -
One delivery for multiple STO's
Folks,
I have multiple STO's for the same ship-to (plant). Items due for shipping would need to be combined into 1 delivery and not 1 delivery per STO.
Would this be possible? And if yes, how?
Thanks,
MZHi ,
Yes , We can create one delivery for multiple PO's .
Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
Select the STO's and click on background tab. Then it creates the log
Select the item again and press shift +F4
It will gives the log inforamation for the STO's and select the item and press on documents tab.
It will creates only one Delivery for all the STO's.
Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
then press on " post goods issue "
Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
Only one document will be posted for all the STO's
Regards,
Usha. -
One OCS for multiple Company´s ???
Hello,
It´s possible to install multiple "areas" on one OCS? We want to provide a OCS for our customers. They shouldn´t see other caledars or adress-book. Only ther own "area".
KR
MathiasHi ,
Yes , We can create one delivery for multiple PO's .
Go to VL10D tcode --> Purchase order tab -- > enter the STO's and press execute
Select the STO's and click on background tab. Then it creates the log
Select the item again and press shift +F4
It will gives the log inforamation for the STO's and select the item and press on documents tab.
It will creates only one Delivery for all the STO's.
Now go to VL02N tcode and enter the delivery number then goto picking tab then enter picking qnty = delivery qnty
then press on " post goods issue "
Now go to MIGO to do the goods reciept then enter all the STO's here and check the item then save .
Only one document will be posted for all the STO's
Regards,
Usha. -
One inventory for multiple ORACLE_HOMEs ?
RDBMS version:11.2, 10.2
Platform : AIX
In one server , we are going to install multiple ORACLE_HOMEs (both 10.2 and 11.2). I have been asked to configure separate inventory for each ORACLE_HOME (each inventory within its own ORACLE_HOME). But i came across OTN posts which advices one inventory for all ORACLE_HOMEs .
1. How can i create 1 inventory for all ORACLE_HOMEs . Is it by specifying an inventory directory outside all ORACLE_HOMEs in OUI when you do the very first installation ?
2. Which one is more professional : one inventory for each ORACLE_HOME or one inventory for all ORACLE_HOMEs ?When installing Oracle software for the first time, the OUI will create a "global" inventory under $ORACLE_BASE.
Depending on you OS, to locate this inventory look at "/etc/oraInst.loc" (AIX+Others) or "/var/opt/oracle/oraInst.loc" (Linux+others).
You can add/remove Oracle homes from this inventory by using OUI or command line ./runInstaller.
Each Oracle home may also contain an "$ORACLE_HOME/oraInst.loc" file.
HTH
PS: +"One inventory for multiple ORACLE_HOME is a bad practice"+ -- Untrue. Perhaps only for those that don't know how to use it.
:p -
Shall I use one datasource for multiple connection pool?
Hi,
I need to clarrify that, Shall I use one Datasource for multiple connection pool in distributed transaction?
Thanks with regards
SureshNo. If its transactions across multiple databases you should use different datasources.
Maybe you are looking for
-
1. Is there a way to import large XML files into HANA efficiently? 2. Will it process it node by node or the entire file at a time? 3. Are there any data services provided to do this? This for a project use case i also have an requirement to process
-
I can get video on airplay anytime but i cannot get audio all the time. in sound output i select airplay but it only reverts back to internal speakers. same if i try earbuds. the only way to fix it is to restart computer. what do i do to fix it,
-
Messages in status u0094To Be Deliveredu0094
Ive got 13870 messages in status To Be Delivered in my Adapter Engine. Im using the JMS adapter and the detailed view in rwb it says that JMS message delivered to XI successfully. In the undetailed view the status says To Be Delivered and Im
-
had to restore ipod now my apps wont transfer back to ipod,all content shows in my itunes Ideas anyone?
-
Relation between COEP-COBK-COSS-COSP
Hi Experts, I am working on Archiving Object for COPA2_XXXX and job successfully executed with information COEP -- 5089 Records COBK -- 15765 Records COSP -- 20,765 Records will get archived. I would like to know the relation between COEP, COBK, COS