Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Lahiru Abeydeera

Ranch Hand
+ Follow
since Nov 05, 2004
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 Lahiru Abeydeera

i want to pass the connection because i want to maintain the transaction. thats why the session has to pass the connection to the MDB. is there any other better way of doing this?

thaks for the interest.
HI, Im using java ee 5. i want to send database inserts to the database throught a message queue to ensure the order of insertions.


clients invokes a stateful session bean to send the data. and the bean will access the message driven bean which is responsible for the actual db insert. all the calls through a single stateful bean is in one transaction. if one of the inserts fail the transaction should rollback.

but the problem im facing here is the SQL connection used to the updates cannot be passed from the session bean to the message driven bean since the conncetion is not serializable.

Can any one help me with a solution to this problem.
here's my problem.

Im using Sun App Server 9. the server is installed in the local machine. for testing purposes client access from the local server is sufficient. I deployed a web service using net beans 5.5. My problem is that the WSDL file is generated (by server) uses a fully qualified domain name rather than localhost. for example it uses http://mlb.stdmlb.sliit.lk:8080. When i try to create a client using netbeans it tries to access the server using this address (the one in the WSDL) but the firewall denies access to port 8080. Therefore i want to use the server to use localhost rather than the long domai name. (at least http://mlb) Can anyone tell me how to configure this?

Lahiru
13 years ago
thanks guys

i really appreciate the support.

but i got to say something here. this javaranch forum is really cool. i tried this problem at sun java forums before and no one did reply yet.

thanks again for the support.
13 years ago
Hi

thanks for the reply!
i m using JAX-WS and as a web application. My basic requirement is to manage client session state. since it is not possible according to my knowledge i decided to use static variables. Is there a better way to do it. (Manageing client session) Can you expose a Stateful SB as a web service. I need my web service to be accessible from any client (/net/java/c++ etc..)


Regard
Lahiru

ScJP, SCBCD
13 years ago
HI,

I m new to this web service thing. I was wondering what will be its behaviour when you use static variables in a web service class. (Marked as @WebService). It seemd to be working fine but is that behaviour something we can rely on?

please help me
13 years ago
HI folks!!!

I know this question is not direcly related to jsp or servlets. but i got this question on one of my university tutorial and couldnt find a very good answer. (not even from the lecturers of corurse). Ok here is the question...

"In .NET, there is a single web development API (ASP.NET), while in J2EE, the web
technologies include multiple technologies such Servlets and JSPs. Comment briefly on
the strengths and weaknesses of having single / multiple technologies for the same
application tier."



I am curious to kno you guys opinions about this?

OK cowboys see you back...
14 years ago
JSP
Yes
you can do that. Go to www.certmanager.net. there u have to register with ur prometric ID

Regards
Lahiru
SCJP, SCBCD
Great work dude

98% in 3 wks, thats brilliant. what r ur next plans good luck in ur future exams

Lahiru Abeydeera
(SCJP, SCBCD)
15 years ago
Dont worry just buy and read HeadFirst do examples in no time u will be ready for the exam,
by the way congrats for getting a good mark in scjp
Yo man, thats great!

whats ur next step?



Lahiru
SCJP, SCBCD
15 years ago
Its all thanks to you two Bert. Your headfirst book is superb.
Hope u will write a one for SCMAD too so I can move onto that.


Lahiru
15 years ago
Thax everyone

Lahiru Abeydeera
SCJP 1.4, SCBCD 1.3
15 years ago
Today I passed SCBCD with 98%. I couldnt believe the score when i got results as i was thinking i didnt do it well. Anyway i did it, passed with a good score.
I have messed up only one question which was in exceptions.

I think the full credit should go to Cathey, Bert, valentine and softSCBCD (I did whizlabs and it was so weired, no worth the price)
15 years ago