Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple web service styles in one application

 
Sangeeta Mahajan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can a web service application (*.ear) comprise of 2 web services, one of RPC-style and and the other of Messaging Style.
I want to write one web service that receives and XML string and the other web service receiving a file (bulk processing). Can I define the first web service to be RPC-style and write a stateless session bean? Can I define the second web service to Messaging style and write a message driven bean?
Thanks,
Sangeeta
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sangeeta, and welcome to the 'ranch!
First of all, I'd like to ask you to edit your display name since it's not compliant with our naming policy without a last name.
Can a web service application (*.ear) comprise of 2 web services, one of RPC-style and and the other of Messaging Style.
Yes, an .ear can include a number of different web services.
I want to write one web service that receives and XML string and the other web service receiving a file (bulk processing). Can I define the first web service to be RPC-style and write a stateless session bean? Can I define the second web service to Messaging style and write a message driven bean?
Which application server are you using? Are you using the application server's built-in web services engine or something you deploy along with your .ear (i.e. Apache Axis)?
 
Sangeeta Mahajan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the services of the application server is weblogic 6.
Thanks,
Sangeeta Mahajan
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, WebLogic (not 6.x, not 7.x, and not 8.x) doesn't support MDBs as web service endpoints so you might need to implement the web service as a regular class and have that class forward the incoming messages to a JMS queue yourself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic