How to share session beween 2 weblogic instance (451)

Hi,
          I'm looking for the possibility to share session information between two
          weblogic instance (for weblogic 4.5.1).
          The first instance create and add information inside the session and store
          the session inside jndi for example.
          The second instance lookup the jndi to find all session informations and
          continue to work with this informations.
          If somebody have already do it, I'm intersted about tips and informations to
          do this fonctionnality.
          Thanks
          

If the two server instances are in the same cluster, they automatically
          share session info!
          Gene Chuang
          Join Kiko.com!
          "Didier" <[email protected]> wrote in message
          news:[email protected]..
          > Hi,
          >
          > I'm looking for the possibility to share session information between two
          > weblogic instance (for weblogic 4.5.1).
          >
          > The first instance create and add information inside the session and store
          > the session inside jndi for example.
          > The second instance lookup the jndi to find all session informations and
          > continue to work with this informations.
          >
          > If somebody have already do it, I'm intersted about tips and informations
          to
          > do this fonctionnality.
          >
          > Thanks
          >
          >
          

Similar Messages

  • How Can I Use Multiple Weblogic Instances in a Single OS

    Hello Everyone,
    Actually I have to install Some different applications. Few of them need weblogic 10.3.6 and others need 10.3.4. The OS am using is Oracle  Enterprise Linux 5.
    Now I am able to install 2 separate(One of 10.3.4 and 10.3.6) instances with two different users,In two different directories.
    I have installed the weblogic 10.3.6 version with a user webadmin and installed node manager with port 5556. This is working fine.
    The main problem here is :
    In the second instance (10.3.4 ) installed with a a different user and gave the port number to NodeManager as 1600 and its not getting started. Its throwing error and also after some errors in the terminal am able to see that its reverting to port number 5556 only.
    What might be the issue?
    I have to install 2 different versions of weblogic in a single Server. But am failing with NodeManager. What Can I do to have multiple weblogic instances with multiple versions in a single server ?
    Can anyone suggest a resolution for this please ?
    Thanks in advance.

    Pl do not spam these forums with multiple posts - How Can I Use Multiple Weblogic Instances in a Single OS

  • How to share session object between multiple WAR's

    I am Using servlet 2.3 & websphere 5.1 application server. I am using multiple war applications in my ear and i am able to share context-attributes & session attributes between wars. Can any one guide me how i can share session object?
    I am getting session -time out in first war even though i am doing some operation's in second war. I want to maintian the same session, even in my second war which was created in my first war.
    Can any one help me. Thanks in advance.

    Hi LNL,
    Can you explain more on singleton solution as you said....
    For session attributes & context attributes i am using persistent storage to retrive them in multiple wars. My problem is how should i use "session object" in my second war which was created in my first war.

  • How to share Sessions between 2 Weblogic ?

    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

    You need to make sure that session tracking is enabled,
    either via cookies or url rewriting. Otherwise, the incoming
    request won't be able to tell the server which session it belongs to.
    Jason
    "Cheung" <[email protected]> wrote in message news:[email protected]..
    Hello,
    I've some problems in setting on Weblogic. Suppose there are 2
    Weblogic Servers, WebA and WebB. A New Session will be created if user
    go to the page in WebB from WebA. Is there any methods to share the
    Session between them ? I turned on the following properties in
    Weblogic.properties already.
    weblogic.httpd.session.persistence=true
    weblogic.httpd.session.persistentStoreType=jdbc
    weblogic.httpd.session.persistentStorePool=demoPool
    weblogic.httpd.session.persistentStoreShared=true
    But a new entry will be created as long as user go to the page at WebB
    from WebA.
    In fact, I want to use the Session entry created by WebA.
    Thx
    Lim

  • Get weblogic instance name in cluster env.

              Hi, there, how can I get each weblogic instance name in cluster env. in my code?
              thanks.
              

    If you want the current instance name, it is 'weblogic.Name' I think. If you
              want a list of all instances in the cluster, you can probably find it by browsing
              WebLogic MBeans.
              black <[email protected]> wrote:
              > Hi, there, how can I get each weblogic instance name in cluster env. in my code?
              > thanks.
              Dimitri
              

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

  • How the hell does a person share session data between JSP page and a Servle

    1. How the hell does one share session data between a servlet and a JSP page without using a bean but rather using a normal string variable.
    2. When using session scope to access a bean the application complains about not finding the bean on the specified scope, however when I use an application scope the save the same bean, the application does find it.
    Please help!!!!!!!
    SERVLET:
    HttpSession session = request.getSession(true);
    ServletContext servletContext = session.getServletContext();
    customerID = result.getString("CustomerID");
    userName = result.getString("UserName");
    session.setAttribute("UserName",userName);
    session.setAttribute("CustomerID",customerID);
    System.out.println("Customer UserName = " + session.getAttribute("UserName"));
    response.sendRedirect("/economics/subscriptions/default.jsp");
    JSP PAGE:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root xmlns:jsp=http://java.sun.com/JSP/Page mlns:c="http://java.sun.com/jsp/jstl/core" xmlns:sql="http://java.sun.com/jsp/jstl/sql" version="2.0">
    <jsp:directive.page isThreadSafe="true" session="true" contentType="text/xml"/><jsp:output omit-xml-declaration="false"/><jsp:scriptlet>response.addHeader("x-xslt-nocache", "true");</jsp:scriptlet><pml>
    <page type="web" search="y">
         <pageName>Commercial Banking</pageName>
         <jsp:directive.include file="/economics/header.inc"/>
         <jsp:directive.include file="/login.inc"/>
         <jsp:directive.include file="/economics/leftMenu.inc"/>
         <!--<jsp:useBean id="UserName" type="java.lang.String" scope="session" />-->
         <content>
         <searchSum>Commercial - Main Content</searchSum>
         Value = <c:out value="${request.session.getAttribute("UserName")}"/>
         </content>
         <jsp:directive.include file="/economics/rightNav.inc"/>
         <jsp:directive.include file="/footer.inc"/>
    </page></pml></jsp:root>

    For a start, just "session" instead of "request.session" would work better. But why did you post this here and not in the JSP forum? Doesn't seem to have anything to do with Java programming.

  • How to start weblogic instance using wlserv ant task

    Hi,
    Iam using weblogic 8.1
    Iam trying to write build script which starts remote weblogic instance and does deploy using wldeploy and restarts the instance.
    First iam trying with starting weblogic.
    ==============================
    <wlserver
                   dir="${server.project.root.dir}"
                   domainName="${weblogic.domain.name}"
                   serverName="${weblogic.server.name}"
                   host="10.106.90.50"
                   port="8001"
                   generateConfig="true"
                   productionModeEnabled="false"
                   weblogicHome="${weblogic.home}/weblogic81"
              username="weblogic"
                   password="password"
                   args = "-XX:MaxPermSize=512M -Xms256m -Xmx512m"
                   action="start">
                   <classpath refid="weblogic.classpath"/>
              </wlserver>
    ==============================
    Iam getting an issue here , it starts the weblogic but automatically it stops the weblogic , without any exception.
    as per their documentation
    "When you use the wlserver task in an Ant script, the task does not return control until the specified server is available and listening for connections. If you start up a server instance using wlserver, the server process automatically terminates after the Ant VM terminates. If you only connect to a currently-running server using the wlserver task, the server process keeps running after Ant completes."
    I understand what they are saying , but what is the remedy to it , how to rectify it. I tried starting default server it gives NPE.
    ITs kinda very urgent for me any help , or available scripts will be very use ful.
    Thanks in advance.

    meghab,
    Thanks for the reply.
    I tried using java task , now the server is starting sucessfully but iam getting exception while starting the Queue.
    Here is my ant task.
    ===================================
    <target name="weblogicrun">
              <java fork="yes" dir="${weblogic.domain.dir}" classpathref="weblogic-classpath" classname="weblogic.Server">
                   <jvmarg value="-server"/>
                   <jvmarg value="-Dweblogic.Name=MyAppServer"/>
                   <jvmarg value="-Dweblogic.RootDirectory=${weblogic.config.dir}"/>
                   <jvmarg value="-Xms256m"/>
                   <jvmarg value="-Xmx512m"/>
                   <jvmarg value="-XX:MaxPermSize=128m"/>
                   <jvmarg value="-da"/>
                   <jvmarg value="-Dplatform.home=D:/bea"/>
                   <jvmarg value="-Dwls.home=D:/bea/weblogic81/server"/>
                   <jvmarg value="-Dweblogic.ProductionModeEnabled=false"/>
                   <jvmarg value="-Djava.security.policy=D:/bea/weblogic81/server/lib/weblogic.policy"/>
              </java>
         </target>
    ===================================
    In my project i have default queue , it gives INSTANTIATION EXCEPTION while trying to invoke weblogic.jms.common.DestinationImpl
    ==================================
    java.lang.InstantiationError: weblogic.jms.common.DestinationImpl
    =====================================
    Iam providing the config information from config.xml
    <JMSServer Name="WSStoreForwardInternalJMSServerMyServer"
    Store="FileStore" Targets="MyAppServer">
    <JMSQueue CreationTime="1179819623120"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueCCAppServer"/>
    <JMSQueue CreationTime="1179819623511"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueMyAppServer"/>
    </JMSServer>
    =========================================
    The full exception stack is below...
    [java] <Oct 11, 2007 1:54:28 PM IST> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "MyAppServer" for domain "MyAppDomain">
    [java] <Oct 11, 2007 1:54:41 PM IST> <Error> <JMS> <BEA-040368> <The following exception has occurred:
    [java] java.lang.InstantiationError: weblogic.jms.common.DestinationImpl
    [java] at weblogic.jms.backend.BEDestination.initialize(BEDestination.java:801)
    [java] at weblogic.jms.backend.BEDestination.initialize(BEDestination.java:341)
    [java] at weblogic.jms.backend.BackEnd.createDestination(BackEnd.java:1952)
    [java] at weblogic.jms.backend.BackEnd.initialize(BackEnd.java:667)
    [java] at weblogic.jms.JMSService.addJMSServer(JMSService.java:2247)
    [java] at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
    [java] at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
    [java] at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
    [java] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    [java] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    [java] at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
    [java] at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
    [java] at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
    [java] at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
    [java] at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
    [java] at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
    [java] at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
    [java] at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    [java] at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
    [java] at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
    [java] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
    [java] at weblogic.Server.main(Server.java:32)
    Am i missing something.
    Thanks in advance.
    Edited by rdayalan at 10/11/2007 1:45 AM

  • How to attach to and debug a live Weblogic instance?

    We know how to start up, attach to, and debug a Weblogic instance running on a developer workstation. Does anyone know how to attach to and debug a live (production) instance? Is this safe?
    Thanks

    Hi,
    Do like this...
    when saving standard text in so10,
    it won't ask for request!
    1. a little tricky
    2. goto se09 and create a new
    customizing rqeuest.
    3. after that
    in the object list,
    go in edit mode
    and a new window will come
    where u can add the objects(in table control)
    4. there u put
    program id = R3TR
    object type = TEXT
    object name = TEXT,YHRS_FNF_LTR,YHR1,E
    where
    YHRS_FNF_LTR = name of standard text
    YHR1 = TEXT ID
    E = english language
    Cheers,
    Simha.

  • How to serve multiple weblogic instances with a single apche server

    Can any body let me know how to make use of an apache server to serve 2 weblogic
    instances.
    Thanks in advance
    damodar

    Yes, the documentation explains how to do this:
    http://e-docs.bea.com/wls/docs61/adminguide/apache.html
    Regards,
    Eric
    "Damodar" <[email protected]> wrote in message
    news:3c23ccb9$[email protected]..
    >
    Can any body let me know how to make use of an apache server to serve 2weblogic
    instances.
    Thanks in advance
    damodar

  • How to run 2 weblogic instance in the same machine

    is it possible to run 2 weblogic instance in the same machine ?
    I have created 2 domains ...domain-1 and domain-2 in my hard disk and both of them have startWeblogic.cmd in them..
    but i cant run them simultaneously though individually they run.
    they differ by HTTP port and Debug port but still they dont run simultaneously
    can you please comment ?

    yea...i thought about it .
    but as both of them are same application and they are using the same DB connection pool , JMS queue ....i just dont want to mix all these.
    so i have created two seperate domian . and i run them individually and they work fine.
    However , they are having different ports though .
    But when i run the second one while the first one is running ....the second one does not starts up
    here is the error when i click on startsWeblogic.cmd when the other is already running.
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    BEA WebLogic JRockit(TM) 1.4.2_08 JVM R24.5.0-61 (build ari-49095-20050826-1856-win-ia32, Native Threads, GC strategy: pa
    Starting WLS with line:
    d:\bea\JROCKI~1\bin\java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.
    === Debugging ===
    This window is necessary for debugging code using WebLogic Workshop
    ERROR: Proxy already running...
    weblogic.debugging.comm.TransportException
    at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne
    at weblogic.debugging.engine.ProxyThread.run()V(ProxyThread.java:77)
    at java.lang.Thread.run()V(Unknown Source)
    at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    Caused by: java.net.BindException: Address in use
    at jrockit.net.SocketNativeIO.bind(ILjava/net/InetAddress;I)I(Unknown Source)
    at jrockit.net.SocketNativeIO.bind(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)I(Unknown Source)
    at java.net.AbstractSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)
    at java.net.PlainSocketImpl.bind(Ljava/net/InetAddress;I)V(Unknown Source)
    at java.net.ServerSocket.bind(Ljava/net/SocketAddress;I)V(ServerSocket.java:318)
    at java.net.ServerSocket.<init>(IILjava/net/InetAddress;)V(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(I)V(ServerSocket.java:97)
    at weblogic.debugging.comm.ServerConnectInfo.createTransport()Lweblogic/debugging/comm/CommTransport;(ServerConne
    ... 3 more
    Could not bind to Weblogic server (Error attaching to Weblogic Server.).
    Message was edited by:
    Unknown_Citizen

  • How do i configure mail session in Weblogic 8.1

    Hi all,
    I am having dead end here,
    I have tried to configure a mail session in weblogic 8.1
    I have created a mail service (service/mail) in weblogic console, with the JNDI named mail/MailFolderClientSession.
    and properties like this :
    mail.store.protocol=pop3
    mail.user=test@wiyanto
    mail.transport.protocol=smtp
    mail.smtp.host=11.2.145.64
    mail.debug=true
    mail.from=test@wiyanto
    mail.host=11.2.145.64
    mail.smtp.auth=false
    mail.smtp.user=test@wiyanto
    mail.pop3.host=11.2.145.64
    wiyanto is my computer name
    11.2.145.64 is my IP address
    and I used Imail as my mail server
    in the weblogic-ejb-jar.xml i have added this :
    <weblogic-enterprise-bean>
         <ejb-name>Email</ejb-name>
         <reference-descriptor>
              <resource-description>
                   <res-ref-name>EmailSession</res-ref-name>
                   <jndi-name>mail/MailFolderClientSession</jndi-name>
              </resource-description>
         </reference-descriptor>
         <jndi-name>ejb/EmailHome</jndi-name>
    </weblogic-enterprise-bean>
    and I have set the mail session to run automatically when i start the weblogic server.
    but i still encounter this :
    MailFolderClient: MessagingException in connectToMailStore [javax.mail.AuthenticationFailedException]
    MailFolderClient: login: Connection to mailstore failed
    Please tell me what is wrong with this, b'cause I met dead end on every search on google :(
    Any suggestion is more than welcome.

    To join the domain, you can follow these steps:
    1.Open System by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering System in the search box, and
    tapping or clicking System.
    2.Under Computer name, domain, and workgroup settings, click Change settings. Administrator permission required You might be asked for an admin password or to confirm your choice.
    3.Click Network ID and follow the steps on your screen.
    Alex Zhao
    TechNet Community Support

  • Stateful session bean destroying instance variables?

    I'm trying to use a stateful session bean as some kind of login controller and to maintain the login id and access level across JSPs and HTMLs so that once logged in, all the JSPs can obtain the login name of the current user (String) and his access level (int).
    I use the login.jsp to login and it successfully reports logging in with the correct access level retrieved from database. However, if I go to another JSP (testlogin.jsp), these 2 EJB instance variables are always destroyed and set to null and 0 when I access them again.
    What am I missing that my stateful session bean is not saving these instance variables? Do I need to put them in some serializable value objects (create a help VO class?)
    I suspected that on different JSP, I call the MemberControllerHome.create() method, it creates a new instance or something but if I don't use the create method how do I get a handle to MemberController at all?
    MemberControllerBean.java
    public class MemberControllerBean implements SessionBean {
         //initialize in ejbCreate.
         private MemberHome memberHome;
         SessionContext context;
         //Member currentLogin;
         //Current Login
         private String loginID;
         private int accessLevel;
         // Constructor
         public MemberControllerBean() {}
    ...some code in between...
    public void login(String id, String password){
              try{
                   Member member = null;
                   member = memberHome.findByPrimaryKey(id);
                   if(member.getMPassword().equals(password)){
                        this.loginID = member.getMID();
                        this.accessLevel = member.getMAccessLevel();
                   else{
                        throw new EJBException("Login failed. Invalid member ID and/or password.");
              } catch (FinderException ex) {
                   throw new EJBException("Login failed. Invalid member ID and/or password.");
         public void logout(){
              this.loginID = null;
              this.accessLevel = 4;
         public String getLoginID(){
              return this.loginID;
         public int getLoginAccessLevel(){
              return this.accessLevel;
    login.jsp
    String mID = request.getParameter("mID");
    String mPassword = request.getParameter("mPassword");
    out.println("20:" + mID + ":" + mPassword);
    if(mID != null && mPassword != null){
         out.println("22:" + mID + ":" + mPassword);
         try{
              InitialContext ic = new InitialContext();
              MemberControllerHome home = (MemberControllerHome) ic.lookup("java:comp/env/ejb/MemberController");
              MemberController mc = home.create();
              out.println("26:Logging in as " + mID + " with " + mPassword);
              mc.login(mID, mPassword);
              out.println("28:" + mc.getLoginID() + "logged in successfully at level " +
                   mc.getLoginAccessLevel() + ".");
         } catch (NamingException ex) {
              out.println("java:comp/env/ejb/MemberController not found.");
         } catch (EJBException ex) {
              out.println(ex.getMessage());
         } catch (Exception ex) {
              out.println(ex.getMessage());
    testlogin.jsp
    <%
    try{
         InitialContext ic = new InitialContext();
         MemberControllerHome home = (MemberControllerHome) ic.lookup("java:comp/env/ejb/MemberController");
         MemberController mc = home.create();
         out.println("You are logged in as <b>" + mc.getLoginID() +
              "</b> at level <b>" + mc.getLoginAccessLevel() + "</b>.");
    } catch (NamingException ex) {
         out.println("java:comp/env/ejb/MemberController not found.");
    } catch (EJBException ex) {
         out.println(ex.getMessage());
    } catch (Exception ex) {
         out.println(ex.getMessage());
    %>

    The key to the problem is that in testlogin.jsp a new stateful session bean is created. The new bean instance of course doesn't know the log-in information you stored in the old session bean. That is why the method returns null and 0 when called.
    There are couple of ways to solve the issue. The easiest solution is to store the bean instance created in Login.jsp in the jsp's implicit HttpSession object. Because login.jsp and testlogin.jsp share the same session, the bean instance can be easily stored and retrieved.
    Here is the code you need to have:
    1. in login.jsp
    session.setAttribute("MemberControllerBeanInstance", mc);
    2. in testlogin.jsp
    MemberController mc =
    (MemberController) session.getAttribute("MemberControllerBeanInstance");
    Hope it helps.

  • How to share the same Database Connection when using several Task Flows ?

    Hi All,
    I’m using JDev 11.1.1.3.0.
    I’m developing ADF Fusion Applications (ABC BC, ADF Faces…)
    These applications are deployed on a Weblogic server.
    Each application has only one Application Module.
    All Application Modules have the same connection type defined: JDBC DataSource : jdbc/GCCDS
    It is working fine.
    I’ve also developed Task Flow Applications for small thinks that are reused in multiple main applications.
    Each Task Flow Application has also one Application Module with the same connections type as main applications.
    All these task flows are deployed to JAR file (ADF Library JAR File) and are reused on my main applications. (drag and drop from the Resource Palette to ADF Regions….).
    There are some parameters passed to Task Flows, so that they can filter data depending on which main applications they are called from.
    Everything is working perfectly.
    All my main applications are using more and more task flows. Which is nice for the reusability etc…?
    Only ONE PROBLEM: DATABASE CONNECTIONS.
    Every Task Flows service made a database connection. So one user may have 10 database connections for the same adf page. And when there are 100 users that are working at the same time, it becomes a problem.
    How to share the same database connections for the main applications and all task flows which are used in the main application?
    Best Regards
    Nicolas

    Hi John,
    When I open a ADF Library JAR file of one of my task flow. (gcc_tf_recentSites.jar)
    I can see TF_RecentSitesService.xml and TF_RecentSitesServiceImpl.class in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service folder
    + bc4j.xcfg in gcc_tf_recentSites.jar\mu\gcc\tf\recentSites\model\service\common folder.
    bc4j.xcfg details are
    +<?xml version = '1.0' encoding = 'UTF-8'?>+
    +<BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration">+
    +<AppModuleConfigBag ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<AppModuleConfig DeployPlatform="LOCAL" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model" name="TF_RecentSitesServiceLocal" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService">+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +<Custom JDBCDataSource="jdbc/GCCDS"/>+
    +</AppModuleConfig>+
    +<AppModuleConfig name="TF_RecentSitesServiceShared" ApplicationName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService" DeployPlatform="LOCAL" JDBCName="gccdev" jbo.project="mu.gcc.tf.recentSites.model.TF_RecentSites_Model">+
    +<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>+
    +<Security AppModuleJndiName="mu.gcc.tf.recentSites.model.service.TF_RecentSitesService"/>+
    +</AppModuleConfig>+
    +</AppModuleConfigBag>+
    +</BC4JConfig>+
    So, it seems that the Application Module is packaged with the task flow....
    Is it normal ?
    Regards
    Nicolas

  • How to share user login and passwords between blog, forum and Dreamweaver?

    I have a site created with Dreamweaver. I want to allow
    visitors to create a username and password which will allow them to
    post blog feedback to many pages on my site, post in a forum, and
    provide their own comments into a database I can show the results
    for on certain pages. The trick is I want this to all work with one
    username and password so they don't have to use 3 different logins.
    I'm not sure if this is too technical, but I thought I'd ask before
    getting into it and realizing it won't work or I don't have a clue
    what I'm doing.
    I want to allow blog data to be added to a page with CSS
    content by both admin and visitors (to create an active discussion
    based on the data on that page). I've seen it on some sites, but
    don't know how to do it myself:
    http://www.joystiq.com/2008/05/19/ea-extends-take-two-purchase-offer-deadline-a-third-time /
    I can see they are using Weblogs Inc. software, but it
    appears the company only collaborates with people they see a fit
    with.
    I also want a forum and I know phpp is recommended. I like
    the interface, but am unsure if the login data can be shared with a
    blog.
    Lastly, I wanted to allow users to write their own reviews
    and then show the results and average them for display on the site.
    I have read and know how to create the database for the site. I
    just don't know how to share the usernames and password information
    with the blog and forum.
    Also, how do I force Dreamweaver to validate that the
    usernames and passwords are exactly correct before letting people
    post under that identity?
    I'm loving Dreamweaver and making sites so far. Just trying
    to take it to the next level.
    Thanks very much!

    juxtafras wrote:
    > I have a site created with Dreamweaver. I want to allow
    visitors to create a
    > username and password which will allow them to post blog
    feedback to many pages
    > on my site, post in a forum, and provide their own
    comments into a database I
    > can show the results for on certain pages. The trick is
    I want this to all
    > work with one username and password so they don't have
    to use 3 different
    > logins. I'm not sure if this is too technical, but I
    thought I'd ask before
    > getting into it and realizing it won't work or I don't
    have a clue what I'm
    > doing.
    >
    > I want to allow blog data to be added to a page with CSS
    content by both admin
    > and visitors (to create an active discussion based on
    the data on that page).
    > I've seen it on some sites, but don't know how to do it
    myself:
    >
    >
    http://www.joystiq.com/2008/05/19/ea-extends-take-two-purchase-offer-deadline-a-
    > third-time/
    >
    > I can see they are using Weblogs Inc. software, but it
    appears the company
    > only collaborates with people they see a fit with.
    >
    > I also want a forum and I know phpp is recommended. I
    like the interface, but
    > am unsure if the login data can be shared with a blog.
    >
    > Lastly, I wanted to allow users to write their own
    reviews and then show the
    > results and average them for display on the site. I have
    read and know how to
    > create the database for the site. I just don't know how
    to share the usernames
    > and password information with the blog and forum.
    >
    > Also, how do I force Dreamweaver to validate that the
    usernames and passwords
    > are exactly correct before letting people post under
    that identity?
    >
    > I'm loving Dreamweaver and making sites so far. Just
    trying to take it to the
    > next level.
    >
    > Thanks very much!
    >
    What you want is a CMS, but your not going to get one for
    Dreamweaver,
    well, not the kind you want. Something like Joomla can do
    this, you can
    add phpBB3 to it, and then using the JFusion extension allow
    them to
    share the user database, but I warn you now, its a steep
    learning curve.
    I ended up buying a book just to get to grips with the key
    concepts.
    Steve

Maybe you are looking for