MDB Accessing datasource

Hi,
I have a question regarding MDBs accessing a datasource. Since application servers create a pool of MDBs that will consume messages, how should the datasource be retrieved efficiently?
public class MDB implements MessageDrivenBean, MessageListener
     private MessageDrivenContext   context = null;
          private DataSource dataSource = null;
     public void ejbCreate()
                    InitialContext initialContext = new InitialContext();
          dataSource = (DataSource) initialContext.
                                                  lookup(lookupstring);
     public void setMessageDrivenContext(MessageDrivenContext context)
           context = context;
     public void onMessage(Message msg)
                Connection connection = dataSource.getConnection();
     public void ejbRemove()
}Since the application server will instantiate a pool of MDBs, the ejbCreate method will be called n times depending on the size of the MDB pool. Each instance of the MDB will have their own instance of the datasource. I want my MDBs to share a single instance of the datasource. How can I do this?
For example, fo servlets, you have an init method which is only called once by the servlet container where you can instantiate a datasource. Subsequent requests to the servlet will create 1 thread for each request. But each thread will only access a single instance of the datasource.
How can i do this with MDBs? Is my code correct or is there a better way? Or is it even a non-issue for application servers. Btw, I'm using JBoss.
Can anyone point to any reading about this or can clarify this?
Thanks in advance :)

Hi Uday
Configuration link for Sender Adapter
<b>http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm</b>
Configuration link of Reciever Adapter
<b>http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm</b>
XML Document Format for the Message Protocol XML SQL Format
<b>http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm</b>
Hope it helps.For further doubts u are free to post
Regards
Arpit Seth

Similar Messages

  • Donot extract from PSA. Access datasource directly (for small amts of data)

    Hi Experts,
    I am facing issue in DTP screen. I dont see File extraction selection path in DTP screen.
    My requirement is to load the csv file directly into DSO.  Here I dont use PSA /Infopackage.  I want to do this by DTP selection.  But in DTP selection I dont see File extraction options.
    In DTP screen I dont see Check Box which says " Donot extract from PSA. Access datasource directly (for small amts of data) "
    Last week we have upgrade/applied support packs.  So I am assuming that is this issue occured due to upgrade activity or it is something other way which iam missing.
    Appreciate your early response.
    Many thanks for your help.
    Regards,
    Saji

    Saji
    What is the location of your CSV file? Your Local machine or Application server ?
    I believe it has to be application server to have this settings.
    If you think this problem got created due to upgrade , you can try to create a FULL DTP for any of the master data/text DataSource and check if the option is coming there. If yes, then upgrade did not create any problem and you are sure this is a settings problem.
    Please check this thread....Do not Extract from PSA but Access Data Source (for Small Amounts of Data)
    Regards
    Anindya
    Edited by: Anindya Bose on Mar 10, 2012 10:23 AM
    Edited by: Anindya Bose on Mar 10, 2012 10:38 AM
    Edited by: Anindya Bose on Mar 10, 2012 10:38 AM

  • How compact a mdb (Access 2k) with LabSQL?

    How compact a mdb (Access 2k) with LabSQL?

    I believe that you are asking "how to compact an Access Database programmatically from LabVIEW?" If so, you may want to consult :this discussion forum which concerns the same questions.
    J.R. Allen

  • How can a MDB access filesystem?

    Hi,everyone. Should you help me resolve this problem?
    <b>--How can a MDB access filesystem?</b>
    SOURCE CODE:
    public void onMessage(javax.jms.Message aMessage) {
    try{
    FileOutputStream fos = new FileOutputStream(new File("D:\\Temp\\a.nok"));
    fos.write("testing".getBytes() );
    fos.flush();
    fos.close();
    }catch(Exception e){
    e.printStackTrace();
    RESPONSE:
    java.security.AccessControlException: access denied (java.io.FilePermission D:\Temp\a.nok write)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkWrite(SecurityManager.java:975)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:169)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at neu.mid.mag.mlm.MsgMonitorBean.onMessage(MsgMonitorBean.java:51)
    at com.sun.ejb.containers.MessageBeanContainer.onMessage(MessageBeanContainer.java:653)
    at com.sun.ejb.containers.MessageBeanListenerConcurrent.onMessage(MessageBeanListenerConcurrent.java:20)
    at com.sun.jms.client.SessionImpl.onSessionMessageListener(SessionImpl.java:981)
    at com.sun.jms.client.SessionImpl.deliverMessage(SessionImpl.java:1072)
    at com.sun.jms.client.JMSClientImpl.sendMessage(JMSClientImpl.java:149)
    at org.omg.stub.com.sun.jms.client._JMSClientImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:350)
    at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:250)
    at com.sun.corba.ee.internal.iiop.LocalClientRequestImpl.invoke(LocalClientRequestImpl.java:96)
    at com.sun.corba.ee.internal.corba.ClientDelegate.invoke(ClientDelegate.java:227)
    at com.sun.corba.ee.internal.corba.ClientDelegate.invoke(ClientDelegate.java:269)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
    at org.omg.stub.com.sun.jms._JMSClient_Stub.sendMessage(Unknown Source)
    at com.sun.jms.service.ConnectionImpl.sendMessage(ConnectionImpl.java:475)
    at com.sun.jms.service.SessionImpl.processOutgoingMessages(SessionImpl.java:1295)
    at com.sun.jms.service.SessionImpl.access$000(SessionImpl.java:45)
    at com.sun.jms.service.SessionImpl$1.activityDetected(SessionImpl.java:1014)
    at com.sun.jms.util.WorkerThread.run(WorkerThread.java:87)

    Hi,
    Hi,everyone. Should you help me resolve this problem?
    <b>--How can a MDB access filesystem?</b>
    SOURCE CODE:
    public void onMessage(javax.jms.Message aMessage)
    ge) {
    try{
    FileOutputStream fos = new
    m fos = new FileOutputStream(new
    File("D:\\Temp\\a.nok"));
    fos.write("testing".getBytes() );
    fos.flush();
    fos.close();
    }catch(Exception e){
    e.printStackTrace();
    This is fine .......
    RESPONSE:
    java.security.AccessControlException: access denied
    (java.io.FilePermission D:\Temp\a.nok write)
    at
    at
    at
    t
    java.security.AccessControlContext.checkPermission(Acce
    sControlContext.java:270)
    at
    at
    at
    t
    java.security.AccessController.checkPermission(AccessCo
    troller.java:401)
    at
    at
    at
    t
    java.lang.SecurityManager.checkPermission(SecurityManag
    r.java:542)
    at
    at
    at
    t
    java.lang.SecurityManager.checkWrite(SecurityManager.ja
    a:975)
    at
    at
    at
    t
    java.io.FileOutputStream.<init>(FileOutputStream.java:1
    9)
    at
    at
    at
    t
    java.io.FileOutputStream.<init>(FileOutputStream.java:1
    1)
    at
    at
    at
    t
    neu.mid.mag.mlm.MsgMonitorBean.onMessage(MsgMonitorBean
    java:51)
    at
    at
    at
    t
    com.sun.ejb.containers.MessageBeanContainer.onMessage(M
    ssageBeanContainer.java:653)
    at
    at
    at
    t
    com.sun.ejb.containers.MessageBeanListenerConcurrent.on
    essage(MessageBeanListenerConcurrent.java:20)
    at
    at
    at
    t
    com.sun.jms.client.SessionImpl.onSessionMessageListener
    SessionImpl.java:981)
    at
    at
    at
    t
    com.sun.jms.client.SessionImpl.deliverMessage(SessionIm
    l.java:1072)
    at
    at
    at
    t
    com.sun.jms.client.JMSClientImpl.sendMessage(JMSClientI
    pl.java:149)
    at
    at
    at
    t
    org.omg.stub.com.sun.jms.client._JMSClientImpl_Tie._inv
    ke(Unknown Source)
    at
    at
    at
    t
    com.sun.corba.ee.internal.corba.ServerDelegate.dispatch
    ServerDelegate.java:350)
    at
    at
    at
    t
    com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:250
    at
    at
    at
    t
    com.sun.corba.ee.internal.iiop.LocalClientRequestImpl.i
    voke(LocalClientRequestImpl.java:96)
    at
    at
    at
    t
    com.sun.corba.ee.internal.corba.ClientDelegate.invoke(C
    ientDelegate.java:227)
    at
    at
    at
    t
    com.sun.corba.ee.internal.corba.ClientDelegate.invoke(C
    ientDelegate.java:269)
    at
    at
    at
    t
    org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.ja
    a:457)
    at
    at
    at
    t
    org.omg.stub.com.sun.jms._JMSClient_Stub.sendMessage(Un
    nown Source)
    at
    at
    at
    t
    com.sun.jms.service.ConnectionImpl.sendMessage(Connecti
    nImpl.java:475)
    at
    at
    at
    t
    com.sun.jms.service.SessionImpl.processOutgoingMessages
    SessionImpl.java:1295)
    at
    at
    at
    t
    com.sun.jms.service.SessionImpl.access$000(SessionImpl.
    ava:45)
    at
    at
    at
    t
    com.sun.jms.service.SessionImpl$1.activityDetected(Sess
    onImpl.java:1014)
    at
    at
    at
    t
    com.sun.jms.util.WorkerThread.run(WorkerThread.java:87)
    First of all in the specificaitons it is recommended not to use the i/o with ejb.So you should avoid doing same.
    Now the exception you are getting is due to the SecurityManager at the server side JVM.In order to make it run you have to modify the java.policy file present with in the JAVA_HOME/jre/lib/security.
    With in this file you add the following entry
    permission java.io.FilePermission "D:\\Temp\\a.nok", "read,write";
    For more details you should refer to the concept of the Security Manager which is not loaded by default in java app but in applets and in server side applications it is made for security purposes.
    Regards
    Vicky

  • CF MX Access datasource UNC network link possible?

    I've tried both mapping a drive on the server and using a UNC
    link, but my Access Unicode datasource won't work with files on
    another server. I have the domain "logon" account rights embedded
    in the CF application service, so that should be set.
    If I use a network drive I get this error:
    Connection verification failed for data source: 00aaatest
    com.inzoom.adojni.ComException: 'w:\data\404.mdb' is not a
    valid path. Make sure that the path name is spelled correctly and
    that you are connected to the server on which the file resides.
    The root cause was that: com.inzoom.adojni.ComException:
    'w:\data\404.mdb' is not a valid path. Make sure that the path name
    is spelled correctly and that you are connected to the server on
    which the file resides. in Microsoft JET Database Engine code=0
    Type=1
    If I use a UNC link I get this error:
    Connection verification failed for data source: aaatest
    com.inzoom.adojni.ComException:
    '\\\prism2\premierWWW\data\404.mdb' is not a valid path. Make sure
    that the path name is spelled correctly and that you are connected
    to the server on which the file resides.
    The root cause was that: com.inzoom.adojni.ComException:
    '\\\prism2\premierWWW\data\404.mdb' is not a valid path. Make sure
    that the path name is spelled correctly and that you are connected
    to the server on which the file resides. in Microsoft JET Database
    Engine code=0 Type=1
    Should I be embedding a username/pw in the ColdFusion
    username and ColdFusion password boxes under advanced settings? I
    tried domain credentials, but this didn't work either.
    thanks for any suggestions!
    Chuck

    Don't know about the Map drive, looks ok to me (except
    missing prism2\premier\www, but perhaps that was included in the
    map to w
    . At any rate we shouldn't be using map drives,
    right?
    For the UNC, the answer is the design bug (feature?) of the
    administrator adding an extra \ for you so you wind up with 3.
    Doesn't make any sense to me, but that's the way it is. Only use
    one up front slash for UNC's.

  • Access Datasource from Servlet Engine (Tomcat)

    Hi,
    I'm using datasource connections in my beans and event in servlets.. It works fine in JRun 3.1 environment.
    But when I port to J2EE1.3 its throwing this exception...
    I just want to understand whether it is a limitation in J2EE1.3 & Tomcat environment or it is a security problem or do I have to change any configuration file so that I can make the datasource connection available outside the J2EE environment.
    java.lang.IllegalArgumentException: Unknown component type      at com.sun.enterprise.naming.NamingManagerImpl.getComponentType(NamingManagerImpl.java:670)      at com.sun.enterprise.naming.NamingManagerImpl.getMangledIdName(NamingManagerImpl.java:708)      at com.sun.enterprise.naming.NamingManagerImpl.getComponentIdInternal(NamingManagerImpl.java:680)      at com.sun.enterprise.naming.NamingManagerImpl.getComponentId(NamingManagerImpl.java:313)      at com.sun.enterprise.naming.java.javaURLContext.getComponentContext(javaURLContext.java:397)      at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:51)      at javax.naming.InitialContext.lookup(InitialContext.java:350)      at com.camilion.env.ejb.EjbEnvironment.getJDBCConnection(EjbEnvironment.java:105)      at com.camilion.report.servlet.ReportServlet.service(ReportServlet.java:49)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)      at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:428)      at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)      at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)      at java.security.AccessController.doPrivileged(Native Method)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)      at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:995)      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1088)      at java.lang.Thread.run(Thread.java:484)

    I'm getting the same problem trying to lookup a datasource from a JSP with J2EE 1.3 reference implementation.

  • Exceptions arsing while accessing DataSource   from a stand alone java clie

    Dear all responders,
    can any one help in resolving my problem??the problem description is as follows:
    i am using sun one application server 7.0 to deploy a J2EE Apllication
    so i have created a data source using the admin page with the name
    "nodbsession".now i want to access this datasource using a stand alone java client and want to establish a connection to database.i am using the following code snippet to do so
    **code is as follows**
    Hashtable env=new Hashtable();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
                   env.put(Context.PROVIDER_URL, "iiop://localhost:3700");
                   System.out.println("creating context");
                   Context ctx =new InitialContext(env);
                                  System.out.println("created successfull");
                   DataSource ds =(DataSource)ctx.lookup("nodbsession");
    /* by using like this also it is not working
    DataSource ds =(DataSource)ctx.lookup("java:comp/env/jdbc/nodbsession");
    i am able to obtain the context succussfully but the exception is thrown for the data source look up
    the following exception is thrown
    javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
    at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at Test.<init>(Test.java:27)
    at Test.main(Test.java:47)
    please help me in resolving the above problem
    advance thanx to all those who intend to reply
    please provide me a proper resolution

    I think the appserver uses com.sun.enterprise.naming.SerialInitContextFactory on the server side to register different resources. Anything registered with SerialialInitContextFactory cannot be resolved with a CNCtxFactory.
    Can you try using SerialInitContextFactory on the client side.

  • How to access Datasource tag info (struts-config.xml)  in POJO

    Hello friends,
    I am doing a project in struts.I have stored the database connection information in data-source tag of struts-config.xml file.This is the code.
    <data-sources>
    <data-source>
    <set-property property="autoCommit" value="false"/>
    <set-property property="description" value="oracle Data Source"/>
    <set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
    <set-property property="maxCount" value="10"/>
    <set-property property="minCount" value="2"/>
    <set-property property="user" value="system"/>
    <set-property property="password" value="manager"/>
    <set-property property="url"
    value="jdbc:oracle:thin:@localhost:1521:gd"/>
    </data-source>
    </data-sources>
    Now I want to access this data in POJO.I know how to use it in action class but unable to use it in POJO.To access it in action class , the code goes like this....
    ServletContext context=servlet.getServletContext();
    DataSource datasource=(DataSource)context.getAttribute(Action.DATA_SOURCE_KEY);
    Connection con=datasource.getConnection();
    Can anyone tell me what to do?.Any help will be highly appreciated.Thank you in advance.

    You will need to use the JSR 88 API to access deployment descriptor configuration.
    See the Programming Deployment for Oracle WebLogic Server documentation for more information.

  • Several instances of MDB accessing a Q and one rolling back a message

    I have one input queue being served by several instances of an identical
              MDB.
              When a problem occurs with an MDB processing one of the messagse read on the
              queue (for instance, it could not forward the answer, the bean is being
              brought down through an exception or otherwise), I would like to rollback
              the message it was processing since it could not complete the job.
              I would like to let the container manage the transaction and use
              setRollbackOnly when the instance of MDB fails or has to abrupty end. What
              would happen to messages that are currently being processed by other MDBs
              (and thus have not been committed) and followed the message that caused the
              rollback in the input queue? In other words, uncomitted messages submitted
              to other MDB instances after the failed MDB started the transaction that
              ultimately failed. Will they also be rollbacked?
              

              Wim van der Kerkhoven wrote:
              > I have one input queue being served by several instances of an identical
              > MDB.
              >
              > When a problem occurs with an MDB processing one of the messagse read on the
              > queue (for instance, it could not forward the answer, the bean is being
              > brought down through an exception or otherwise), I would like to rollback
              > the message it was processing since it could not complete the job.
              >
              > I would like to let the container manage the transaction and use
              > setRollbackOnly when the instance of MDB fails or has to abrupty end. What
              > would happen to messages that are currently being processed by other MDBs
              > (and thus have not been committed) and followed the message that caused the
              > rollback in the input queue? In other words, uncomitted messages submitted
              > to other MDB instances after the failed MDB started the transaction that
              > ultimately failed. Will they also be rollbacked?
              No. Only the message participating in the rolled back transaction
              will be rolled back. Messages in other transactions will not be
              affected.
              >
              >
              >
              >
              

  • Container managed transactions in 9.0.3 (plus AQ JMS/MDB)

    Something for "real programmers", similar to MDB Transaction Exception on OC4J 9.0.4 (MDB Transaction Exception on OC4J 9.0.4) but little bit different. Maybe author of the mentioned thread can find some answers here also.
    We have an MDB accessing AQ in database (this works either with 9i and 8i). MDB receives the message (actually TextMessage), retrieves the content/properties and calls some EJBs making database operations. When we used just the same DataSource for JMS resource provider and SQL operations, everything worked OK. But we need to move one step further - making calls to several databases, some 8i, some might 9i. We were able to start CMT for one DataSource, i. e. configuring OrionCMTDataSource over JDBC ORACLE driver (if you use different DataSource class, message remains stucked in queue and eventually expires. If you don't specify container managed transactions for MDB in ejb-jar.xml, it works with any DataSource class - but message is lost every time exception occurs - not very pleasant situation).
    We are trying to configure DataSources so they provide transactional support while using commit coordinator. There are some documents describing this - in 9iAS Data Sources and JTA, Orion Data Sources and possibly JTA description in 9i database documentation. Both ORACLE documents are very similar. Generally, these are main steps:
    1) configure each data source so they provides CMT support (wrap native driver/data source by OrionCMTDataSource class)
    2) create datasource commit-coordinator database, also using CMT(?)
    3) create user in commit-coordinator database and same in each other database with connect, resource, create session + force any transaction priviledge (since it would commit other users transactions)
    4) create database links from commit-coordinator database to each databases (but... see questions below)
    5) configure commit coordinator so it uses proper data source
    6) add each DB link as a property to data sources
    7) configure data source for JMS
    8) connect JMS resource provider with JMS data source
    9) Start container, send message, etc.
    So far the only result we've got is a trace file in database user dumps and generic "javax.transaction.SystemExeption: Could not commit: error code 29540". User dump occurs in a "remote" database, not the one where commit coordinator resides. If I drop database links, result is the same, so it seems like problem with data source itself. In a dump there is piece of text like this: "FATAL ERROR IN TWO-TASK SERVER: error = 12571" and "ksedmp: internal or fatal error
    Current SQL statement for this session:
    begin dbms_aqin.aq$_dequeue_in( :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22, :23, :24, :25, :26, :27, :28, :29); end; ". I think AQ call is just a coincidence since it is the first one involved in transactions. Down there in HEX part of a dump there is a message about protocol or network error ("probably ORA-28546")
    Here is an example of data source configuration we are using:
    <!-- Passport CMT DataSource -->
    <data-source
    name="PassportDS"
    class="com.evermind.sql.OrionCMTDataSource"
    location="jdbc/PassportDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="int"
    password="int"
    url="jdbc:oracle:thin:@ws18885:1521:ICON"
    inactivity-timeout="30">
    <property name="dblink" value="ICON.WS18885.APPG.COM"/>
    There are some questions pending. Obvious one is if CMT is working or not at all and we should find some different solution (Bean managed transactions or use XA, hmmm). Other one might be that database link has to be "fully-qualified". I'm not sure what it means: using username and password? Using database name along with domain (if any)? So far it seems links are not used anyway.
    We've tried several databases, like 9.2.0.1 and 9.0.3 versions. Result is the same.
    We've tried to use XA data source of ORACLE (oracle.jdbc.xa.client.OracleXADataSource) and OrionCMT data source bound by xa-source-location to it but container gets stucked upon restart with "Investingating resource 'XADataSource PassportXADS' for recovery..." and similar messages for an hour.
    There is an OracleJTADataSource mentioned in several documents, but I cannot find any in jdbc classes - was it deprecated?
    Lies the problem in JMS itself? So far we've been able to use AQ in 8i and 9i and succesfully commit every transaction - provided transaction was local.
    Since XA itself is working I guess problem might be with configuration.
    I will appreciate any opinion on CMT... also, if you have any questions, please ask.
    Myrra

    Hi Per,
    I don't have an answer for you -- sorry {:-( -- only a suggestion (which
    you may have already tried, anyway :-). Have you tried running OC4J
    in "debug" mode? The following web-page gives details on how to do that:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    Also, if you aren't already aware of them, the following web-sites
    may also be helpful (not in any particular order):
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

  • How can I look up DataSource from one EJB to the other EJB?

    Image that, I have 3 databases:
    DB1
    DB2
    DB3,
    And then, 03 DataSources is deployed in DS EJB, named DataSource1, DataSource2, DataSource3.
    In the other App EJB, I have Connection Management function, as follows:
    public Connection getConnection(databaseKey) {
    if (databaseKey.equals("DB1")){
    connection = remote.lookup("DataSource1");
    }else if (databaseKey.equals("DB2")){
    connection = remote.lookup("DataSource2");
    }else if (databaseKey.equals("DB3")){
    connection = remote.lookup("DataSource3");
    return connection;
    How can I access DataSource 1,2,3 from the other EJB? How to config EJB server for that?
    Thanks in advance!
    Now, I have the other App EJB. Some class will require one of the above DataSource from DS EJB through function getConnection(databaseKey){}

    I strongle suggest you to use a ServiceLocator for this . It will be very easy to identify.Go to the sun home page and look for a servicelocator pattern.You can even directly use that code for you.

  • Replication Manager - Syncing mdb databases over the Internet

    Hai
    I am new to access replication. I have been given the task of syncing two .mdb access 2000 databases with eachother over the internet using Replication Manager 4.0. I keep getting no or little reference on how to to this and was hoping I can get a full tutorial
    on how to sync over the Internet using Replication Manager.

    I think SQL*Net uses port 1525.

  • MWB (tool mdb -- Oracle 8i)

    A number of the industry standard PC-Based tools have mdb (Access) backends. (In our case, Database and Application Security Scanning Tools.) We would convert the results from these tools to Oracle 8i for enterprise-wide web-based access and reporting.
    Do you have something like a TAR process? I have a sample mdb file, stripped down to a troublesome table (most of the migration works fairly well). How do I send this to you?
    Also, I have some questions on updates/merging of new data from a mdb that has been previously migrated. I haven't attempted one yet, but didn't see much info in the docs. Any suggestions on schema or data updates being migrated (in a semi-continual series of migrations)?
    Kurt
    null

    Sorry,
    I just saw your announcement on help-desk.
    null

  • Random Query with Access

    I am using MS Access and since upgrading to MX6.1 "Order BY
    Rnd(RecordID)" no longer works in the query. I have searched and
    tried everything I have found with no success. I realize this is a
    an issue with the new drivers that area assigned through the CF
    Admin interface. I have tried the jodbc technique instead of using
    the default MS Access with Unicode, but my websites fail whenever I
    do so I have to switch back.
    I have tried the various coding solutions and the tags.
    Nothing works. It used to be so simple. Why someone at
    Macromedia/Adobe will not put out a simple patch to fix this I do
    not know. They even know it's an issue. Can anyone tell me what to
    do. This is very frustrating. Moving to another database platform
    is not a solution either.
    I need to simply output 3 to 5 random records from a query
    and what used to be very easy has been a thorn in my side for over
    a year now. Crazy....
    Thanks in advance to anyone who can help....
    David G. Moore, Jr.
    UpstateWeb LLC

    Dan,
    I did as you suggested and reported the bug again, but have
    not heard back. Interestingly enough, when you go to report a bug
    using the link you suggested, there is no place to tell them the
    issue is with ColdFusion. They require you select a product and it
    is not even listed. I used GoLive to report the bug becuase there
    wasn't anything else. I haven't heard anything so I wonder if that
    messed things up. Do you know of another way to contact them about
    this issue or do you know someone to send an email to. You seem to
    know more than most and have an inside track.
    I always appreciate your feedback and regard your advice very
    highly as you are constantly ingaged in these forums. If you could
    provide me with some more direction I would appreciate it. I just
    don't know why they don't seem to want to fix the issue with the MS
    Access datasource drivers. As I have searched on the issue ever
    since upgrading from 5.0 to 6.1, I have found a lot of unhappy
    people. Is it really that big of a deal. I mean, it is broken. It
    does not work. Wouldn't they want to fix it?
    Again, I would appreciate your feedback!

  • Microsoft Access Windows 2008 64 Bit CFMX 9 64 Bit

    We are migrating from CFMX 7 on a 32 bit Windows server to Windows 2008 64 bit with CFMX 9 standard 64 bit edition.  When attempting to add Microsoft Access datasources, I received the Unable to update the NT registry. Variable DRIVERPATH is undefined error.  I search the net and tried the recommended solutions I came across including installing Microsoft Office 2010 64 bit.  None of the solutions have worked.  I eventually came across the error "architecture mismatch between the driver and application" when trying some of the different solutions.
    Most, if not all, of the recommendations I found online were dealing with Windows 7 or Vista, not server operating systems though.
    This is a shared hosting server for our clients and some of them have older web sites implemented in Access and are reluctant to switch to SQL server because of the size and scope of their databases and it is really us who wish to migrate them in order to move to newer hardware and decommission the older server(s).
    Has anyone successfully defined Access datasources within CFMX 64 bit on a server operating system and if so, how?  Thanks in advance!

    I beleive that yes you can install 32 bit ColdFusion on a 64 bit system.  The troulbe is that you also need a 32 bit JVM and a 32 bit IIS.
    As I understand it, with IE 7 you can mix and match 32 bit and 64 bit, but in IE 6 it has to be all one or the other.
    I have read discussions on the hows and whys and the ins and outs of installing 32 bit CF on 64 bit systems.
    What I do not recall is if you can install both 32 bit and 64 bit CF on a single machine.  You may be able to with a multi-home or J2EE configuration of CF enterprise.

Maybe you are looking for

  • PDF file cannot be viewed from OA Framework page.

    Hi all, I have developed an OA Framework page which shall present an XMLP report in pdf within the browser. When I click on my menu item which opens the oa page, the Open file.. diaglog appears. When I open or save the file (and thereafter opening if

  • Since installing OS X Lion it is impossible to type

    After installing OS X Lion, it is impossible to type in any application. The insertion point jumps everywhere. Installed 2GB additional memory but no help. My MacBook is now useless!

  • Which color profile to use, if any, for web?

    Hi, For years, I've been accustomed to saving JPGs for web use by including the sRGB color profile. However, I now realize that IE either discards color profiles, or forces a new one on them (took me this long to notice because while I always proof-c

  • Url for webservice ?

    Hi Guys, I have generated the webservice from the ID and saved the file as wsdl. where can i find the url for this webservice which i can use to send the request from webdynpro application Thanks, srini

  • I want the title on the browser to change when one of the frames changes in the Frameset.

    I am using frames (please don't tell me off!) and PHP. I want the title on the browser to change when one of the frames changes in the Frameset. Normally the title of the browser comes from the Frameset, But I am sure I have seen websites where the t