Venkatraman Kandaswamy

Ranch Hand
+ Follow
since Jul 07, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Venkatraman Kandaswamy

In that case you should try accessing the JMX port that JBoss exposes. There are lot of open source tools : JMX tools available. Heres an example of how to do this : web page
16 years ago
Some options

* Hit the url http://localhost:8080 to see if you get a response - most obvious

* You can telnet localhost 8080 and see if it connects

* If you are in *nix you can do a ps -ef | grep java to see if you get any results

* If you are crashdows you can do a tasklist to see if java is running

Enjoy !!
16 years ago
I personally prefer keeping business logic in code - and keep most of the business logic out of the Stored procedure - because maintenance becomes hard and its difficult to test - unit wise.

Now when will I use a stored procedure? - to improve performance. Also lets say I have to update a value for a particular set of customers - and in a case of a million records doing it using stored procedure makes lot of sense.
[ February 15, 2008: Message edited by: Venkatraman Kandaswamy ]
You can try having your config files outside WEB-INF. If you have your files in your-webapp/config folder - you can access the property file in your code as config/properties-file.
16 years ago
you can make the variables that you want to pass as global variables.
1. If you have made changes to a JSP, then you need not redeploy the entire app. Write an ant-target for just copying JSPs to the deployment folder directly and weblogic will compile the JSP and load it up when you hit the page. No need to restart server even.

2. For changes to servlet or entity beans - look at hot deploying in weblogic. It will take a fraction of the time - because you need not stop/start server. You might need to do some googling to enable hot deployment.
First its not a very good idea to write methods in JSP - its only for presentation and anything complex should go into a custom Tag or to the servlet.

Anyway still you can shoot yourself, if you want to

Here is how you write a method in JSP.



Do send HttpServletRequest as one of the parameters - if you want to extract something out of it...

Regards
18 years ago
JSP

Originally posted by rathi ji:


How to subscribe RSS feed? :roll:



If you have firefox 1.5, whenever you visit such sides that give a RSS feed, an icon shows up in the address bar - like a wireless signal. Click on it and you can treat it like any bookmark. Later when a new article is posted in these sites, it automatically shows up in your bookmark.

However, if your organization does not let you install firefox there is this free service called bloglines.com - you can subscribe to all kinds of RSS feeds and they get updated whenever you hit your page in bloglines.

Enjoy !!
18 years ago
Subscribe to the RSS feed for the following sites :

slashdot.org
lifehacker.com
digg.com
del.icio.us/popular
reddit.com

you will never get bored !!
18 years ago
I dont think there will be any problem running weblogic under gentoo - unless you use the standard JVMs - do not use the one that gentoo comes bundled with. Weblogic 9.0 onwards uses weblogic's JRockit 5 - I dont know if it plays well with Sun's JVM

Then I run weblogic in ubuntu dapper and dont remember doing anything special to make it work - other than pointing it to the right JVM.

Good luck !!
18 years ago
We upgraded to weblogic 9 developer edition, and when we start it up on linux, it is not accessible from other machines. No there is no firewall issues - i can access tomcat at 8080 and rails server at 3000 etc. The strange thing is this does not happen on windows.

Anyone seen this - have a work around?


Thanks
18 years ago
First of all having everything in session is a big waste of space - makes your development easy but it will bite you in the long run - as the app scales, more users log in - there is only so much of server memory.

Why is it NPEing? - looking at the stacktrace will give you a good idea - my initial guess is because of your code/app - also try debugging the app - so you can inspect and see where you are trying to use a null object - mostly a != null before using that object will make the problem go away- but I will look more closely to see why such a thing happened in the first place.

Good luck !! - also pasting relevant stack trace will help - but do not paste the 42 page stack trace...no one here has so much patience/time/sanity to look at such a thing.
18 years ago
JSF
Take the Data warehousing option - get free training from your company - gain some experience, then float your resume - you will get much better opportunities - short term ( onsite, high pay) vs long term ( solid career, higher pay).

Good luck !!
18 years ago
Hi Andy,

Classic chicken egg problem. Keep applying everywhere - its not like as if there are jobs only for experienced people - there are always openings at every level. Even the most experienced person did start as a fresher once - so keep applying and also keep educating yourself. Just yesterday I wrote an entry in my blog on how to become a Java developer - drawn from my personal experience. Be at it.

Good luck
18 years ago

Originally posted by Raj Bhandari:
I wonder then what is Struts and EJB ? Are they not MVC architecture ? Could someone please tell me how is Struts different from EJB and what purpose both solve ? What books/articles should I read.



Struts and EJBs are two different beasts. Struts is a framework that implements MVC architecture. So you are right in that aspect. The framework gives you hooks which you plug your code into and your application turns into this MVC thingy.

EJB is a specification written by Sun which 2 groups of people should satisfy.
First group is the people who write containers ( IBM, Weblogic, JBoss, Oracle ) and the second group are the poor developers. Now if you write your code according to EJB specs you get lot of special features for free ( the container writers ensure that ) - like - Transaction, Security, Scaling, Caching, and so many things which the developers need not write code - as the wise say - reinventing the wheel. So the developers just worry about the business logic and leave the other bigger worries to the container developers.

And for you to ponder - you can have a struts application with EJB !! Also find out about Session Beans, Entity Beans and Message Driven Beans - Great concepts.

Good luck !!
18 years ago