This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Niiraj Patel

Ranch Hand
+ Follow
since Sep 17, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Niiraj Patel

Kourosh, Second option suggested by Jeanne is very true.. You should use data-source facility provided by your Java Application Server.You can also put this information in encrypted properties file and also set some flag which tell system to whether to take connection from data-source or manually connect using JDBC..

Regards,
Niraj
6 years ago
sairam, please post your wsdl if possible..
6 years ago
Akhilesh, It is necessary to generate new stubs and I believe when wsdl changes, you may have to observe new changes and you might required to change some business logic.
So, it is better to generate new classes by your self.

6 years ago
Hi, I have tried using new jersey version jaxrs-ri-2.5.1. But even if I don't provide any package name or class name, It takes all resources that I have implemented.

To install new version I have to replace class-name in web.xml

from



to



Now, My web.xml




is there any idea how jersey scans your resources ?



6 years ago
Sven, There is no extra things you have to do. just export your application in eclipse as WAR and put it in webapps in tomcat's home directory and restart the server. (1.Select your project 2.Right Clickt 3.Select Export >> WAR File)
6 years ago

Let me see by using newer version of Jersey. Thanks Ulf..
6 years ago
exactly, This is my doubt.. even though I am not defining my JAX-RS resource explicitly, framework finds it. but how does it happen? links I provided in my post say that you have to define package or Application class through <init-param>, But I am not doing any thing and things work properly.

Roger, Thanks for your help. I have cleared Java EE 6 Web Services Developer Certified Expert Exam.

6 years ago
Hi,

I have created sample project in eclipse and deployed it in tomcat.

I am using below jar files.

  • asm-3.1.jar
  • jersey-core-1.10.jar
  • jersey-server-1.10.jar
  • jersey-servlet-1.10.jar


  • below are classes.





    and




    my web.xml




    My Doubts
    1. How does Jersey framework inject/scan JAX-RS resources. if we don't provide class names explicitly
    2. Some docs says (links are provided below), we have to explicitly register package name to tell Jersey framework so it can scan those packages and inject AX-RS resources.

    Link 1 : https://jersey.java.net/documentation/latest/deployment.html#deployment.servlet.2
    Link 2 : http://docs.oracle.com/cd/E19776-01/820-4867/ggnxs/index.html


    even if I remove method getClasses() from class MyApplication, It is working fine. My doubt is how does it finds resource HelloWorldResource.java ?

    This is my Tomcat’s catalina.out logfile's snap:




    In above code I do not explicitly tell framework to register my class HelloWorldResource as I have commented getClasses method.


    Does it scan by annotation like @Path("helloworld") @Produces("text/plain") ?

    Thanks,
    Niraj

    6 years ago

    Frits, This manual does not tell how to enable Fast Infoset for Service Side. I will enable it at client side as Souvik said above. but I also have to enable it at Service Side.
    Thanks Frits and Souvik for your response.

    I am really confused with fast infoset.

    Can you post a client and service code and link of jar file which need to place.

    your help would be greatly appreciated!

    Thanks,
    Niraj
    Hi,

    For study purpose, I have created standalone SOAP based image upload/download service using MTOM.
    I want to use fast infoset to make it optimized. But don't know how to use it.
    I looked it to this URL (http://docs.oracle.com/middleware/1212/core/WSCPT/jrf-ws-fastinfoset.htm). But, when I try it I am not able to find 'com.oracle.webservices.api.FastInfosetService' class in jdk.
    Can anyone tell me how can we use 'fast infoset' ?

    Regards,
    Niraj
    Congrats..
    How many chapters do we need to read from 'Java Web Services Up and Running' book ?

    Regards,
    Niraj
    6 years ago
    Hi,

    Effective June 1, 2011 - Java, Oracle Solaris, MySQL, and NetBeans certification exams are being delivered through new test delivery vendor --Pearson VUE-- and are no longer available through Prometric.

    The new exam code of 310-083 is 1Z0_858

    There is no much change in objectives. Drop-down questions. are removed in new exam.
    please refer :
    1) http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_858
    2) www.vue.com/oracle/
    please contact Pearson VUE incase of any doubt.


    Regards,
    Niraj


    Rakesh,

    Please raise your query through below Pearson VUE Customer Service.

    https://wsvprd1a.pearsonvue.com/oracle/contact/

    https://wsvprd1a.pearsonvue.com/contact/asiapac/customerservice/

    Thanks,
    Niraj Patel
    howdy all,

    what is advantage of using scripting variable in custom tag?.

    In which scenario it serves its best ? In which type of situation it is really required ?

    You can also avail of page scoped variable using <jsp:useBean standard action.

    Can anyone please clear the doubt ?

    Regards,
    Niraj Patel