WebLogic - MQSeries Classes transaction
Hello All,
This is not directly related with JMS, but I hope someone can give me
a help.
I'm using WebLogic 6.1 SP2 with MQSeries 5.2.1. I have some EJBs doing
some database access, and putting/getting some MQSeries messages. I'm
using MQ Classes for Java (not the JMS version). Is there any way that
I can group all the database access and message puts/gets in the same
transaction? I need to or do all the actions/ or do not do any action.
Please help me.
Thanks,
Paulo Moreira
There are white papers on the topic of using MQSeries JMS transactionally.
The WL messaging bridge is sometimes the cleanest solution.
Look for subject "How to use IBM MQ as a JMS Provider?" for info.
Post to the "transaction" newsgroup to get info on getting
the non-JMS java classes to work here,
Tom
Paulo Moreira wrote:
> Hello All,
>
> This is not directly related with JMS, but I hope someone can give me
> a help.
> I'm using WebLogic 6.1 SP2 with MQSeries 5.2.1. I have some EJBs doing
> some database access, and putting/getting some MQSeries messages. I'm
> using MQ Classes for Java (not the JMS version). Is there any way that
> I can group all the database access and message puts/gets in the same
> transaction? I need to or do all the actions/ or do not do any action.
>
> Please help me.
>
> Thanks,
>
> Paulo Moreira
Similar Messages
-
WLS 10.0 Mp1 - Weblogic startup class to initialize client's SSL channels
Hi,
Is it possible to use Weblogic startup class to initialize client's SSL channels?
Any pointers are appreciated.
Thanks in advance.Hey
If possible can you explain the issue in detail.
What do you mean by “initialize client's SSL channels”
Regards,
Hussain -
Weblogic startup class and EAR file
Hi,
I am using WL 8.1.5.
I have a weblogic starup class MyStartup that implements T3StartupDef. (it does not specify package).
I jar-ed it. And I placed MyStartup.jar file into the MyEA.ear file. And I placed that into applications dir.
With WL Console I defined the startup class and for the ClassName specified MyStartup.
Yet I get the java.lang.ClassNotFoundException.
I also have a Manifest.mf file with
Class-Path: MyStartup.jar
Please help me solve this problem, I literally don't know what to do next.
MBHi,
thanks.
This seems like a completely opposite method of the depplying startup class with weblogic console.
Does my class still need to implement T3StartupDef?
I get this exception. And my classnotfound is still there.
Exception:weblogic.management.ApplicationException: startup.MyStartup
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2484)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2396)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:883)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:591)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Regards,
MB -
Weblogic Startup Class does not run as Windows Service
If you know the answer, plase send me an email at [email protected]
I'm running a weblogic startup class that starts a Thread. I need to
run a batch program that should be running as long as WebLogic is
running (to process new orders).
It works fine when I run WebLogic (5.1 SP8) from a script, but causes
problem when I'm running it as a Windows Service. It calls the
startup class, however, the startup class never spawns the Thread
class.
Following is excerpts from different components:
=============================================================
*** weblogic.properties ***
weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
*** WebLogicStartupPdfCreator.java ***
public class WebLogicStartupPdfCreator implements T3StartupDef {
public String startup(String name, Hashtable args) throws
Exception {
Thread t = new ProductionPdfBatchRunner();
t.start();
return "success";
*** ProductionPdfBatchRunner.java ***
public class ProductionPdfBatchRunner extends Thread {
public void run() {
try {
//work being done here
this.sleep(30000);
catch (InterruptedException ie) {
catch(Exception e) {
e.printStackTrace();
=============================================================
Thanks for any helpHi,
Ok. Few suggestions.
1. Can you review the SAP note:
552286 Troubleshooting for the SAP Web Dispatcher
2. When you said: "web dispatcher does not get started ", what error you got ? Can you be more details here ?
3. Please check the trace file dev_webdisp" that generated in the work directory. If the log entries is not abvious, increase the trace level to 2 or 3, and reproduce and re-check the trace file.
4. What is the output of the command "sapwebdisp -v"
5. How about sapwebdisp.pfl ? Are those settings correct ?
Hope this helps.
Regards,
Vincent -
Weblogic startup class (urgent)
Hi All,
I need a java program (weblogic startup class) which should fetch data from the database and instantiate another one class (it will be the data holder) and store that object into a webapplication context. Anyone tried this? Since its urgent any help will be appreciated.
Thanks in advance
Cheers,
PandiarajDo this in the init() method of a servlet and start
the servlet when you start your weblogic server
second that. just give a value of 1 for <load-on-startup> in web.xml -
Where is weblogic.Deployer class?
Where is weblogic.Deployer class?
Hi YE,
weblogic.Deployer class is present in "*weblogic.jar*" which can be found in WLS_HOME/wlserver_10.3/server/lib/weblogic.jar
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Come, Join Us and Experience The Magic… -
Hi
I want to know clear about link
Valuation Class - Transaction - Movement Type - Account
Could you please explain me about that.
Thanks and Best Regards,Hi,
Movement Type
Transaction key
Valuation class
G/L account
1. Transaction/event key is linked with movement type in T code OMWN.
2. Valuation class and G/L account are linked in OBYC.
when you post any goods movement ,say,Post goods receipt with ref to Purchase order.first system look for valuation class in accounting view (material master).Based on this,system searches for G/L account in OBYC.Now,I know movement type is 101,system look for transaction event key (BSX in case of 101 ) in OMWN to post the accountings.Hence,Account postings at the time of GR wud be
Stock account Dr -Transaction key BSX
GR/IR account Cr-Transaction key WRX
Hope it clarifies your doubts...
Please revert if you stil have further query.
Regards,
Vineet -
Hi,
Our requirement is to integrate the enqueueing of an
MQSeries 5.1 message within an XA transaction which
will be managed by Tuxedo. The other resource involved
in the transaction will be an Oracle8i database which
will be written to by a WeblogicEnterprise Java server.
Ideally we would like to write to the queue within the
same Java server, using the JMS for MQSeries patch.
I've read that if you want to use WLE to coordinate
then the anwer is that you must use the C/C++ interfaces
to MQSeries as opposed to the Java/JMS interfaces, but I
don't know if this is (still) the case.
Has anyone tried a Java solution ?
Thanks, Conor.Hi atheek1
Thanks for the reply, it worked. Before I mark this question as answered, pls. answer the below queries (Thanks a lot!)
1) Well, i just ticked transaction required and same transaction for response and it started working. I did not add routing options like you mentioned to QOS Exactly Once. Its working without it fine. So, my questions is what is the use of adding this QOS to exactly once. Is it mandatory?
2) I have a couple of OSB services in which rollback is working automatically (XA JMS to JCA FTP Adapter) and (XA JMS to JCA DB adapter XA data source), here rollback works automatically. I dont have to tick transaction required. So my question is, when an XA based connection factory picks a message from the queue, a transaction is started at the container level. So why tick transaction required at the message flow level, when the weblogic has already initiated a transaction. Since you said that HTTP transport commits a transaction even if 500 or 404 occurs, it makes sense to tick is transaction required and same transaction for response in OSB proxy service. But the remaining scenarios work without these options. Hence will it be wise to say that these settings are only required for HTTP transport coz of the way it behaves (commits 404 and 500).
Thanks -
How to use weblogic.logging classes in 6.0
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the 6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brianMy coding error. weblogic.logging.* classes work just fine in 6.0 (he said
sheepishly)!
-b
"Brian J. Levine" <[email protected]> wrote in message
news:[email protected]..
Hi,
We developed a number of logging classes under 5.1. One used
weblogic.logging.LogOutputStream to write messages out to the log. This
code no longer works under WLS 6.0. Everything compiles and runs but I
don't see any of our messages in any of the log files. Judging from the6.0
JavaDoc, it looks like LogOutputStream is no longer supported. So I
switched over to using NonCatalogLogger. Same results - no output in the
logs.
What am I missing?
Thanks.
-brian -
Local Class Transaction Code Problem
Hi friends,
I have created report program using local class. I have also used selection screen to get input from user. I have created oops transaction code (using se93) for that program.
Problem is selection screen is not displayed when program is executed using tcode.
I think logically it not possibel to display the selection screen. Is it true?. OR
What Should I do?.
Next Question is, I have also created global class from my report program. But i cant able to find my class in se24.
I have done following things.
1) imported a local class from my report prg. ( In pop up screen that class icon(circle shaped icon) shown in gray colour)
2) Assigend New class name starting with 'Z'.
3) Selected overwrite existing class checkbok.
4) selected import icon.
'Import Completed Succesfully' message appeared. Still i am not able to find my class.
Kindly provide answers.
Thanks In Advance,
S.SenthilHi senthil kumar ,
u can display the selection screen and secondly try to create your report in module pool type,
and when also check if the class is activated or not and then check in se24,
if still the issue remains
let me know...
thanks
ravi -
Wls 10.3 weblogic-webservices.xml transaction-timeout attribute not working
Hi, need some urgent need.
I have a stateless ejb webservice and I'm trying to set the transaction timeout for some of the methods. Right now my webservice transaction is timing out to the default of 30 secs. I've tried setting in the admin console the JTA transaction timeout option, didn't work (file a case with bea support #81233). And after days of researching and searching I came across that you can setup the weblogic webservice transaction-timeout thru the weblogic-webservices.xml deployment descriptor. Tried setting the transaction-timeout attribute to 120 secs. and that didn't work. Here is the snippet of the xml file.
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-webservices xmlns="http://www.bea.com/ns/weblogic/weblogic-webservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-webservices http://www.bea.com/ns/weblogic/weblogic-webservices/1.0/weblogic-webservices.xsd">
<webservice-description>
<webservice-description-name>com.starcomsoft.pp.system.jws.SystemWSImpl</webservice-description-name>
<webservice-type>JAXRPC</webservice-type>
<port-component>
<port-component-name>SystemWSSoapPort</port-component-name>
<service-endpoint-address>
<webservice-contextpath>starcomsoft_ws</webservice-contextpath>
<webservice-serviceuri>/SystemWSImpl</webservice-serviceuri>
</service-endpoint-address>
<transaction-timeout>120</transaction-timeout>
<reliability-config>
<inactivity-timeout>P0DT600S</inactivity-timeout>
</reliability-config>
</port-component>
</webservice-description>
</weblogic-webservice>
Does anybody have any clue to solve my urgent need.
Thanks in advance for your help or suggestion.Unhandled exception
Type=Segmentation error vmState=0x00040000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000033
Handler1=F144C588 Handler2=F1446A9C
Module=/app/oracle/product/Middleware/wlserver_10.3/server/native/aix/ppc/libmuxer.so
Module_base_address=D8457000
Target=2_40_20091214_049398 (AIX 5.3)
CPU=ppc (4 logical CPUs) (0x600000000 RAM)
----------- Stack Backtrace -----------
(0xD696E748 [libj9vm24.so+0x48748])
(0xD8383EDC [libjclscar_24.so+0x10edc])
(0xD8384514 [libjclscar_24.so+0x11514])
(0xD6967718 [libj9vm24.so+0x41718])
(0xD6967158 [libj9vm24.so+0x41158])
(0xD69640D0 [libj9vm24.so+0x3e0d0])
(0xD6932C9C [libj9vm24.so+0xcc9c])
(0xD69BBA18 [libj9prt24.so+0x3a18])
(0xD6932BB8 [libj9vm24.so+0xcbb8])
(0xD69A77CC [libj9thr24.so+0x27cc])
pthreadbody+0x118 (0xD010D784 [libpthreads.a+0x3784]) -
Hello,
I need to set up a start up class for quartz jobs in my weblogic server.
I have created the startup class from the weblogic console but i dont know where to put the class or java file.
Where is it read from?follow this :
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/ConsoleHelp/startup_shutdown.html#1108355 -
Weblogic startup class: problem calling EJB's
Has anyone ever experienced a problem in using a startup class (registered in weblogic.properties)
and tried to lookup and use an EJB in the same application?
Basically, I have a startup class which registers to receive messages from an
MQ queue, and when it receives a message, it tries to do a lookup of a bean and
use it, but I receive a 'NullPointerException'.
I'm running Weblogic 5.1
(I know that Weblogic 6.0 makes use of MessageDrivenBeans, but my app isn't using
6 or EJB 2.0)
Thanks...Can you post weblogic.log? Are you sure that EJB was deployed successfully.
Also comment the PROVIDER_URL in initial context and see if that solves the problem
Viresh Garg
BEA Systems
shaun wrote:
The exception is simply a 'NullPointerException' coming from the startup class
(I don't have the old log file or I would include the trace here.). Basically,
when my startup class receives a call to the onMessage(...) method (from listening
for messages), it looks up an EJB on the server, through the InitialContect class
and gets a 'null' returned back, thereby throwing the NullPointerException.
If anyone else is successful in having a startup class which can lookup and call
an EJB within the same Weblogic server, please help.
Thanks again....
Viresh Garg <[email protected]> wrote:
Can you post the exception stack trace? Also what exactly are you doing
in startup class.
Viresh Garg
Principal Developer Relations Engineer
BEA Systems
Shaun wrote:
Has anyone ever experienced a problem in using a startup class (registeredin weblogic.properties)
and tried to lookup and use an EJB in the same application?
Basically, I have a startup class which registers to receive messagesfrom an
MQ queue, and when it receives a message, it tries to do a lookup ofa bean and
use it, but I receive a 'NullPointerException'.
I'm running Weblogic 5.1
(I know that Weblogic 6.0 makes use of MessageDrivenBeans, but my appisn't using
6 or EJB 2.0)
Thanks... -
Using a weblogic.jar class to estimate number of web app users
Hi,
I'm trying to somehow estimate the number of people using a particular web app
deployment in Weblogic Server 6.1 SP3. Though I know that sessions are stateless,
there must be some way of getting an idea aboout usage mustn't there?! Any ideas
on how and which class to look at in weblogic.jar would be much appreciated.
Regards,
RobRobert:
So I get kind of tired writing stuff up and sending it out on newsgroups and
then not being able to go back and find the text and link to it as
references in subsequent posts. So I am going to try something different.
We'll see how this goes.
http://www.niffgurd.com/mark/work/blog/index.html#105380147933921144
Cheers
mbg
"Robert Hedges" <[email protected]> wrote in message
news:3eccfb32$[email protected]..
>
...I think I've narrowed my search down to the classweblogic/management/console/webapp._domain/__webappcomponentruntimetable.cla
ss
but I've no idea how to call the method I need.
Rob
"Robert Hedges" <[email protected]> wrote:
Thanks for that, Sam. I'm actually aware of the monitoring facility,
but am really
searching for a way to view the number of sessions independently from
the the
console, i.e. by calling some particular Java class in weblogic.jar.
Again, any
thoughts appreciated.
Rob
Sam Pullara <[email protected]> wrote:
In the console you can turn on session monitoring for a web application.
That should allow you to see the sessions that are being created.
Sam
On 5/19/03 11:33 AM, in article 3ec9157b$[email protected], "Rob
Hedges"
<[email protected]> wrote:
Hi,
I'm trying to somehow estimate the number of people using a particularweb app
deployment in Weblogic Server 6.1 SP3. Though I know that sessionsare
stateless,
there must be some way of getting an idea aboout usage mustn't there?!Any
ideas
on how and which class to look at in weblogic.jar would be much
appreciated.
>>>>
Regards,
Rob -
Weblogic DB Control transactions
There has to be an article describing a step by step solution to this seemingly very common problem. Could someone help me?
Using Weblogic Workshop 8.1 and default weblogic workshop sample domain......
1) I created a Workshop db control (jcx) to provide access to an Oracle database
2) I wanted to test, so I right clicked it and created a java web service test client
3) It appears that the wrapping web service control uses a default transaction utilizing the cgPool connection pool. However, my wrapped db control (jcx) uses a connection pool I created and the default BEA Oracle XA driver.
4) When I tried to run the test, I gotsome general XA error.
there has to be a white paper out there explaining how to do this successfully? Why is this out of box behavior? Every user or Workshop must run in to this.
Thanks in advance for your help. I googled this and can't find an answer, only a bunch of people who have experienced the same problem.
Thanks,
John CurleyThere has to be an article describing a step by step solution to this seemingly very common problem. Could someone help me?
Using Weblogic Workshop 8.1 and default weblogic workshop sample domain......
1) I created a Workshop db control (jcx) to provide access to an Oracle database
2) I wanted to test, so I right clicked it and created a java web service test client
3) It appears that the wrapping web service control uses a default transaction utilizing the cgPool connection pool. However, my wrapped db control (jcx) uses a connection pool I created and the default BEA Oracle XA driver.
4) When I tried to run the test, I gotsome general XA error.
there has to be a white paper out there explaining how to do this successfully? Why is this out of box behavior? Every user or Workshop must run in to this.
Thanks in advance for your help. I googled this and can't find an answer, only a bunch of people who have experienced the same problem.
Thanks,
John Curley
Maybe you are looking for
-
One of our customers has just reported that when they open the help chm provided as part of the release, they can see the TOC but in the main window is the message 'Navigation to the webpage was canceled.' They can click on different parts of the TOC
-
Hi. Can HERE maps be store in the memory card for offline usage? Solved! Go to Solution.
-
Can I use two different Touches (2G and 4G) with different OSs on same comp
I have a 2G 32 GB Touch running OS 3.13, which is just fine. I'm expecting a G4 64 GB Touch to arrive this coming week. I understand that OS 4.1 is already loaded on it. Will I be able to use both Touches with differing OSs on the same computer? I re
-
Why does applet send individual class requests?
I have a jnlp applet that takes too long to load. It's signed war file is about 16 Mb size. Server access log shows the jar files are loaded successfully, relatively quickly followed by a ton of http GET requests for individual class files. These res
-
Changing template background from a powerpoint presentation in Keynote?
Is simple to change the background template from a powerpoint presentation in Keynote? In powerpoint it is very simple but I need to know if it is also in keynote and how, of course without erase the data from the presentation. I have many powerpoin