Lookup for 2 domanins in ESB DVM in Oracle BPEL
Hi
I need lookup in one DVM but the in condition should be 2 Domains. I explain me:
I've a DVM like that:
| VALUE | FATHER | CHILD |
| 1 | SI | NO |
| 2 | NO | NO |
| 3 | SI | SI |
Then I need lookup for the FATHER and CHILD values to obtain the VALUE.
Someone Know how can I do??
Thanks and regards.
Try here.
http://docs.oracle.com/cd/E14571_01/integration.1111/e10224/med_dvm.htm
Thanks,
Vijay
Similar Messages
-
Hi All,
1)Can we use the DVM created the ESB, in Oracle BPEL.
I checked the developer guide of ORacle BPEL 10.1.3.1,it says it is currently not supported.
Is this supported in 10.1.3.4??
2)I have creted a DVM in ESB control.
The name of the DVM is Vendor.
There are two columns inside the DVM
columnn,value
And there are two rows of data
1)Currency code, GBP
I tried using the look-upDVM function in the XSLT
The configuration was
<xsl:value-of select="orcl:lookup-dvm('Vendor','Column','Currency Code','Currency Code','')"/>
But this is not fetching any value.
Please help me i this regard.
Regards
AshwiniHi Ashwini,
As per the document, you can either have the DVM store din your local file system as an xml or can store it in your ESB Repository so that it can be used when you are specifying a transformation in a routing rule.
Two possible scenarios :
(1) You can import an XML lookup file exported from a database as the basis for a domain-value map . To import an XML lookup file exported from a database as the basis for a domain-value map.This scenario assumes that you exported the schema from the database using a tool such as XSU, and have converted the exported file to use the schema required for ESB domain-value maps.
(2) Move a domain-value map from a test system to a production system.
Hope that's much clear now!
Cheers
A -
Problem in Jndi lookup for ITaskService
HI,
I am trying to initiate oracle bpm Human task programatically by using Java remotely.
for this I am using following JNDI lookup for ITaskService.
Hashtable ht = new
Hashtable<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://localhost:7001");
ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "username");
ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "password");
Context ctx = new InitialContext(ht);
ITaskService taskService = (ITaskQueryService)ctx.lookup("ejb/bpel/services/workflow/TaskServiceBean");
taskService.initiateTask(task);
It the right approach or not.
Please help.To access human workflow api remotely try using the following code :
Map properties = new HashMap();
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://localhost:8001");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "welcome1");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "weblogic");
IWorkflowServiceClient wfSvcClient =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT, properties, null);
//Get the task query service
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
//Login as weblogic
IWorkflowContext ctx = querySvc.authenticate("weblogic","welcome1".toCharArray(),null);
after getting the workflow context, you can call any method like query task list. perform actions etc. just see the api doc.
Regards,
Anshul -
Message-Mapping: Use same RFC lookup for different target fields
Hello,
I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
The input parameter (=source field value) would be the same.
Thank you for your advice!Exactly.
Here is a UDF example I have that you could adapt to your needs.
Set
public String setCounter(String a,String b,Container container){
/* Store values in global datacontainer
a: mapping value and return valueparameter
b: name for stored value parameter
GlobalContainer myGlobalContainer;
myGlobalContainer = container.getGlobalContainer();
myGlobalContainer.setParameter(b.toUpperCase(), a);
return a;
Get
public String getCounter(String a,Container container){
//write your code here
GlobalContainer gc = container.getGlobalContainer();
if (gc.getParameter(a) != null) {
return String.valueOf(gc.getParameter(a));
} else {
return "1"; -
Problems with JNDI lookup for java:comp/env/ejb
Hi all,
I'm using OC4J 9.0.3 and I have problems when looking up for the local
EJB context.
I have a SLSB which refers to another SLSB via a JNDI mapping like
shown below. Both services are deployed within one EAR file.
(snippets of ejb-jar.xml and orion-ejb-jar.xml)
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>ServiceABean</ejb-name>
<home>com.coi.ServiceAHome</home>
<remote>com.coi.ServiceA</remote>
<ejb-class>com.coi.ServiceABean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/some/sub/packages/ServiceB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.coi.ServiceBHome</home>
<remote>com.coi.ServiceB</remote>
</ejb-ref>
</session>
</enterprise-beans>
</ejb-jar>
<orion-ejb-jar>
<enterprise-beans>
<session-deployment location="global/some/sub/packages/ServiceA" name="ServiceABean">
<ejb-ref-mapping name="ejb/some/sub/packages/ServiceB" location="global/some/sub/packages/ServiceB" />
</session-deployment>
</enterprise-beans>
</orion-ejb-jar>
The ApplicationInitialContextFactory will be used (prepared by the container),
so the lookup for ServiceB within a method of ServiceA should work as follows:
public class ServiceABean implements SessionBean
public void someMethod()
InitialContext con = new InitialContext(); // will be of class ApplicationContext
Context localEjbContext = (Context)con.lookup( "java:comp/env/ejb" );
ServiceBHome serviceBHome = (ServiceBHome) PortableRemoteObject.narrow(
localEjbContext.lookup( "some/sub/packages/ServiceB" ),
ServiceBHome.class );
The problem is now, that the lookup for "java:comp/env/ejb" doesn't work
and throws a NameNotFoundException.
To figure out what's actually happening during lookup I debugged a little bit and
tried a few things:
1. A lookup for "java:comp" works fine. It returns an instance of class FlatMapContext
which consists of a hash map which itself contains an entry for "env".
2. So a lookup for "env" on that FlatMapContext also works and returns an instance of SubContext.
3. A lookup for "ejb" using this SubContext causes a NameNotFoundException
with message "java:comp/env/ejb not found".
4. A lookup like con.lookup( "java:comp/env" ) throws also a NameNotFoundException
with message "java:comp/env not found (not inside a J2EE module, for instance a Web-App,
EJB, or Application-Client)".
Does anyone know something about this?
Regards
--thomasHi Debu,
Great! 9.0.4 will be released in june/july this year, right? Sorry for my ironical reaction, but does that mean, that I don't have any chance to get my whole stuff running in 9.0.3? I cannot believe that. Isn't there a wordaround I could apply? A setting or whatever to substitute the daft FlatCtx by something else that is implemented according to the spec?
Regards
--thomas -
Lookup for value while mapping
Hi ,
I have a situation in hand and i am looking for a performance effective solution .May be anyone can help me.
I have a PO where i have to map it to a xml . at the item level i have to fetch a field from the SAP Backend and then populate the XML with that value.
I can write a lookup for that field using the JCO lookup.
but this code will execute for each line item . right !!!.
Can i do this in one call and get the field data for all the line items and then split it according to each occurance of line item
Regards
NikhilNikhil,
This can be done but with some changes in the RFC.
1. Make changes in the RFC such that it can handle multiple records and send the response in multipkle records . ( The RFC code should contain TABLE to handle this ).
2. Write an Advanced user Defined Function that will take all the input fields as the input, call the RFC and get the response values. Stored them in an array declared in the Java Section ( from Sp 14 onwards, there is a java section that allows you to declare Global Variables and use them anywehere in your mapping ).
3. This user defined function should be called at the mapping of the root nodes.
4. Now , write another UDF , that will read the values out of the global variable array using a global counter , map it to the target and increment the same.
Regards
Bhavesh -
LOOKUP for accounts in %ACCOUNT_SET%
Hye. I try to do a easy scriptlogic but I get error.
I have an input report witth 3 accounts (5700,5710,5720) as lines and 2009.JUN and 2009.JUL as columns.
I introduce data in month 2009.JUL in input report and I use LOOKUP in a Script Logic Default in order to get the data of 2009.JUN for each account from other cube "FINANCE".
The default code is:
*LOOKUP FINANCE
*DIM ACCOUNT="%ACCOUNT_SET%"
*DIM CATEGORY="BUDGET"
*DIM JUN:TIME="2009.JUN"
*ENDLOOKUP
*XDIM_MEMBERSET ACCOUNT=5700, 5710, 5720
*WHEN CATEGORY
*IS BUDGET
*REC(EXPRESSION=LOOKUP(JUN), TIME=2009.JUN, ACCOUNT)
*ENDWHEN
*ENDWHEN
*COMMIT
I want to make a LOOKUP for each account (5700, 5710, 5720) to Cube FINANCE but when I push "Send Data" I get the next error: "Error running default logic (Member "5700,5710,5720" not exist"".
I think that the LOOKUP considers that DIM ACCOUNT is "5700,5710,5720" all together, so I get an errror.
How can I do it?Thanks Seldon but It doesn´t work.
I validate default script with your code and I get an error: Multi LOOKUP in the same cube not allowed.
I use the next code and when i push sendata in my report, I get an error : Error running default logic (Member "%ACCT%" not exist.
*LOOKUP FINANCE
*DIM ACCOUNT="%ACCT%"
*DIM CATEGORY="BUDGET"
*DIM JUN:TIME="2009.JUN";
*ENDLOOKUP
*XDIM_MEMBERSET ACCOUNT=5700, 5710, 5720
*FOR %ACCT%=5700,5710,5720
*WHEN CATEGORY
*IS BUDGET
*REC(EXPRESSION=LOOKUP(JUN), TIME=2009.JUN)
*ENDWHEN
*ENDWHEN
*COMMIT
*NEXT -
Prob in IR :Internal error during bean lookup for bean RepObjectAccessBean
Hi,
I am facing the problem in IR .
<b>Internal error during bean lookup for bean RepObjectAccessBean</b>
is the Error window I am getting frequently, After getting this error, It is no allowing to open any of the IR Objects.
Thanks in advance,
Dhanabal THi Dhanabal,
i got the same error. But it is clear.
Please chek once ur configuration part. The error is in configuration part only.
once check all the steps in ur configuration part.
REgards,
chandra. -
Lookup for local interfaces.
Isn't lookup for local interfaces allowed from web client. I have defined a
ejb-reference for the bean in my web.xml. When I do a lookup as
TestBeanLocalHome home = (TestBeanLocalHome)
ic.lookup("java:comp/env/ejb/TestBeanLocal");
This statement result in an error
javax.naming.NameNotFoundException: Unable to resolve
comp/env/ejb/TestSLSBeanLocal/ Resolved: 'comp/env/ejb'
Unresolved:'TestBeanLocal' ; remaining name ''
at
weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingN
ode.java:887)
at
weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:219)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:183)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:339)
at
weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWr
apper.java:36)
at
weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at jsp_servlet.__client._jspService(__client.java:108)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
The same thing works when lookup is done for remote interface.
Regards,
Rupesh.You need to use "ejb-local-ref" to refer to local interfaces. I meant
"ejb-local-ref" element was not available in web.xml in Servlet 2.2. They
were added in Servlet 2.3 specification. So unless your app server is
Servlet 2.3 compliant it does not need to support references to local
interfaces in web components (servlets or jsps). Weblogic 6.1 did not seem
to support them last time I tried.
-- Anand
"Rupesh" <[email protected]> wrote in message
news:[email protected]...
what do u mean by local interface in web component? its ejb's local
interfaces and lookups are any way being
done using ejb-ref and ref mapping are given in weblogic.xml.
Where does Servlet spec come into the picture?
Do you mean to say that you can not lookup for local home from a jsp in
WL6.1?
Regards,
Rupesh.
Anand Byrappagari <[email protected]> wrote in message
news:[email protected]...
Are you using Weblogic 6.1? Then local interfaces in web components arenot
supported. Local interfaces were added only in Servlet 2.3 I think.Weblogic
6.1 is not completely compliant with Servlet 2.3.
-- Anand
"Rupesh" <[email protected]> wrote in message
news:[email protected]...
Isn't lookup for local interfaces allowed from web client. I have
defined
a
ejb-reference for the bean in my web.xml. When I do a lookup as
TestBeanLocalHome home = (TestBeanLocalHome)
ic.lookup("java:comp/env/ejb/TestBeanLocal");
This statement result in an error
javax.naming.NameNotFoundException: Unable to resolve
comp/env/ejb/TestSLSBeanLocal/ Resolved: 'comp/env/ejb'
Unresolved:'TestBeanLocal' ; remaining name ''
at
weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingN
ode.java:887)
at
weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:219)
atweblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:183)
atweblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
atweblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
atweblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
atweblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:339)
at
weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWr
apper.java:36)
at
weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at jsp_servlet.__client._jspService(__client.java:108)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
The same thing works when lookup is done for remote interface.
Regards,
Rupesh. -
Can esb DVM(Domain-value mapping ) support multi-language ?
I create a dvm , and add some rows in Chinese , but when I restart the soa service , all the DVM that I created disappeared.
Can esb DVM(Domain-value mapping ) support multi-language ?
Edited by: user10732687 on 2009-8-23 下午7:39DVM is designed to use in English only and not intended to support Multi language. It is the job of consumer application to convert from English to native language(Chinese in your case).
Thanks,
Vamsee. -
Ant Deployment of ESB DVM (domain value mappings)
Is there way to deploy domain value mappings stored as xml-files to the ESB using an ant-script?
Hi Sjoerd,
I tried to use the ESB client API but got this error when running my ant-task.
07/10/31 10:46:08 org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded
07/10/31 10:46:08 at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:294)
07/10/31 10:46:08 at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:116)
07/10/31 10:46:08 at oracle.tip.esb.dvm.configuration.servlet.command.AbstractDVMCommand.getMultipartItems(AbstractDVMCommand.java:44)
07/10/31 10:46:08 at oracle.tip.esb.dvm.configuration.servlet.command.ImportDVMCommand.execute(ImportDVMCommand.java:44)
07/10/31 10:46:08 at oracle.tip.esb.configuration.servlet.CommandServlet.doJob(CommandServlet.java:109)
07/10/31 10:46:08 at oracle.tip.esb.configuration.servlet.CommandServlet.doPost(CommandServlet.java:76)
07/10/31 10:46:08 at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
07/10/31 10:46:08 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/10/31 10:46:08 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
07/10/31 10:46:08 at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
07/10/31 10:46:08 at java.security.AccessController.doPrivileged(Native Method)
07/10/31 10:46:08 at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
07/10/31 10:46:08 at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
07/10/31 10:46:08 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
07/10/31 10:46:08 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
07/10/31 10:46:08 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
07/10/31 10:46:08 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
07/10/31 10:46:08 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
07/10/31 10:46:08 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
07/10/31 10:46:08 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
07/10/31 10:46:08 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/10/31 10:46:08 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/10/31 10:46:08 at java.lang.Thread.run(Thread.java:595)
Here is my code:
HashMap<String,String> requestProps = new HashMap<String,String>();
requestProps.put("zipFile", "DVM-SID-MRTrans-InteractionStatus.xml");
requestProps.put("importMode", "overwrite");
ConsoleClient client = ConsoleClientFactory.getConsoleClient(getHost(), getPort(), getUsername(), getPassword());
client.perform("ImportDVM", requestProps);
I decompiled the ESB client API and saw that the contentType is hardcoded to application/x-www-form-urlencoded
Any idea to solve this?
Regards, Harald -
JNDI Lookup for JMS Topic issue.......!
Hi,
Our application is deployed on two nodes (MS1 and MS2 in a cluster) and I created JMSServer on MS1, JMS ConnectionFactory and Distributed Topic are targeted on both MS1 and MS2 i.e on entire cluster.
We have the JMS Code in postStart() method of starup class which extends ApplicationLifecycleListener which would create the JMS Subcriber and set the message listener on to it.
code snippet:
System.out.println("createSubscriber called");
subSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
// Lookup for the Topic
Topic cadTopic = (Topic) ctx.lookup("JMSTopicLog4j");
System.out.println("Topic is: " + cadTopic.getTopicName());
// Create JMS Subscriber.
cadSubscriber = subSession.createSubscriber(cadTopic);
// Set the listener to Subscriber.
cadSubscriber.setMessageListener(new CADMessageListener());
topicConnection.start();
When I start the cluster (managed Servers MS1 and MS2) for the first time and deploy the application on them (entire cluster) it works well i.e. message listener is active and able to receive messages published by publisher but when I try to stop and start MS2 it gives the following exception during server startup
javax.naming.NameNotFoundException: Unable to resolve 'JMSTopicLog4j'. Resolved ''
javax.naming.NameNotFoundException: Unable to resolve 'JMSTopicLog4j'. Resolved ''; remaining name 'JMSTopicLog4j'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1123)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:250)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:171)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:204)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:267)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
Note: I thought my application context is getting started before JNDI tree is loaded but I could see that it is able to lookup the ConnectionFactory and throws the given exception when it comes to lookup code of JMS Topic.
is there any configuration issue or am I missing something? Please help me in this regard.
Thanks in advance.
Kris.Very interesting, I mean in the sense that we have the same setup, but instead of topic we are using the queues.
And our problem is exactly the same,deployment works but after restart same javax.naming.NameNotFoundException happens on server 2. -
JNDI lookup for UserTransaction
Hi all,
in Weblogic, in a typical scenario, do a client provide exactly
one JNDI lookup for the UserTransaction object (interface) or do
the client have to provide a JNDI lookup for each transaction?
In some EJB implementations, a JNDI lookup for UserTransaction
returns always the same reference. For example, in JOnAS, you can
have one static reference which is set when the client starts.
Then, more threads can simultaneously use the same static
UserTransaction reference without any conflict, since the
implementation of UserTransaction recognizes, which thread invoked
a particular method.
In other words, can I make an assumption that two different JNDI
lookups for UserTransaction returns different references or not?
Thanks a lot,
Marek Prochazka
Distributed Systems Research Group
Department of Software Engineering
Charles University, Faculty of Mathematics and Physics
Malostranske namesti 25, 118 00 Prague 1, Czech Republic
phone: +420-2-2191 4236
http://nenya.ms.mff.cuni.cz/thegroup/
Actually, UserTransaction is a singleton and it's not a transaction. It's just
very mis-named.
It should be called UserTransactionManager or UserInterfaceToJTA.
The actual transaction is javax.transaction.Transaction.
-- Rob
Cameron Purdy wrote:
> Within a transaction, it is different instances? For example, if you call
> it two times one right after another?
>
> A transaction is a unit of work. I understand why the transaction object
> changes from transaction to transaction, since a single transaction object
> (UserTransaction) represents exactly one transaction. Why would it be a
> singleton? It is not a transaction manager.
>
> Peace,
>
> --
> Cameron Purdy
> Tangosol, Inc.
> http://www.tangosol.com
> +1.617.623.5782
> WebLogic Consulting Available
>
> "Sarita" <[email protected]> wrote in message
> news:[email protected]...
> >
> > Hi Priscilla--
> >
> > This is not the behavior that I'm seeing, and I'm perplexed.
> > Every time I request a UserTransaction from JNDI, I receive a
> > a different instance. Should the value immediately returned by JNDI be
> the singleton
> > instance? If not, then how do I retrieve the singleton instance?
> >
> > I would like a session bean to start a transaction, and then call a method
> on another
> > session bean (which should operate under the same transaction). How does
> the second
> > session bean grab the correct transaction object? Is that possible?
> >
> > Thanks In Advance,
> > Sarita
> >
> > "Priscilla Fung" <[email protected]> wrote:
> > >
> > >Hi Marek,
> > >
> > >In Weblogic 6.0, JNDI lookup of UserTransaction returns a reference to
> the
> > >singleton
> > >Transaction Manager instance, which is thread-safe and can be used from
> > >multiple
> > >threads for transaction demarcations etc.
> > >
> > >-- Priscilla Fung, BEA Systems, Inc.
> > >
> > >"Marek Prochazka" <[email protected]> wrote:
> > >>
> > >>Hi all,
> > >>
> > >>in Weblogic, in a typical scenario, do a client provide exactly
> > >>one JNDI lookup for the UserTransaction object (interface) or do
> > >>the client have to provide a JNDI lookup for each transaction?
> > >>
> > >>In some EJB implementations, a JNDI lookup for UserTransaction
> > >>returns always the same reference. For example, in JOnAS, you can
> > >>have one static reference which is set when the client starts.
> > >>Then, more threads can simultaneously use the same static
> > >>UserTransaction reference without any conflict, since the
> > >>implementation of UserTransaction recognizes, which thread invoked
> > >>a particular method.
> > >>
> > >>In other words, can I make an assumption that two different JNDI
> > >>lookups for UserTransaction returns different references or not?
> > >>
> > >>Thanks a lot,
> > >>Marek Prochazka
> > >>--------------------------------------------------------------
> > >> Distributed Systems Research Group
> > >> Department of Software Engineering
> > >> Charles University, Faculty of Mathematics and Physics
> > >> Malostranske namesti 25, 118 00 Prague 1, Czech Republic
> > >> phone: +420-2-2191 4236
> > >> http://nenya.ms.mff.cuni.cz/thegroup/
> > >>--------------------------------------------------------------
> > >>
> > >
> >
-
JNDI lookup for weblogic.management.MBeanHome
Tried to do JNDI lookup for MBeanHome. It could resolve
weblogic.management, but not MBeanHome.
Any idea? Thank you
T. Pei
PS
The statement and the error message:
MBeanHome mBeanHome = (MBeanHome) initialContext.lookup
("weblogic.management.MBeanHome.JNDI_NAME.MyServer");
javax.naming.NameNotFoundException:
Unable to resolve weblogic.management.MBeanHome.JNDI_NAME.MyServer
Resolved: 'weblogic.management'
Unresolved:'MBeanHome' ; remaining name 'JNDI_NAME.MyServer'I answered this in my last post, but to clarify your attempt below.
you can access MBeanHome through JNDI in any of three ways that I
currently know...
MBeanHome mBeanHome =
(MBeanHome)ctx.lookup("weblogic.management.adminhome");
MBeanHome mBeanHome =
(MBeanHome)ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
MBeanHome mBeanHome =
(MBeanHome)ctx.lookup(MBeanHome.JNDI_NAME+"."+yourservername);
typically yourservername = "myserver"
when I print MBeanHome.ADMIN_JNDI_NAME I get
"weblogic.management.adminhome"
when I print MBeanHome.JNDI_NAME I get
"weblogic.management.home"
so using MBeanHome.JNDI_NAME+"."+yourservername is the same as
"weblogic.management.home.myserver", if the server you are trying to access
is called myserver.
may be more information than you want.
"T. Pei" <[email protected]> wrote in message
news:3a7a1562$[email protected]..
>
Tried to do JNDI lookup for MBeanHome. It could resolve
weblogic.management, but not MBeanHome.
Any idea? Thank you
T. Pei
PS
The statement and the error message:
MBeanHome mBeanHome = (MBeanHome) initialContext.lookup
("weblogic.management.MBeanHome.JNDI_NAME.MyServer");
javax.naming.NameNotFoundException:
Unable to resolve weblogic.management.MBeanHome.JNDI_NAME.MyServer
Resolved: 'weblogic.management'
Unresolved:'MBeanHome' ; remaining name 'JNDI_NAME.MyServer' -
Revision: 13366
Revision: 13366
Author: [email protected]
Date: 2010-01-07 22:15:50 -0800 (Thu, 07 Jan 2010)
Log Message:
Ensuring that AFEFontManager, if it is available, overrides the lookup for embedded fonts for all supported font types, including TTF, when embedding legacy DefineFont3 fonts. BatikFontManager will remain a backup in the event that AFEFontManager is not found though BatikFontManager;s support is limited to TTF for legacy DefineFont3 fonts.
QE notes: Remember that bitmap comparisons could change slightly
Doc notes: N/A
Bugs: N/A
Reviewer: For Gaurav
Tests run: checkintests, QE had run local tests
Is noteworthy for integration: Yes
Modified Paths:
flex/sdk/trunk/frameworks/flex-config.xmlI got again a total system freeze today when I wanted to launch firefox using only the openbox menu, without wbar running.
So I decided to try now the 'nouveau.noaccel=1' kernel command line parameter, and to use again wbar for my frequently used applis.
In the Xorg log, the differences are:
without 'nouveau.noaccel=1'
[ 30.761] (II) UnloadModule: "nv"
[ 30.761] (II) Unloading nv
[ 30.761] (--) Depth 24 pixmap format is 32 bpp
[ 30.762] (II) NOUVEAU(0): Opened GPU channel 0
[ 30.765] (II) NOUVEAU(0): [DRI2] Setup complete
[ 30.765] (II) NOUVEAU(0): [DRI2] DRI driver: nouveau
[ 30.765] (II) NOUVEAU(0): [DRI2] VDPAU driver: nouveau
[ 30.776] (II) EXA(0): Driver allocated offscreen pixmaps
[ 30.777] (II) EXA(0): Driver registered support for the following operations:
[ 30.777] (II) Solid
[ 30.777] (II) Copy
[ 30.777] (II) Composite (RENDER acceleration)
[ 30.777] (II) UploadToScreen
[ 30.777] (II) DownloadFromScreen
[ 30.777] (==) NOUVEAU(0): Backing store disabled
[ 30.777] (==) NOUVEAU(0): Silken mouse enabled
with 'nouveau.noaccel=1'
[ 1191.621] (II) UnloadModule: "nv"
[ 1191.621] (II) Unloading nv
[ 1191.621] (--) Depth 24 pixmap format is 32 bpp
[ 1191.621] (EE) NOUVEAU(0): Error creating GPU channel: -19
[ 1191.621] (EE) NOUVEAU(0): Error initialising acceleration. Falling back to NoAccel
[ 1191.621] (==) NOUVEAU(0): Backing store disabled
[ 1191.621] (==) NOUVEAU(0): Silken mouse enabled
[ 1191.621] (==) NOUVEAU(0): DPMS enabled
So now 3D acceleration is disabled.
I will see now if the system is stable enough for my daily usage and gives satisfactory performances.
I am almost sure that the mesa nouveau dri driver is the cause of the freezes.
Last edited by berbae (2013-03-27 10:07:42)
Maybe you are looking for
-
Dear Experts, What is diffierence in creating batches using t code MSC1N and creating batches during GR? Please explain me the difference. Thanks John Edited by: johncusack on Aug 14, 2010 4:09 AM
-
I am trying to set up ICloud on my Ipad. ICloud doesn't show up as an option in my settings. Help! I want to sync all of my content from my IMac to My Ipad
-
New photos are not showing up in my Photo Stream Folder on my PC. Why?
New photos are not showing up in my Photo Stream Folder on my PC. Why?
-
i have an issue trying to figure out the proper way to insert records into a database table. i apologize if this is more a database question than a java question but i didn't know where else to turn. my issue is trying to understand the best way to d
-
My browsing history stops after yesterday how do i fix this
Under history there is supposed to be today , yesterday, last 7 days, i think then maybe months . Well my history only has today and yesterday, How do i fix it so by browsing history is remembered longer than that.