[JBoss Seam] - Re: begginer question - request parameters
by Delphi's Ghost
I'm no expert on Seam-Gen generated edit pages, but I think it goes like this :
The edit pages edits a Widget called "widget", it doesn't matter if it is a new one, or an existing one.
You create a factory method for "widget" which in the same bean, injects the parameter widgetId. The factory method says "If I have an ID, load the widget, otherwise create a new one". Either way, it outjects a Widget called "widget", new or loaded.
So, you load the edit page, which requests a bean called "widget" so seam calls the factory method on the bean, injecting the parameters beforehand. Your factory method checks the parameter, loads or creates a new widget, and returns it to Seam, which passes it to the page for editing.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081536#4081536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081536
18 years, 7 months
[JNDI/Naming/Network] - Re: basic JNDI beginners problems - cant do look up from app
by wiggy
jaikiran
thanks for the reply - its a little late at night - i tried the same code on another laptop (not my works one) and I do seem to get a lookup - so theres probably something in the works laptop blocking the lookup (though i'm not sure what as the the fw is disabled - but we have odessy as port authent service when connecting to lan and may thats impacting the connection - i'll have a look tomorrow.
however general query - if I remove the line
<use-java-context>false</use-java-context>
from my DS spec - then the DS gets put in the 'java:' tree in the AS jndi tree, and when i try to look that up it says 'java:' is not bound from the standalone application.
is the the 'java:' branch only available to applications deployed into the AS server ? therefore i was using servlets and other clients deployed to the AS i can use the default 'java: ' branch - but if i want remote clients to access them i need to put them in global JNDI tree?
If i declare a @Remote annotation for a session bean - does that go into the global or the 'java:' tree? if the latter how are external apps expected to find the sessionBean JNDI references?
kind regards Will
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081523#4081523
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081523
18 years, 7 months