Mary John

Ranch Hand
+ Follow
since Sep 17, 2007
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Mary John


need help to reference actual component from proxy.
Seam component is injected into a spring bean. Methods of seam component are required to be accessed inside the spring bean .

Does anyone have any example of using seam components in spring beans especially with proxy ?

I have a seam component injected in spring bean as follows.
SPRING CONTEXT below------------------------------------------------------
<seam:instance name="compSeam" create="true" scope="STATELESS" id="compSeam" proxy="true"/>

<beans:bean id="beanSpring"
class="com.sys.authentication.ASpringBean" >
<beans:property name="compSeam" > <beans:ref local="compSeam" />

SPRING BEAN CLASS below----------------------------------------------------------
package com.sys.authentication;

public class ASpringBean {

ASeamComponent compSeam;

public void setCompSeam(ASeamComponent compSeam) {

System.out.println("Setting Seam AseamComponent in ASpring bean ");

this.compSeam = compSeam;


public ASeamComponent getCompSeam() {

return this.compSeam;


public String getSpringBeanUsername() {
return "Spring - username";

public String getSeamComponentUserName() { /---------------this method is giving error as envocationexception //
return compSeam.getUsername(); //


SEAM COMPONENT below------------------------------------------------------
package com.sys.authentication;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

public class ASeamComponent {

public String getUsername() {
return "Seam - username";


This gives erorr on accessing the seam component's method
4 years ago
Thanks David, I am posting again the code with code tags. We have a hava swing client/server application that uses Spring for remoting.

I am trying to understand how the application context is getting created on server side. Also, what is the purpose does an applicationContextAware class does. Note, we have 2 XML files, 1. business-servlet.xml (has business objects) and the other is weather-client.xml(has proxy beans).

My question is when the BeanRegistry is instantiated does it use weather-client.xml to create the application context ???
Appreciate your help with this.

Here is web.xml

As seen above, web.xml does not have any spring listeners. This is all it has.
business-servlet.xml contains a BusinessRegistry as seen below

Also the business-servlet.xml, contains a Bean - BusinessRegistry class

abstractServerRemotingBean is an HttpInvokerServiceExporter

BusinessRegistry is applicationcontextaware that has a BeanFactory defined in it

7 years ago

Hello all,

I am pretty new to spring. Recently joined a new job where spring framework is used and needed to understand this.

How does the ApplicationContext gets instantiated, when the server starts up. Is it provided automatically by the framework or do we create it in our Code.

Here is the piece of code we have, that I dont understand.


business-servlet.xml has a class called Businessregistry that is declared in the business-servlet.xml
business-sevlet.xml also has all the other business or service objects also.

<bean class="" />


BusinessRegistry is a ApplicationContextAware that has the ClassPathXMLApplicationContext which is instantiated as below

Class BusinessRegistry {
context =null;
filename = "weather-Client.xml";

public void setApplicationContext(ApplicationContext context) {
this.context = context;

private static synchronized void init(String fileName)

if (isInitialised()) return;"Initialising registry [" + fileName + "]");
context = new ClassPathXmlApplicationContext(fileName);

So, as you see the context seems to be getting intialised with the weather-client.xml which has all the proxy beans defnitition in it, which I dont understand.

Any explanantion of how ApplicationContext is created at start up of app server is appreciateed. Also, this is a Java swing client app


7 years ago

Hello all,

Just wanted to provide some information that I received from sun certification customer support .
I purchased my assignment in Dec 2007, and I have not purchased the essay exam yet. When I enquired about the time limit this is what I was told.

""There is a time limit of one year from the time of download for completing the assignment. We will however allow you to finish your certification. You must finish both parts before the end of the year.""

So anyone reading this who bought the assignment probably need to follow up with sun cert I guess to get confirmation about changing policies.

Please let me know what others in this situation received about their time limits.


Hi all,

Does anyone know when onwards the timelimit for the assignment submission was made 1 yr.

I downloaded my assignment in Dec 2008. I was wondering if there was a time limit of 1 yr or is my assignment still valid.


I agree to what Roberto has mentioned about reading and to add to it,

Code...code and code....practice practice and practise. You will defintely
reach where you want to if you practise, assignments. SCJD is a good way to start coding in a disciplined way. and take look at other examples and do it on your own.

Hope that helps
Hi all

The following was the score break up I saw at the Sun web site today

The maximum number of possible points is 400. The minimum passing grade is 320. The maximum points per category are:

Categories - Maximum points
General Considerations - 80
Documentation - 50
Object-Oriented Design - 50
GUI - 70
Locking - 80
Language Fluency - 70
However recent score results are not reflecting this break up. Is this new then?
Does someone know what Sun looks for in Language fluency? (perhaps a simple and straightforward coding...??)

[ May 16, 2008: Message edited by: Mary John ]
9 years ago
Thanks very much Roberto, for the details.
It was very helpful. So I am going forward with the simple approach.

Hi all

In Andrew's book, server window and related configuration options Gui
implement the observer and observable. I wanted to find out if this is
necessary as per the requirements (my assignment is B&S) and it mentions
" All configuration should be via a GUI and should be persistent between runs ". It also mentions about using for persisting

Are most of you using observer? if so, did you choose to do so because of
any must requirements in the assignment? I want to keep it simple just meeting the requirements.


You will be provided a flat file which has data populated in it based on a
schema that Sun will provide along with its instructions. You basically have to write code to access this data based on the schema.
Hope that helps.

I suggest you to go ahead and get the assignment first, that could clear a lot of questions you have and read the FAQ of this forum,
This forum has a wealth of information, if you have the time to search.


I had started doing my project in vista, and I never came to this problem of FileNotFound when the file is seems ok to me so far.

So how do we know what OS sun is going to test it on?

Could you share some of your design choices with us,

1.thin or fat client?
2. rmi or sockets, if rmi, did you use RMI factory, was your assignment based on cookies for concurrent access?
3. GUI choices:layouts used, textfields or comboboxes for searching?
4. did you use caching


9 years ago


9 years ago

I think I didnt make myself clear, I agree with your point of checking the
availability at the business layer. that is what I have done too. But
I suppose I am not wrong in saying that my business layer is on the server, because my client is a thin client and it is supposed to call the
business methods by RMI.

So thats why I said that the checking of availability should be done on the server side (precisely, at the business layer which is on the server)