Skip to content

Eclipse/Spring Learning

November 19, 2007

Eclipse
use suspend in eclipse to break exec.
Ctrl+Shift+D to evaluate the expression.
compound objects: Inspect Ctrl+Shift+I
predefined templates, see Window Preferences Java Editor Templates.
Ctrl+Shift+G – references of sybmbol in workspace
Ctrl+G – refc of declration in workspace.
File->New->Scrapbook -> Ctrl+Shift+D = Displays the results of execution.
(LOVELY) : Incremental Find = Control + J + Start to type.

set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=10.75.40.1 -Dhttp.proxyPort=8080 -Dhttp.proxyUser=user234-Dhttp.proxyPassword=useme123

Its not working :(( What to do??

SyndFeedInput input = new SyndFeedInput();
feed = input.build(new XmlReader(new URL(_url)));

07:29:46,019 ERROR [SerializableSessionAttributeListener:52] edu.yale.its.tp.cas.client.CASReceipt is not serializable and will prevent this session from being replicatedjava.io.IOException: Server returned HTTP response code: 407 for URL: http://rss.news.yahoo.com/rss/tech

sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

what is the source package for HttpURLConnection

CRITICAL: ALL FOLDERS ARE READ ONLY – JADCLIPSE IS NOT ABLE TO RUN!!

at com.sun.syndication.io.XmlReader.(XmlReader.java:174) at com.sun.syndication.io.XmlReader.(XmlReader.java:151) at com.liferay.portlet.rss.util.RSSConverter.convert(RSSConverter.java:68) at com.liferay.portal.util.WebCachePool.get(WebCachePool.java:52) at com.liferay.portlet.rss.util.RSSUtil.getFeed(RSSUtil.java:41) at org.apache.jsp.html.portlet.rss.view_jsp._jspService(view_jsp.java:1018) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

<bean class=”namebean” id=”bean1″>
<property name=”name”>
<value>tom</value>
</property><
constructor-arg>
<value>My Bean Value</value>
</CONSTRUCTOR-ARG></bean>

Spring
AOP – aspects are wired into objects in the spring XML file – known as ‘Weaving’. system services are commonly refered to as ‘cross-cutting concerns’

BeanFactory factory = new XmlBeanFactory
(new FileInputStream(“myBean.xml”));
myBean bean1 = (myBean)factory.getBean(“myBean”);

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: