Home > SAP Tips > ABAP/Java developer tips > Using JMS resources in Java EE applications
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ABAP/JAVA DEVELOPER TIPS

Using JMS resources in Java EE applications


Ekaterina Anachkova
02.23.2007
Rating: -5.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Need help to create your Enterprise Java Beans project? This tip from SAP Developer Network walks you through the process of creating a JMS resources deployment descriptor and implementing the configuration XML schema file.

In the process of developing a Java EE application in any particular Message Driven Bean, you have to perform several tasks.

You need to create an EJB project, where you set up the message driven bean. You also create an Enterprise Application Project (EAR) and the JMS resources xml, where you declare the connection factories and the destinations needed for the application. The jms-resources.xml has to be included in the EAR.

Deploying the EAR file will result in the automatic deployment of all JMS resources defined in the jms-resources.xml file. The XML file will be packaged in the EAR file. Put this XML file under the META-INF directory.

    Creating the JMS resources deployment descriptor
  1. From the META-INF context menu of the MDBEar, choose New, Other, then XML. Choose Next.
  2. Choose Create XML file from an XML schema file and then Next.
  3. Specify the Project, in our example MDBEar, and the META-INF, where you will create the jms-resources.xml and choose Next.
  4. Choose Select XML Catalog entry and select the jms-resources.xsd schema. Choose Next.
  5. Choose Finish.

Implementing the configuration XML Schema file

To implement the configuration XML Schema file, navigate to META-INF in your Enterprise Application Project and open the jms-resources.xml file. One of the portions of this file sets up
the connection factory and the destination.

Here is how my descriptor looks after adding manually the JMS resources. First, you have to declare the <connection-factory> tag, and afterwards the definition of the destinations.

  1. For Queue destination:
  2. For Topic destination:
  3. Afterward, you can continue developing and deploying your Java EE Application.

    For more information, refer to:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/55e7d5 1e-0e01-0010-7b84-a95ee55eadeb

Ekaterina Anachkova is an information developer at SAP Labs Bulgaria.


This content is reposted from the SAP Developer Network.
Copyright 2007, SAP Developer Network

SAP Developer Network (SDN) is an active online community where ABAP, Java, .NET, and other cutting-edge technologies converge to form a resource and collaboration channel for SAP developers, consultants, integrators, and business analysts. SDN hosts a technical library, expert blogs, exclusive downloads and code samples, an extensive eLearning catalog, and active, moderated discussion forums. SDN membership is free.

Want to read more from this author? Click here to read Ekaterina Anachkova's Weblog. Click here to read more about Application Servers on SDN.



Rate this Tip
To rate tips, you must be a member of SearchSAP.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
ABAP/Java developer tips
Select Text fields: Case-insensitive
Finding BADIs you can use
Is this the quickest way to find a BADI?
ABAP Objects in SAP Workflow to provide improved performance
Easily debug error messages in SAP processes
Accessing private attributes in ABAP Objects
Find a BADI in a minute
Top 10 SAP tips of 2007
How to transport an SAP query in R/3 4.6x
How to switch off message determination in BAPI_PO_CREATE1

SAP Java / J2EE
Is C, C++ and Java knowledge required when learning SAP?
Getting started with a NetWeaver career
How to be a self-taught NetWeaver and ABAP expert
An ABAP user wants to learn XI
Select Text fields: Case-insensitive
Finding BADIs you can use
Quiz: SAP ABAP development
Is this the quickest way to find a BADI?
Easily debug error messages in SAP processes
Is there a 'load of program' option in report generation?

Enterprise SOA (enterprise service oriented architecture)
Getting started with a NetWeaver career
The benefits of EAI
When to choose SOAP, RFC and HTTP adapters
SOA in a nutshell, courtesy of SAP
SAP exec talks partners, platforms and the SAP economy
SAP NetWeaver jobs: What the future holds
Hourly rates of NetWeaver consultants
SAP NetWeaver: Special Report
Demystifying SOA in SAP NetWeaver
Business process platform creation for healthcare, part 2

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Enterprise Services Architecture  (SearchSAP.com)
NetWeaver  (SearchSAP.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsBlogsTipsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts