Ash More'

Ranch Hand
+ Follow
since Apr 20, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ash More'

ok thanks,
the problem seems to be with my table structure.
thanks again
From JAVA the call is made to procedure as follows..





AND THIS IS MY ORACLE PROCEDURE..



I get exception when I compare the two dates. One comes from JAVA and the other is the ORACLE Database. So I want some function which will convert one of the dates in the other date format.
[ July 23, 2008: Message edited by: Ash More' ]
Problem solved.
Solution: Do not keep duplicate copies of session bean having @RemoteBinding in C:\JBoss\jboss-4.2.0.GA\server\default\deploy directory. I had used the same named (TravelAgentBean) session bean in two different applications and had deployed both the applications in C:\JBoss\jboss-4.2.0.GA\server\default\deploy directory. This created problems with @RemoteBinding.
[ May 15, 2008: Message edited by: Ash More' ]
hi,
i am using jboss 4.2.0 GA , java 1.6
i am trying the examples as is from the workbook(currently on chapter 4, workbook chapter 24)

well 24.1 and 24.3 both work
24.1 using jndiContext.lookup("TravelAgentBean/remote");

24.3 using jboss.xml as


however 24.2 i.e using @org.jboss.annotation.ejb.RemoteBinding(jndiBinding="TravelAgentRemote")does not work

the JNDIView does not have TravelAgentRemote named bean.

is there anything else required to be configured along with @RemoteBinding annotation ??
hi,
i am currently practising examples from orielly ejb3 book,
in the 4th chapter(i.e chapter 24 of workbook), i am running the example as given in the book,

The session bean is as follows:


The client is as follows:


However i get the following errors:


however when i try the following in client code it works:


why is @org.jboss.annotation.ejb.RemoteBinding
(jndiBinding="TravelAgentRemote") not working
overall the question seems to be incomplete as no mention of web.xml mapping is made.
hi raja ram,
have you tried what Vijaya said a few posts back? have you added el-api.jar file to your class-path. i think that file is available in tomcat 6 in the lib directory.(or if you have jboss available to you, its in the C:\JBoss\jboss-4.2.0.GA\server\default\lib directory ). Also add this to the classpath: servlet-api.jar and jsp-api.jar

Restart tomcat and try out the tomcat examples.
well, multiple occurences of attributes other then import is allowed, provided there values remain the same
For eg:
<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="true"%>

is allowed

whereas below is not allowed:
<%@ page import="java.util.*" autoFlush="true"%>
<%@ page import="java.io.*" autoFlush="false"%>

(the above gives the following error in tomcat 6
Page directive: illegal to have multiple occurrences of autoFlush with different values (old: true, new: false)
)
well tlib-version and short-name are mandatory. Its better to have both of them, so as not to run into problems when we run in other containers. Plus including the short-name is a good practice, as its used by IDE's to provide default prefix for tags.
My views about the book SCWCD by Charles Lyons:

1)After reading HFSJ, i had doubts about few topics. This book cleared my doubts very well.

2)Very good coverage of API's, in fact i didn't look back at the API documentation after reading this book as this book became my reference to the API.

3)Good book to refer even after the exams (no noise, no fluff).

4)well, takes time to read,(going through HFSJ is a breeze, but this book takes time to finish, i just cant point to a single reason , maybe language is bit terse, maybe the no nonsense approach slows me down,maybe the pages are information packed,....).

5)Ah, didn't like the approach used for the custom tags chapter. Reason being that, only partial code had been provided in the chapter and the author expects you to view the complete program from the downloadable code. Don't like the constant juggling between PC and book.The calender example at the end of chapter on tag files is hard to digest.Plus i think the best material for custom tags is provided by SCWCD exam study kit which provides simple explanation and lots of 'complete' examples.

6)lots of questions at the end of each chapter. And they really test your knowledge about the chapter contents.Plus the book replicates the exam approach where code is often shown in a exhibit.

7)The chapter on application deployment(chapter 9) is very useful. All the information regarding deployment descriptor is presented in the chapter in entirety. Its good to find all information in one place.

8)The book overall does not have errors. However i have doubt about the business delegate pattern diagram , where the delegate object is shown in ejb container whereas it should be in the presentation tier(according to the HFSJ and SCWCD exam study kit). Correct me if i am wrong.

9)While viewing the documentation ,we don't get an idea about which methods are there on exam and which are not.The author does a good job about pointed out , what is there and what is not there in the exam, all over the book. its clearly pointed out as a heading: Not an exam objective. Very useful!!

10)Lastly(actually not a point worth mentioning ) , the book is damn cheap.(I had got the discounted Asian edition).
ohh, well Charles Lyons replied to your query. cool.
infact for my scwcd exam i had read his book:
My views about the book:

1)After reading HFSJ, i had doubts about few topics. this book cleared my doubts very well.

2)very good coverage of API's, in fact i didn't look back at the API documentation after reading this book as this book became my reference to the API.

3)Good book to refer even after the exams (no noise, no fluff).

4)well, takes time to read,(going through HFSJ is a breeze, but this book takes time to finish, i just cant point to a single reason , maybe language is bit terse, maybe the no nonsense approach slows me down,maybe the pages are information packed,....).

5)Ah, didn't like the approach used for the custom tags chapter. reason being that, only partial code had been provided in the chapter and the author expects you to view the complete program from the downloadable code. don't like the constant juggling between PC and book.Plus i think the best material for custom tags is provided by SCWCD exam study kit which provides simple explanation and lots of 'complete' examples.

6)lots of questions at the end of each chapter. And they really test your knowledge about the chapter contents.Plus the book replicates the exam approach where code is often shown in a exhibit.
whats the problem??
the object created using <jsp:usebean> is available to the scriptlet code.

<jsp:usebean> not only creates an object in mentioned scope(page scope being the default)but also creates a local variable which is available to the translated servlet code.
[ May 11, 2008: Message edited by: Ash More' ]
ok,
i was running too ahead of myself. the explanation has been given through the rest of the chapter. i got the answer to my queries.
i am bit puzzled about the chapter 9 listing 9.1



shouldnt the above code be like this:


in the code mentioned in the book , why is entityManager.merge(item) used as a parameter to methods refresh and remove??
if entityManager.merge(item) is used inside the refresh method , then merge will first update the database and then refresh will bring the newly updated value back , so will undoItemChanges work??

what does entityManager.merge(item) actually return?? the instance with old values or the instance of item with modified values??


any help would be really appreciated
[ May 03, 2008: Message edited by: Ash More' ]
ok,
view this links to get started with your mentioned configuration
tour around eclipse europa 1

tour around eclipse europa 2

i suggest you try this practically along side the videos
(also see the other videos at www.thescreencast.com)

plus dont forget to view the eclipse dali notes (its there in eclipse help contents)
[ May 02, 2008: Message edited by: Ash More' ]