Sharing of Objects across applications
Hi,
Is it possible to reference an object initialized by another application?
For example, I have a Logger object that I instantiated from App1. Then I decided to come up with App2. I want to use in App2, the same logger innstance I am using in App1. Of course, assuming that App1 is running. If not, App2 shall create the Logger object and when App1 is run, App1 now shall reference the Logger object App2 created.
I guess what I am pointing out here is how sharing of objects across application can happen in Java.
There is no direct support for this in JVM - you cannot reference object created by JVM#1 from JVM#2 playing fair game =)
If you need 100% pure JAVA solution the only way to do it is to use
networking, either RMI (as it was already suggested) or coding your own TCP protocol. Main drawback - it'll be slow.
For faster access you'll need to use JNI and some sort of interprocess communication method - shared memory/messages/etc. This might be faster (there will be no TCP/IP marshaling) but it'll be more combersome to support it for different OS.
Similar Messages
-
Sharing view objects across application modules
Our application uses multiple application modules because of the complex functional requirements. We have come across sharing view objects among application modules. I want to understand the best practice, sharing view object instances across application modules. These view objects can be based on Entity Objects also.
Please let me know if there any suggestions.
Thanks,
SatyaHi Satya,
You won't be able to share view objects between application modules, but what you can do is to share the bind variables between application modules, if each of your module contains the 'common' view object.
A solution for sharing data between application modules is provided on this blog: http://andrejusb.blogspot.co.uk/2012/05/solution-for-sharing-global-user-data.html
You can use this approach to share bind variables between AM's and re-query the same data.
Hope this helps,
Florin Marcus
www.redsamuraiconsulting.com -
Sharing Functions Across Applications(containers)
Can anyone help with a final word on sharing functions between
applications?
I have read many conflicting accounts on the ability in 6i to share
objects across application systems through the use of common functions,
global process steps, referencing, or shortcuts. Best case scenario, I
would like to share functions across containers, include these functions
in multiple process models, and be able to create process flows between
functions. Is this possible? Is the bug 1787721 which doesn't allow
common functions across applications a true bug, or is this the new
functionality in 6i?
Thanks for the help.Hi Cynthia,
If I understood, you want to know what the steps you need to
follow to share a object, but before it, you need to know a
basic new characteristc at the Designer6i.
The basic characteristc that you must know is that you don't
share objects to application from other one anymore, you create
a reference to other objects in another Application from other
one that already exists. Althoug you must pay attention that you
can create references to objects between applications when they
are in the same Workarea.
It's too simple.
Put the cursor on the Application that want to create reference
from a previous existing object. Choose the option "Create
Reference". Choose the object that you want to reference (Use
the filter if you want) and than it will be work.
I hope that I had to help you.
Regards,
Marcos Vinmcius B. Xavier
E-mail : [email protected] -
SSO - session time out while navigating across applications
Hi,
Problem statement
Handling session time out while navigating across applications involving SSO
Current approach
Application 1
1. Create session1.
2. URL rewrite the sesssion ID1 into the link refering to App2.
Application 2
1. Create session2
2. Get the session Id of App1.
3. send the session ID of App1 in the header
4. Invalidate the session2
Application 1
Get the ID from request and invoke getSession.
I'm having a very large session timeout at App1.
Is there a better approach. Ex: Having global session which is shared across multiple
webapplications."madhav" <[email protected]> wrote:
>
Hi,
Problem statement
Handling session time out while navigating across applications involving
SSO
Current approach
Application 1
1. Create session1.
2. URL rewrite the sesssion ID1 into the link refering to App2.
Application 2
1. Create session2
2. Get the session Id of App1.
3. send the session ID of App1 in the header
4. Invalidate the session2
Application 1
Get the ID from request and invoke getSession.
I'm having a very large session timeout at App1.
Is there a better approach. Ex: Having global session which is shared
across multiple
webapplications.
I have similiar problems in my system. What do you do if the session 1 times out
during ongoing operations in App 2 ?
Thanks
Kejuan -
Select multiple objects across pages (cs3)
Hi
Is it possible to select multiple objects across pages? All objects have an object style attache and have to be moved 0,7 mm to up. Maybe with a script?
thanx
SOK, the move part was much easier than I had anticipated. I think I was thinking of moving graphics inside a frame (or did they just make it a lot easier in CS3?).
At any rate, this one does every page in the document. Just change "test" and the move amount to your preferences...
tell application "Adobe InDesign CS3"
tell active document
set myObjectStyle to object style "test"
repeat with i from 1 to count every page
tell page i
select (every item of all page items whose applied object style = myObjectStyle)
end tell
move selection by {0, "-0p7"}
end repeat
end tell
end tell -
Use Shared Local Object with Javascript
Hi to everybody!
I have to make a javascript component that have to take some
data from a Shared Local Object;What I have to do in order to use
the Shared Local Object in javascript? It maybe that I have to
create an ActionScript file in which I use the Shared Local Object
and than import that file in Js?
Furthermore, do you know if it possible to lanch a waba
application (is a java application for pocket pc and pda ) from a
flash application?
And if yes, What I hava to do?
ThanksHave you downloaded and read the Acrobat SDK yet? That's your starting point.
-
HttpSession across application in the cluster
I have two question:
Can I deploy two webapplication in the cluster, one that is clustered and
the second one no clustered?
Assuming I can do this, can I keep a HttpSession across these two
applications?
Christian Corcino
Sharing a session across webapp's is prohibited by the servlet spec. You
could store it in a db and have the other web app access it.
Christian Corcino wrote:
> I have two question:
> Can I deploy two webapplication in the cluster, one that is clustered and
> the second one no clustered?
> Assuming I can do this, can I keep a HttpSession across these two
> applications?
>
> Christian Corcino
Rajesh Mirchandani
Developer Relations Engineer
BEA Support
-
Read only access for objects in application designer
I want to apply read only access to all the objects in application designer. I would like to know how we can do this.
Jayaprakash TedlaJayaprakash,
On 8.48 :
1. Create a PERMISSION LIST
1.1 leave empty the navigator homepage
1.2 leave unchecked Can Start Application Server? and Allow Password to be Emailed?
1.3 On Pages tab, leave it empty
1.4 On PeopleTools tab, check Application Designer Access, then click on Definition Permissions, Tools Permissions Miscellaneous and Permissions, and put there the rights as well as you want. You can put Read Only on all component in one shot by clicking on the button, or one by one by choosing in the listbox for each type of components.
1.5 leave all other tab blank
2. Create a ROLE, and add the permission list created on step 1.
3. Create the user, and give the role created on step 2.
4. Open Application Designer, connect there with the new user, and enjoy on read-only access.
Hope this help,
Nicolas. -
Can't see EJB objects in Application Navigator after migration
Hello
I can't see any objects in Application Navigator after migration from previous version of JDeveloper (9.2.0.5), in System Navigator view I can see all sources. Has somebody any idea what the reason is?
TomIn the application navigator you should see one node per EJB, when you stand on it you'll see the various source files in the structure window.
-
Question on use of shared memory objects during CIF executions
We have a CIF that runs in background via program RIMODACT that is invoked from our external job scheduler. (The schedulere kicks off a job - call it CIFJOB - and the first step of this job executes RIMODACT.)
During the execution of RIMODACT, we call a BAdI (an implementation of SMOD_APOCF005.)
In the method of this BAdI, we load some data into a shared memory object each time the BAdI is called. (We create this shared memory object the first time the BAdI is called.)
After program RIMODACT finishes, the second step of CIFJOB calls a wrapper program that calls two APO BAPI's.
Will the shared memory object be available to these BAPIs?
Reason I'm asking is that the BAPIs execute on the APO app server, but the shared memory object was created in a CIF exit called from a program executing on the ECC server (RIMODACT).
Edited by: David Halitsky on Feb 20, 2008 3:56 PMI know what you're saying, but it doesn't apply in this case (I think.)
The critical point is that we can tie the batch job to one ECC app server. In the first step of this job (the one that executes RIMODACT to do the CIF), we build the itab as an attribute of the "root" shared memory object class.
In the second step of the batch job, we attach to the root class we built in the first step, extract some data from it, and pass these data to a BAPI that we call on the APO server. (This is what I meant by a "true" RFC - the APO BAPI on the APO server is being called from a program on the ECC server.)
So the APO BAPI never needs access to the ECC shared memory object - it gets its data passed in from a program on the ECC server that does have access to the shared memory object.
Restated this way, is the solution correct ??? -
Enhanced protected mode and global named shared memory object
Good morning.
I've written a bho that do data exchange with a system service. The service creates named shared memory objects in the Global namespace. Outside appcontainer IE 11 sandboxed everything works fine lowering objects integrity level. Inside the sandboxed environment
OpenFileMappingW seems to return a valid handle but the calls to MapViewOfFile always gives access denied. What i'm missing? Thank you.
Service code for security descriptor creation:
if (InitializeSecurityDescriptor(pSA->lpSecurityDescriptor, SECURITY_DESCRIPTOR_REVISION))
if (ConvertStringSecurityDescriptorToSecurityDescriptorW(L"D:P(A;;GA;;;WD)(A;;GA;;;AC)", SDDL_REVISION_1, &pSecDesc, NULL) == TRUE)//
BOOL fAclPresent = FALSE;
BOOL fAclDefaulted = FALSE;
if (GetSecurityDescriptorDacl(pSecDesc, &fAclPresent, &pDacl, &fAclDefaulted) == TRUE)
bRetval = SetSecurityDescriptorDacl(pSA->lpSecurityDescriptor, TRUE, pDacl, FALSE);
if (bRetVal ==TRUE && ConvertStringSecurityDescriptorToSecurityDescriptorW(L"S:(ML;;NW;;;LW)", SDDL_REVISION_1, &pSecDesc, NULL) == TRUE)
BOOL fAclPresent = FALSE;
BOOL fAclDefaulted = FALSE;
if (GetSecurityDescriptorSacl(pSecDesc, &fAclPresent, &pSacl, &fAclDefaulted) == TRUE)
bRetval = SetSecurityDescriptorSacl(pSA->lpSecurityDescriptor, TRUE, pSacl, FALSE);
OutputDebugStringW(L"SACL ok.");
return bRetval;
BHO code
LPMEMORYBUFFER OpenDataChannel(HANDLE *hQueue)
LPMEMORYBUFFER lp = NULL;
WCHAR data[512] = { 0 };
for (int a = 0;; a++)
if(iestatus==FALSE)StringCchPrintfW(data, 512,L"Global\\UrlfilterServiceIE.%d", a);//NOT in EPM
else StringCchPrintfW(data, 512, L"%s\\Global\\UrlfilterServiceIE.%d",appcontainernamedobjectpath, a);//in EPM
*hQueue = OpenFileMappingW(FILE_MAP_ALL_ACCESS, TRUE, data);//FILE_MAP_ALL_ACCESS
if (*hQueue != NULL)
//file mappato esistente
lp = (LPMEMORYBUFFER)MapViewOfFile(*hQueue, FILE_MAP_ALL_ACCESS, 0, 0, sizeof(MEMORYBUFFER));//FILE_MAP_ALL_ACCESS
if (lp != NULL)Ciao Ritchie, thanks for coming here. ;-)
I call (only) OpenFileMapping and MapViewOfFile inside my code and i get access denied at the first try. As i stated before this happens when IE11 is working inside EPM 32/64bit mode, outside EPM it works as it should. However i decided to take a different
approach to do IPC, because, you want it or not, the service is up and running as SYSTEM... Still i'm really interested about two points:
1) can i use global kernel objects in EPM mode?
2) if one is "yes, you can": what's wrong with my code? The security descriptor? Something else?
Thanks all. -
Deployment order across applications
I have a web app that implements ServletContextListener. This app on deployment
looks for an ejb on another app. How do I tell weblogic to deploy the web app
before the ejb app. These two have to be different applications. I cannot combine
them into the same ear. I am not able to find ways to identify deployment order
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatly appreciated.
Thanks in advance.We don't want the dependency between the EAR application and this web app. We also
plan to deploy this web app on multiple boxes that will require only a servlet
container and will not require an app server. Also the EAR app will be deployed
on multiple boxes and we do not want the extra overhead of this web app. Hope
this answers your question.
Do you know of any alternative approach to this problem since I do not see having
deployment ordering across apps in weblogic.
Thanks.
Gajendra Sanil
"Dimitri I. Rakitine" <[email protected]> wrote:
I'm curious, why you cannot deploy your EJBs and WAR in the same EAR?
Deploying them separately will result in a very serious performance
penalty because local RMI optimization will not be used.
Gajendra Sanil <[email protected]> wrote:
I have a web app that implements ServletContextListener. This app ondeployment
looks for an ejb on another app. How do I tell weblogic to deploy theweb app
before the ejb app. These two have to be different applications. Icannot combine
them into the same ear. I am not able to find ways to identify deploymentorder
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatlyappreciated.
Thanks in advance.--
Dimitri -
Pass these documents a object ID, application and output type..plz help
Hi frnds,
To select all the billing documents from from the document flow table i have
this peice of code----
SELECT VBELN FROM VBFA INTO CORRESPONDING FIELDS OF TABLE IT_VBFA
FOR ALL ENTRIES IN ITAB_VBAK WHERE VBELN = ITAB_VBAK-VBELN
AND VBTYP_N = 'C' OR VBTYP_N = 'G'.
i want to ---Pad two zerou2019s before the document and pass these documents a object ID,
application and output type.
Get the object ID, processing status for each billing document number and
display in the pop up window for the user.
i hope to use in NAST TABLE.
how to code this...
thnx
daniel
<LOCKED BY MODERATOR - URGENT, PLEASE HELP OR SIMILAR ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Aug 18, 2008 1:14 PMUse
declare the field b_vbeln of length u want adding length for 2 '0' also.
ex:- Vbeln length = 10
b_vbeln type i length 12.
b_vbeln = vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = b_vbeln
IMPORTING
OUTPUT = b_vbeln.
U will get b_vbeln with 2 '0' or always the value be of 12 length. -
Objects of application scope and clustering.
I understand that weblogic 6.1 replicates session data to a secondary server in a
cluster. This replication should include objects declared with <jsp:useBean ...
scope="session"/> as well as objects that are explicitly maintained in the session
with setAttribute().
However, what about objects with application scope? Are they replicated to a secondary
server when a cluster is in use?
Thanks,
-Dave.
David Vazquez <[email protected]> wrote:
> I understand that weblogic 6.1 replicates session data to a secondary server in a
> cluster. This replication should include objects declared with <jsp:useBean ...
> scope="session"/> as well as objects that are explicitly maintained in the session
> with setAttribute().
> However, what about objects with application scope? Are they replicated to a secondary
> server when a cluster is in use?
No, they are not replicated in the cluster. To implement replication you can use JavaGroups:
http://sourceforge.net/projects/javagroups/ or Cameron's Coherence product:
http://www.tangosol.com/products-clustering.jsp for example.
> Thanks,
> -Dave.
Dimitri
-
Session sharing among different web application under Oracle AS
Hi,
I'm looking for some information on web application session information sharing under Oracle AS10.1.3.
any pointers are highly appreciated.
Thanks,
Narasimha.Hello,
I see that you have duplicate your post in different forums, Session sharing among different web application under Oracle AS10.1.3.
Regards
Tugdual Grall
Maybe you are looking for
-
Installing more sdram on MacBook Pro 13" i5 (model early 2011)
Hi . I'd like to know if I can install 2x8 Go of sdram on my MacBook Pro 13" i5 (april 2011) or if 2x4 Go is the maximum recognize by my model? Thanks for your answer
-
Get connection with a database
Hi all. I have here on my notebook an oracle and access database. For the access database i downloaded a driver (from easysoft), for the oracle database there's no need to download a driver. For the access database I added the classes in the classpat
-
How to build family tree using flex ?
http://hgc46123.chinaw3.com/haha.jpg I want to build a panda family tree like http://www.myheritage.com/ for the data is large,so i want to use dynamic picture loading like google map. but i don't know lean what ? i hava java programing experience
-
Games don't show on I-Pod Classic Menu
I just purchased an I-Pod Classic 80gb. I then downloaded Golf, Bowling, Pool and Bejewled. None of these games show up on the menu. I have tried to import them by file and by folder. Nothing seems to help. Does anyone have a fix for this or sis I ju
-
CR 2008 在使用sap的table,cluster,functions是报错
软件环境:CR 2008,BusinessObjects_SAP_Integration_Kit_XI3_win32_x86,sapecc6.0 BW7.0 客户端 当我打开CR后进入data expert,数据源选择sap table,cluster,functions后,登陆进入sap系统,当我点击其中任意一个u2018+u2019时,报错 u2018database connector error:'function module''/CRYSTAL/GET_FUNCAREA_CATALO