Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

deploy rest web services on weblogic

francy77Jul 20 2021
Hi all,
I'm new with weblogic and EJB v3;
I've published a RestFul webservices using EJB3:
package rest;

import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

@Stateless
@Path(value="/fattura")
public class FatturaServiceBean {

  @GET
  @Produces(value="text/plain")
  public String generaProssimoNumero(){
  	return "1234";
  }
   
}

As you can see very very easy and it works, but i can call it

http://localhost:7001/soap-web-service-ejb/resources/fattura

Now I'm asking why weblogic has added the word resources in the URI, tomEE dosn't add the word resources in the URI!!!! Is that a feature I can customize?
And also is there a way to tell weblogic to print in the log every web services is installed on it when it startup?
thanks
really much

Comments
Post Details
Added on Jul 20 2021
0 comments
114 views