Multiple web apps sharing same cache in a single JVM ?
Is it possible to share cache across multiple web apps running in the same app server (multiple web apps, single JVM) ?
Thanks for any info.
Hi Bob,
Cluster membership is scoped to the ClassLoader, so if your application server provides a ClassLoader-per-application, this will work fine.
This is supported for both Coherence (NamedCaches) and Coherence*Web (HTTP sessions).
Jon Purdy
Tangosol, Inc.
Similar Messages
-
Multiple web-app sharing the same database.
hi experts,
If I have several websites running on the same server. Most of the are sub-domains of the same domain, they share the same database, but each sub-domain will have their own web-apps(This also means that they are running on a different java virtual machine, right? ). My question is that how can I make them communicate with each other. Also, will there be any conflict with the database insert/update issues, and How do I solve that?
For example, if one user is already logon from "tips.mydomain.com", then when the users goes to another sub-domain, say "java.mydomain.com", he/she doesn't need to re-login again.
thanks.Well yes, having databases accessed by multiple users simultaneously is an issue that many many developers have had to face. But the answer to "How do I solve that" doesn't fit in this little box or in the limited time that people have available to answer questions here. It's an extremely complex issue about which entire books have been written.
As to the bit about the subdomains, it is possible to map them to the same web server, as far as I know, but that's a web configuration issue and nothing to do with Java programming. -
Multiple web services sharing same session?
I was wondering if anyone has ever implemented multiple web services for an application that allowed the web services to share the same session?
Furthermore, I was wondering if support might be included/buried in the WSDL spec. somewhere?There are a number of standards emerging to support long-running conversations among Web services as well as Web service composition. Can you expand on what you're trying to achieve?
Doron.
Collaxa, Inc. -
Implementing single sign on across multiple web apps
Hi
I was wondering if somebody could help me. I need to implement single sign on
for multiple web apps deployed in separate WARs in a single EAR file. I need
to authenticate against an LDAP server and ensure that the user only has to sign
on once per user session even if the user navigates between web apps. The weblogic
docs only seem to go so far, i.e. "Single sign on works if each web app uses the
same cookie" etc. So I see that, apart from buying WebLogic Enterprise Security
there are only two ways of doing this:
1. Implement single sign on.
2. Create my own security realm with my own authenticator implementations.
So my questions are:
1. We don't want to effect the normal weblogic user/passwords used to access the
WLS console but need to have single sign on. Should we implement single sign on
(option 1,above) or create our own realm?
2. Can somebody point me to somewhere on the web/in the the WLS documentation
that shows me how to implement single sign on using session cookies?
TIA
Mik"Mik Quinlan" <[email protected]> wrote in message
news:[email protected]..
>
Hi
I was wondering if somebody could help me. I need to implement singlesign on
for multiple web apps deployed in separate WARs in a single EAR file. Ineed
to authenticate against an LDAP server and ensure that the user only hasto sign
on once per user session even if the user navigates between web apps. Theweblogic
docs only seem to go so far, i.e. "Single sign on works if each web appuses the
same cookie" etc. So I see that, apart from buying WebLogic EnterpriseSecurity
there are only two ways of doing this:
1. Implement single sign on.
2. Create my own security realm with my own authenticator implementations.
So my questions are:
1. We don't want to effect the normal weblogic user/passwords used toaccess the
WLS console but need to have single sign on. Should we implement singlesign on
(option 1,above) or create our own realm?
2. Can somebody point me to somewhere on the web/in the the WLSdocumentation
that shows me how to implement single sign on using session cookies?
http://e-docs.bea.com/wls/docs81/security/thin_client.html#1039551
That also has a pointer to:
For more information, see session-descriptor in Assembling and Configuring
Web Applications. -
Forward to different web-app on same server
I can forward a request from a servlet to another web-app on same server, but the authenticated principal is not propagated from original servlet to forwarded servlet. I'm using the requestDispatcher.forward(req,resp) method. It seems that if you forward to a web-app within same EAR or server than the user's identifty should be propagated.
With tomcat you can use single sign on .
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%20Sign%20On
regards Dietmar -
Insert multiple rows into a same table from a single record
Hi All,
I need to insert multiple rows into a same table from a single record. Here is what I am trying to do and I need your expertise. I am using Oracle 11g
DataFile
1,"1001,2001,3001,4001"
2,"1002,2002,3002,4002"
The data needs to be loaded as
Field1 Field2
1 1001
1 2001
1 3001
1 4001
2 1002
2 2002
2 3002
2 4002
ThanksYou could use SQL*Loader to load the data into a staging table with a varray column, then use a SQL insert statement to distribute it to the destination table, as demonstrated below.
SCOTT@orcl> host type test.dat
1,"1001,2001,3001,4001"
2,"1002,2002,3002,4002"
SCOTT@orcl> host type test.ctl
load data
infile test.dat
into table staging
fields terminated by ','
( field1
, numbers varray enclosed by '"' and '"' (x))
SCOTT@orcl> create table staging
2 (field1 number,
3 numbers sys.odcinumberlist)
4 /
Table created.
SCOTT@orcl> host sqlldr scott/tiger control=test.ctl log=test.log
SQL*Loader: Release 11.2.0.1.0 - Production on Wed Dec 18 21:48:09 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 2
SCOTT@orcl> column numbers format a60
SCOTT@orcl> select * from staging
2 /
FIELD1 NUMBERS
1 ODCINUMBERLIST(1001, 2001, 3001, 4001)
2 ODCINUMBERLIST(1002, 2002, 3002, 4002)
2 rows selected.
SCOTT@orcl> create table destination
2 (field1 number,
3 field2 number)
4 /
Table created.
SCOTT@orcl> insert into destination
2 select s.field1, t.column_value
3 from staging s, table (s.numbers) t
4 /
8 rows created.
SCOTT@orcl> select * from destination
2 /
FIELD1 FIELD2
1 1001
1 2001
1 3001
1 4001
2 1002
2 2002
2 3002
2 4002
8 rows selected. -
Can I use same connection pool on multiple web app?
Hi,
I have several web applications on my domain, and they all share the same database.
I am using TOMCAT 4, and I've wrote my own pool, but the problem is that there are also some other domains on the server, so I can't put my connection pool in the tomcat's share or common directory.
Right now, I am thinking of switching to use tomcat's datasource implementation. How do I configure the datasource so that all my web apps will use the same connection pool?
Thanks!There's no actual webapp configuration when using Datasources... your Java code accesses the Datasource through JNDI:
Connection con = null;
String dataSourceName = "someDataSource"
try {
Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
Context ctx = new InitialContext(parms);
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup(dataSourceName);
con = ds.getConnection();
} catch (NamingException e) {
throw new SQLException("NamingException - " + e.toString());
}If you want, you can keep the DataSource name in the application's ServletContext, so that you don't hard code it into your Java code. -
Multiple jre versions using same cache location
Hi,
i searched the web but couldnt find an answer.
I have a Terminal Server deployment with various installed jre Versions (1.6x and 1.7x) on the same Server as well as on different Server Silo Setups.
But for all Servers i configured the Cache Location to H:\Java-Cache (Homefolder of the user) in the deployment.properties file.
1. are there any Problems to expect when using the same Cache Folder for many different jre Versions (jre 6/7/8) ? Any knows issues about that ?
2. is it supported to share the same cache Location (for example D:\java-cache) for many users ? i cannot find ony official KB or Oracle Note about this.
There are a few Blog Article out there which describe to configure the Cache Location on a terminal Server to a local location like D:\java-cache shared by
many users. Does it depent on the Java webstart application if tha works well ?
Thanks a lot,
MarcusHi Tyler,
In my opinion, you could go ahead with first option - have multiple JRE's and maintain the environment variables accordingly.
This should not be a problem as the envrionment variable would take care of which JRE is used. Also as you have only another ABAP system on the same server, the other older JRE would only be required during the SAPInst operations. Non-existence of a Java system makes things simpler here
Regards,
Srikishan -
Lync 2013 Web App Sharing not working.
We are having a problem with Lync Web App 2013. Our external customers can open the meeting link and join the meeting without a problem. Once they are in the meeting an internal user begins the presentation by sharing his screen. The Lync
Web App just says "Loading..." for the external customer. The internal presenter sees this external customer continually change from "in collaboration session" to "not in collaboration session". The external customer
is never actually shown the screen share.
Other notes:
-->We tried this from an external wireless hotspot and it worked fine, thus, it seems something in this customer's company firewall that is blocking it.
-->We also tried sharing a powerpoint (we have a functional office web apps server), which produced the same results.
-->When we used the Lync 2010 Web App (before we upgraded to 2013), everything seemed to work fine, thus I am concluding that the 2013 Lync Web App (since it has more capabilities) is somehow trying to use more ports or something.
-->Internally, the Lync Web app works fine.
So, I assume something in the customer's company's firewall is blocking some access to Lync 2013 Web App. My question is: what needs to be enabled both on-premise and at the customer's side to access Lync 2013 Web App screen sharing and if the
company (for security reasons) doesn't want to open extra ports, is there some work around to force Lync Web App to use port 443 for screen sharing.
Thanks,
AdamThe ports 1024-65535 * are used for application sharing.
You can configure the port ranges for Lync clients.
http://technet.microsoft.com/en-us/library/jj204760.aspx
You can’t use 443 as port 443 is used for HTTPs.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
I have 3 applications on App. Server 8.1 (running on JDK 1.5)
App-A handles login
App-B and App-C are functions that are accessible after login is validated.
It works fine with App. Server 6.5 (JDK 1.3)
But the distributed session cannot be shared in App. Server 8.1 (JDK 1.5)
So App-A handles sign on and stores the user's Login Name on the session.
App-B and App-C read the user's login name from the session object and grant access to different modules.
1. Starting App-A and perform login
2. Starting App-B from App-A (it is linked there)
3. Starting App-C from App-A (it is linked there)
In step 1, a new session is created for the user, an attribute ("LoginName") is put in the session - ie. using HttpSession.setAttribute()
In step 2, the program checks for attribute "LoginName" from the session object - ie. using HttpSession.getAttribute()
If not found, redirect to login; if found, then continue with App-B
In step 3, same as in step 2 above.
It works fine with App. Server 6.5 but problem occurs in step 2 and 3.
web.xml of App-A, App-B and App-C:
<i>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>App-A</display-name>
<distributable/>
</i>
sun-web.xml of App-A, App-B and App-C
<i>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app>
<session-config>
<session-manager persistence-type="memory">
<manager-properties>
<property name="persistenceFrequency" value="web-method"/>
</manager-properties>
<store-properties>
<property name="persistenceScope" value="session"/>
</store-properties>
</session-manager>
</session-config>
</i>Distributed sessions has nothing to do with different web applications. The concept is about distributing load for the same application between several appserver instances running on the same box(different jvm) or on some other box in the network.
What you used with iAS 6.5 is not available in 8.1 because sharing sessions between web apps is forbidden by the servlet spec. You should consider repackaging your apps. into a single web app. or using other way of signing/verifying user identity(check Sun Access Manager for example).
Have a look at this thread as well: http://swforum.sun.com/jive/thread.jspa?threadID=100931 -
Creating multiple web apps in 443 port number
hi all,
would like to know the speciality of 443 port number.can we create multiple web applns on this ?
assume i have a web app running on 443 called
https://myportal.company.com [ intranet ] can i create a another web app on this same port, like
https://mysites.company.com [ its a mysite web appln ] and can we create an all different, Internet web appln on this same port ?
if yes, what are the steps to achieve this.
and curious to know why MSFT has designed like this.
help is appreciated!Any Web App you create must be differentiated from other Web Apps in one of 3 ways. It can use a custom IP address, a custom port number or a host header. In your example you are already using the same port number and I assume you aren't using
different IP addresses since that requires a fair amount of behind the scenes work. So that would leave creating the two web apps with different host headers. The problem with this approach is that Apps in SharePoint require at least one web app
in the farm with NO host header. So if https://myportal.company.com was created using no host header then https://mysites.company.com must be created using a host header. Any additional Web apps using 443 will also need to be created with host
headers. Apps will then all run off the MyPortal web app. You can specify the host header for the web app when creating the web app. Everything else is normal.
To answer your question of why it is designed this way. This is the way IIS server works and really has nothing to do with SharePoint.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How can I restrict multiple web app item submission by a user
I have a webapp setup. I do want users to submitted web app items multiple times. How can I achieve this Kindly help. I know I only achieve this with js. Can someone kindly off.
Hi Chad, am having challenges getting this to work: Kindly assist
This is my setup:
I used the alternate list layout. This is how it looks
This is how my form page with the module looks before running:
This is how the spit out looks when I checked:
This is the source code after running:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var userSubmit = $('.userItems').data('items').replace(/\s+/g, '');
if (userSubmit >= 1) {
$('.form').remove();
</script>
<style>
.hide {
display: none;
</style>
</head>
<body>
<div class="hide userItems" data-items="1
2
3
"></div>
<div class="form">
<form name="catcustomcontentform17626" onsubmit="return checkWholeForm17626(this)" enctype="multipart/form-data" method="post" action="/CustomContentProcess.aspx?CCID=20247&OID=13466153&OTYPE=1">
<table class="webform" cellspacing="0" cellpadding="2" border="0">
<tbody>
<tr>
<td><label for="ItemName">Item Name</label><br />
<input class="cat_textbox_small" type="text" name="ItemName" id="ItemName" maxlength="255" /> •</td>
</tr>
<tr>
<td><label for="ItemDescription">Item Description</label><br />
<textarea name="ItemDescription" id="ItemDescription" cols="10" rows="4" class="cat_listbox"></textarea></td>
</tr>
<tr>
<td><input class="cat_button" type="submit" value="Submit" id="catcustomcontentbutton" /></td>
</tr>
</tbody>
</table>
<script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
<script type="text/javascript">
//<![CDATA[
var submitcount17626 = 0;function checkWholeForm17626(theForm){var why = "";if (theForm.ItemName) why += isEmpty(theForm.ItemName.value, "Item Name");if (why != ""){alert(why);return false;}if(submitcount17626 == 0){submitcount17626++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
//]]>
</script>
</form>
</div> -
Installing multiple web/app servers
Hi all.
Hope someone can help out with this (BPC 5.1)
We have a live environment with 2 SQL boxes (clustered), plus 3 Web/App Servers which are all configured to go through a load-balancer.
I'm trying to setup a DR set of servers, and have built the clustered SQL boxes, plus 1 Web/App server.
Trouble is that I don't yet have a working load balancer on that site.
My questions are:
Do I need the load balancer setup first, then enter the LB address in the "Reporting Server", "Web Server" and "App Server" boxes during BPC install?
Would the lack of a load balancer prevent me from setting up more than one Web/App server, as the 2nd one just hangs about 3/4 of the way through the BPC installation and tells me nothing.
Finally, if the answer to the first question is "yes", will I have to uninstall/re-install BPC, or can I just change the settings in Server Options?
Thanks
CraigThanks Carlos
I've now sorted the problem.
For anyone else attempting the same thing:
The load-balancer MUST be referred to by DNS name (e.g. NOT by IP address)
The load-balancer name is entered in the following fields in Server Option on the App Servers:
Reporting Services Server Name
Reporting Services Server External Name
Application Server External Name
Application Server Virtual Name
Web Server External Name
Web Server Virtual Name
Then, once you hit Update on your second App server, you wind up with over 50 rows in the tblServerInfo table (within the AppServer database).
This needs to be backed up, all rows deleted, then go into Server Options on one of your App servers and hit "Update" again.
That way, you get just the normal 32 rows in the table again.
Hope that helps (and makes some kind of sense)
Craig
Edited by: Craig Aucott on Jun 30, 2009 11:18 AM -
Weblogic 10.1 web apps merge log4j log files into single log file
Hi
I have deployed multiple web applications on my weblogic (v 10.1 - JDK 1.5.0_12). I am using log4j-1.2.13.jar in a four different web applications.
The location for the files are - WEB-INF\lib\log4j-1.3.13.jar and WEB-INF\classes\log4j.properties
When I deployed all the four webapps in weblogic - we found that all of the apps started writing their logs into the logfile which is configured in the log4j of the first web apps log file. The "first web app" is the web app which is the first app deployed in weblogic.
I have deployed all the four webapps in Tomcat and found that four separate log files get created. Hence, this problem is unique to Weblogic.
Any suggestions on what the problem could be? I have been battling with this issue for over a week- and have exhausted all ideas.
Thank you,
Ronak S.Hi ,
Read all about your issue here :
Weblogic 10.0 and Log4j classpath problem
Issue is that the Weblogic system classloader includes log4J already..
Use "Filtering ClassLoader" a mechanism to configure deployment descriptors to explicitly specify that certain packages should always be loaded from the application, rather than being loaded by the system classloader.
see: http://e-docs.bea.com/wls/docs100/programming/classloading.html#wp1097187
Example:
Add following to your META-INF/weblogic-application.xml
<prefer-application-packages>
<package-name>org.apache.log4j.*</package-name>
</prefer-application-packages>
Exclude all library packages used within your applcation to have full control over what is used by the application.
regards,
Kris -
Hi, I have two applications running on Windows 7 Home premium which both use port 443 - Battlefield 4 and WD MyCloud.
With the remote access enabled on the Mycloud, battlefield4 loses server connectivity after a period, typically 30 minutes or so.
Turning off the Mycloud remote facility removes the battlefield4 server disconnects - but this is not an ideal fix.
I'm new to port forwarding but did attempt to forward port 43 to 491 (random choice on my part). This port config on the BT Router I named bf4. However this did not work and I wonder how the router knows I only want the Battlefied4 forwarded and not
WD Mycloud. Am i going about this the right way?
Any advice gratefully received.
Regards
GrahamHi,
Skype might use port 443, but all depends on your configuration, you can refer to this guide to change the settings
Which ports need to be open to use Skype for Windows desktop?
https://support.skype.com/en/faq/FA148/which-ports-need-to-be-open-to-use-skype-for-windows-desktop
1) can several running applications use the same port e.g. Skype, BF4 and MyCloud?
Extracted from the MSDN article
The TCP/IP protocol uses a 16-bit number, called a port, to differentiate connections to multiple network applications running on the same machine. If an application is listening on a port, then all TCP traffic for that port goes to that application.
Other applications cannot listen on that port at the same time.
http://msdn.microsoft.com/en-us/library/aa395195(v=vs.110).aspx
I also would like to sharing this link with you
http://stackoverflow.com/questions/1694144/can-two-applications-listen-to-the-same-port
2) If I forward port 443 to a different port on my PC, how does this only work for a specific app?
Personally, the application declares on which port it is listening. to change the port for an applciation, I suggest you contact the application vender, or you need to check with the documentation of that specific application.
NOTE
This
response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
Microsoft
does not control these sites and has not tested any software or information found on these sites.
Yolanda Zhu
TechNet Community Support
Maybe you are looking for
-
Error during upgrade EP 6.0 on netweaver 2004 to EP7.0 netweaver 2004s
Hi We are upgrading our EP system from EP6 Netweaver 2004 SP19 to EP7 Netweaver 2004s SP11 using SAPJUP and get stuck at deploy_online phase. And the Failed deployment of SDAs: component 'caf/eu/gp/content'/'sap.com'/'MAIN_APL70VAL_C'/'1078319'/'20'
-
can you help please ? i had restored my iphone 2G and now we needs to be active how can i do that ? PLEASE HELP ME :c
-
2 1/2 hours onto iDVD?
I am using Final Cut Pro 4 and have a 2 1/2 hour movie that I need to fit onto iDVD. I tried compressing the file with Compresor, but iDVD dosn't recognize compressed files. What can I do to fit this movie onto iDVD? Is there a specific export settin
-
Storing NULL Value in Mysql database
Hi all, Can anybody help me ? How can I store a NULL value in my Mysql database file using JSP. I have got a blank input from the user's form but in place of blank I want to store NULL value in my database. What should i do ? Thanks for any help in a
-
I dropped my iPhone in the sink and I blow dried it but it still won't turn on, will it ever work again.... I'm nervous because I know water damage is not covered in the warranty...