JMS,Queues/Topics,Weblogic8.1
Hi
Im newbie to JMS, and I would like to get start with
JMS,Queues/Topics on Weblogic8.1 .
Can anybody provide me urls which are easy to
understand as well as run the sample applications.
thnks..
Maybe its worth starting with a library that wraps up JMS for you so you can focus on POJOs and your application objects - like Lingo
http://lingo.codehaus.org/
James
http://logicblaze.com/
Similar Messages
-
Regarding JMS-Queue/Topic in Proxy and Business service in OSB
Hi
I have one query regarding to the JMS-Queue/Topic.
I am published the message to the JMS-Queue/Topic.
----My Business-service configuration is---
General----Any xml
Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
Response--None
I call this Business-service in proxy-service of Routing message was published successfully to thee Queue.
I try to dequeue the message from that queue for this
--- I take another proxy with---
General----Any xml
Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
In meassage flow
Routing--second busines-service)
--- Second business-service configuration is---
General----Any xml
Tranport-File (C://temp)
Issue is when I publish the message to Queue,the message is also found in the file i.e C:temp. I don't now why this come to the file.*
Any suggestions
Thanks
ManiEither I did not get an idea, but in your JMS proxy you are routing to File :)
If you don't want file, why route to 2nd BS ? -
Accessing JMS Queue/Topic located in different Managed server on same domai
Our use-case is as follows.
In our weblogic domain we have SOA_Cluster and a stand alone managed server. All the custom JMS resources belong to a JMS server that is targeted to stand alone JMS server. We are trying to access JMS Queues/Topics located in the stand alone managed server from JMS adapter (part of SOA Cluster).
I am wondering what should be our adapter configuration in this scenario. In going through JMS adapter use-cases (below is the link), there is a mention of how to access resources located in Remote weblogic Domain. I am wondering if the same applies to us OR if there is better way to access JMS resources for our use case.
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_jms.htm#CJAHAFGF
Appreciate your feedback.Yes, the same applies for your case but no need to enable trust. Rest of the things will remain same.
Better you post weblogic related questions in Weblogic forum.
Regards,
Anuj -
How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic
Hello Sir:
How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic??
How to receive BusinessEvent from an external JMS Queue/Topic to oracle EBS 12 ??
It is a Third Party JMS Server, it has queue and topic etc??
which module should be used??
what is the basic steps to do??
Thanksswapnil_yeole wrote:
Hello,
We want to install Oracle EBS 12.1.1.
Our internet speed is very poor so it would not be feasible for us to download the software from E-delivery site.
Can you please let me know how & where to obtain Oracle EBS 12.1.1 DVD's.
Do we need to raise an SR with Oracle for same.
Thanks in advance.
Yes -- https://blogs.oracle.com/stevenChan/entry/how_to_obtain_media_packs
Thanks,
Hussein -
Cleanup JMS queue/topic messages
how do I clean up all messages left on a queue/topic ? thx.
There is no purge command.
In 8.1, delete and recreate the destination via the console,
JMX, or extensions.JMSHelper, the JMS
server doesn't even need to be booted. A timestamp
in the destination configuration is automatically set to
let JMS detect that the destination is a new version.
In 7.0, delete the queue, shutdown the JMS server,
reboot the JMS server, and then recreate the destination.
In any version, shutting down the JMS server will delete
non-persistent messages.
You can delete topic subscriptions via the console.
You can write a simple JMS client to drain the destination
by consuming messages. (Multi-thread multiple consumers to
speed this up considerably.)
Queen Tsao wrote:
> how do I clean up all messages left on a queue/topic ? thx.
-
Enable JMS - Queue/Topic Trace on console
Hi everyone,
I want to enable weblogic QUEUE/Topic trace enable so i could view the messages on the console can anyone please help!
i already have logging enable for queues in the weblogic admin console but all the logs are going to jms.logging file which is not that helpful!
IN MQ i use to add additional parameter trace=true in front of each queue defined, please tell how i can enable it in weblogic!
TIA
sall0To manage a queue's messages:
1. If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center).
2. In the Administration Console, navigate to the queue resource that you want to configure:
* Navigate to JMS Resources in System Modules
* Navigate to JMS resources in an application module
3. Click the Monitoring tab.
4. Select the check box next to the queue, and then click Show Messages to access the queue's JMS Messages table. You can then
perform the following administrative procedures on a specific message or selected messages:
Click a message in the queue to open the View Contents page, where you can view the contents of a JMS message. For more information :-
Link : [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/ConsoleHelp/taskhelp/jms_modules/queues/ManageQueues.html] -
Es posible crear Queue/Topic diamicamente
Es posible crear los MDB dinamicamente.
de que manera se puede implementar.
gracias.Hi Rolper
La capacidad de crear din�micamente un queue/topic depende de su abastecedor de JMS. La mayor�a de los abastecedores de JMS tienen un "API administrativo" para hacer esto - por ejemplo ArjunaMS (http://www.arjuna.com) proporciona un API comprensivo para crear queue y topics en runtime.
Hope this helps,
Tom Jenkinson -
Web service which listens/replies over JMS Queues/Topics - HOW?
Hi all,
I need help - I have to implement the following Web Service for Weblogic 8.1:
- Simple Helloworld operation
- The Web service should listen on a Queue(or Topic) - say Queue1
- The response of the service should be put in another queue - predefined - say Queue2(or taken as propetry of the request "ReplyTO")
I looked for such an implementation in the available examples and forum topics, but without luck.
Please, give an example or a guide how to implement such a service if possible!
Thanks,
IvoHi,
I have a work around to this problem please see if it suits you or you might already be knowing it.
Workaround is
1. Create a Simple Webservice as needed which puts a message in a Queue.
2. Create an MDB which listens to you Queue / Topic and call the created webserivce in the onMessage function of the MDB.
Vivek -
Accessing JMS Queue located in stand alone managed server on same domain
Our use-case is as follows.
In our weblogic domain we have SOA_Cluster and a stand alone managed server. All the custom JMS resources belong to a JMS server that is targeted to stand alone JMS server. We are trying to access JMS Queues/Topics located in the stand alone managed server from JMS adapter (part of SOA Cluster).
I am wondering what should be our adapter configuration in this scenario. In going through JMS adapter use-cases (below is the link), there is a mention of how to access resources located in Remote weblogic Domain. I am wondering if the same applies to us OR if there is better way to access JMS resources for our use case.
http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_jms.htm#CJAHAFGF
Appreciate your feedback.Accessing JMS Queue/Topic located in different Managed server on same domai
Regards,
Anuj -
Multiple Apps and Multiple Queues/Topics
In WL7, is it possible to have two applications both do the same JNDI lookup and get
different queues? This is possible with EJB's because Weblogic has its own local
JNDI lookup that the java:comp/env/ejb/XXX references, however you cannot do the
local lookup with JMS queues/topics. My situation is that I may have more than one
client on a given box, and the messages going into a queue are destined for specific
clients, but the programs are both looking up the same queue (e.g., jms/UpdateCache).
Is the only way to do this through using filters? I don't want to make any code changes
from one client app to the next.
You can configure same queue/topic on multiple servers by using
JNDINameReplicated=false on the queue/topic so each queue/topic is only
known locally. Then you can use dedicated connection Factory for each
server and you can use different url to connect to different server.
e.g.
# two connection factories deployed on two different WLS servers
# myserver1 has url like this: 192.0.0.1:7001
# myserver2 has url like this: 192.0.0.2:7001
# two JMS Servers deployed on two different WLS servers
# each JMS server has an identical queue
# you do not need to specify JNDIName for the queue if you can use
createQueue
# queueSession.createQueue("./exampleQueue1");
# client (sender/consumer) using 192.0.0.1:7001 to get initialContext
will use "cf1" and
# lookup queue on myserver1
# client (sender/consumer) using 192.0.0.2:7002 to get initialContext
will use "cf2" and
# lookup queue on myserver2
# port of config.xml
<JMSConnectionFactory
JNDIName="jms.connection.exampleFactoryFormyServer1"
Name="cf1" Targets="myserver1"/>
<JMSConnectionFactory
JNDIName="jms.connection.exampleFactoryFormyServer2"
Name="cf2" Targets="myserver2"/>
<JMSServer Name="exampleJMSServer1" Targets="myserver1">
<JMSQueue
JNDIName="jms.queue.exampleQueue1"
JNDINameReplicated="false"
Name="exampleQueue1"/>
</JMSServer>
<JMSServer Name="exampleJMSServer2" Targets="myserver2">
<JMSQueue
JNDIName="jms.queue.exampleQueue1"
JNDINameReplicated="false"
Name="exampleQueue1"/>
</JMSServer>
"David Cherryhomes" <[email protected]> wrote in message
news:[email protected]...
>
> In WL7, is it possible to have two applications both do the same JNDI
lookup and get
> different queues? This is possible with EJB's because Weblogic has its own
local
> JNDI lookup that the java:comp/env/ejb/XXX references, however you cannot
do the
> local lookup with JMS queues/topics. My situation is that I may have more
than one
> client on a given box, and the messages going into a queue are destined
for specific
> clients, but the programs are both looking up the same queue (e.g.,
jms/UpdateCache).
> Is the only way to do this through using filters? I don't want to make any
code changes
> from one client app to the next.
-
J2EE client mapping in WL6 - continued : jms queues and topics
How can one use "generic" (i.e. "java:comp/env/jms/myQueue") names in client
code for jms queues and topics,
since neither application-client.xml nor WL's myjarname.runtime.xml
have elements for them ?
I mean, jms managed objects are not env-entries (application-client.dtd
specifies that only primitive wrapper types can be valid env-entry-value)
nor resources (which I understand are all connection factories, for jdbc,
jms or mail ...).
In my ejb-jar.xml I use the resource-env-ref element :
<resource-env-ref>
<resource-env-ref-name>jms/CreationErrorQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
which can be mapped in weblogic-ejb-jar.xml
<resource-env-description>
<res-env-ref-name>jms/CreationErrorQueue</res-env-ref-name>
<jndi-name>jms.aregon.CreationErrorQueue</jndi-name>
</resource-env-description>
but I don't know how to map the jndi of such objects in a client
application.
EdoHi Sachin --
In the 10.1.3.1 release, a set of new commands have been added to admin_client.jar to support the command line creation of JMS resources:
-addJMSConnectionFactory -domain <domain> -jndiLocation <jndiLocation> [options]
-removeJMSConnectionFactory -jndiLocation <jndiLocation>
-getJMSConnectionFactories
-addDestination -domain <domain> -name <name> -jndiLocation <jndiLocation> [options]
-removeDestination -name <name> [options]
-getDestinations
You can read about it in the doc:
http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDDFJJA
cheers
-steve- -
How to create JMS Queues and Topics - OAS 10.1.3?
Hi,
Is there a way to create JMS Queues and Topics via the command line for OAS 10.1.3, say through admin-client.jar ?
I have read the "Managing Adminitered Objects" chapter from the "Oracle Containers for J2EE Resource Adapter" book and could not find the information I am looking for.
Thanks.
-SachinHi Sachin --
In the 10.1.3.1 release, a set of new commands have been added to admin_client.jar to support the command line creation of JMS resources:
-addJMSConnectionFactory -domain <domain> -jndiLocation <jndiLocation> [options]
-removeJMSConnectionFactory -jndiLocation <jndiLocation>
-getJMSConnectionFactories
-addDestination -domain <domain> -name <name> -jndiLocation <jndiLocation> [options]
-removeDestination -name <name> [options]
-getDestinations
You can read about it in the doc:
http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDDFJJA
cheers
-steve- -
Hi,
I have an EAR file thai includes an EJB 3.0 module with a MDB. I use a Queue.
This is my code,
@Resource(mappedName = "jms/NotificationQueue")
private Queue notificationQueue;
@Resource(mappedName = "jms/NotificationQueueFactory")
private ConnectionFactory notificationQueueFactory;
public Customer update(Customer customer){
Customer updated = em.merge(customer);
try {
sendJMSMessageToNotificationQueue(updated);
} catch (JMSException ex) {
Logger.getLogger(CustomerSessionBean.class.getName()).log(Level.SEVERE, null, ex);
System.out.println("Customer updated in CustomerSessionBean!");
return updated;
private Message createJMSMessageForjmsNotificationQueue(Session session, Object messageData) throws JMSException
//Modified to use ObjectMessage instead
ObjectMessage tm = session.createObjectMessage();
tm.setObject((Serializable) messageData);
return tm;
private void sendJMSMessageToNotificationQueue(Object messageData) throws JMSException
Connection connection = null;
Session session = null;
try
connection = notificationQueueFactory.createConnection();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer messageProducer = session.createProducer(notificationQueue);
messageProducer.send(createJMSMessageForjmsNotificationQueue(session, messageData));
finally
if (session != null)
try
session.close();
catch (JMSException e)
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "Cannot close session", e);
if (connection != null)
connection.close();
layed inside a stateless EJB 3.0.
And the MDB looks as follow,
@MessageDriven(mappedName = "jms/NotificationQueue", activationConfig = {
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
public class NotificationBean implements MessageListener {
public NotificationBean() {
public void onMessage(Message message)
try
Object msgObj = ((ObjectMessage)message).getObject();
if (msgObj != null)
Customer customer = (Customer)msgObj;
System.out.println("Customer with the following details has been updated:");
StringBuilder sb = new StringBuilder();
sb.append("Customer ID=");
sb.append(customer.getCustomerId());
sb.append(", ");
sb.append("Name=");
sb.append(customer.getName());
sb.append(", ");
sb.append("Email=");
sb.append(customer.getEmail());
System.out.println(sb.toString());
catch (JMSException ex)
Logger.getLogger(NotificationBean.class.getName()).log(Level.SEVERE, null, ex);
I have configured both "jms/NotificationQueue" and "jms/NotificationQueueFactory" inside OC4J server.
But when I try to deploy the EAR file, the server gives me the following error,
Operation failed with error: No destination location set for message-driven bean NotificationBean
How must I do to let the EAR file be deployed?
Thanks in advance
JoseMingzhuang
I want to configure a error queue for weblogic jms topic. Wanted: The message goes to error destination when messages have expired or reached their redelivery limit.
1. using jms transport configure proxy service:
Retry Count :3
Retry Interval:10
Error Destination: ErrorTopic
Expiration olicy: RedirectUnlike File/SFTP, JMS proxy service definition does not have the concept of Error Destination. To accomplish similar functionality go to JMSQ on (for which proxy is configured) server console (http://localhost:7001/console) and configure the Error Destination. Following URL will help in how to configure JMS Q.
http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/jms_modules/queues/ConfigureQueues.html
http://edocs.bea.com/wls/docs103/ConsoleHelp/taskhelp/jms_modules/queues/ConfigureQueueDeliveryFailure.html
I tried use the proxy service to consume message from the jms topic . and generation an error in the proxy message flow. But the message didn't goes into the error topic.If every thing is configured as per above step, then the after retries, the weblogic server will put the message into JMS topic configured. Your proxy will receive from this topic.
Let me know if we are not on same page.
Cheers
Manoj -
hi
How do i check if there are any messages in the Queue/topic. i am using Platform edition
ThanksDownload an install software for browsing queues.
Not quite sure what "Platform" edition is. If your JMS provider is MQ, use MQ Explorer / rfhutil, otherwise I find Hermes very useful -
Using JNDI Provider for Oracle JMS Queue
Hello,
I created a JMS Queue in Oracle 9.2.0.1 and would like
a Java client to receive events from the Queue. I am
not running Oracle9iAS. I have access to WebLogic server
7.0 which is also a JNDI provider. Is there a sample code
that shows the steps on how to go about this.
thanks very much for any pointers.To define an Enterprise Message Source for AS JMS and OJMS in BAM, see Chapter 3 in the BAM Architect's User Guide.
Specifying Settings for Oracle (AS JMS and OJMS)
Settings for Oracle (AS JMS and OJMS) include:
■ Initial Context Factory.
For 10.1.3: oracle.j2ee.rmi.RMIInitialContextFactory
For 10.1.2: com.evermind.server.rmi.RMIInitialContextFactory
■ JNDI Service Provider URL. For standalone use oc4j: ormi://machine_name/
where machine_name is the OC4J installed host, and for production use Application Server: opmn:ormi://<machine_name>:<opmn request port>:home where machine_name is the application server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
■ TopicConnectionFactory Name.
java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
■ Topic Name. java:comp/resource/BAMTTT/Topics/bam_ttq
■ JMS Message Type. TextMessage.
■ Durable Subscriber Name. BAMFilteredSubscription
■ Message Selector. Message selector, for example, BAMFilter='true'
■ Client ID. ClientID
You can also refer to:
http://www.oracle.com/technology/products/integration/bam/10.1.3/TechNotes/TechNote_BAM_AQ_Configuration.pdf
Regards, Stephen
Maybe you are looking for
-
I have a 6th gen ipod classic that will not turn on...
So, As the title says that is what I have, however, here are more specifics and what I have done so far... The ipod will not power on. When I try to turn it on, the logo appears, then it seems to power cycle. Now, onto what I have tried thus far... I
-
I can't install Speedgrade 7.1 on my windows 8.1 Toshiba laptop
I can't install Speedgrade 7.1 on my windows 8.1 Toshiba laptop in order to get dynamic link. Does anyone know why? Speed grade 7.1 doesn't show up on my cloud update panel either. I have new Toshiba Qosmio laptop.
-
Duplicate Sales Order - UserExit or BADI
Hi, I have a requirement for one of my workflow. When duplicate sales order is received through EDI , I need to notify to Customer service team. If purchase order and ship-to is same and PO date is within 30 days, need to notify that it is a duplicat
-
IPhoto 09 updates photo's on iPhoto 08, now can't open.
Hi, I was transferring photos from my iMac which uses iPhoto 08 to my MacBook Pro which uses iPhoto 09. When I had finished and tried opening iPhoto on my iMac it now says this: +"You can't open your current photo library using this version of iPhoto
-
Hi everybody! It seemed to me that a device connected to an inverter does not spontaneously extinguished, unless said inverter no longer load! However, there was a break of about 1 to 2 minutes during the night. And I find my mac mini off, I mean off