[jboss-user] [JBoss Seam] - Re: seam converter

2007-10-17 Thread elikyip
converter was not being scanned by seam.  Once I got that going everything 
works as expected...It almost seems like you had similar problem from your 
earlier posts.

Also, you don't have to register the converter in the faces config as suggested 
in earlier post (that's the whole point of using the Converter annotation).

And I'm using seam 1.2.1.GA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096156#4096156

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam converter

2007-10-17 Thread elikyip
Actually, my problem was due to the fact that my converter was not being 
scanned by seam.  Once I got that going everything works as expected...It 
almost seems like you had similar problem from your earlier posts.

Also, you don't have to register the converter in the faces config as suggested 
in earlier post (that's the whole point of using the Converter annotation).

And I'm using seam 1.2.1.GA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096155#4096155

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096155
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam converter

2007-10-17 Thread elikyip
Actually, my problem was due to the fact that my converter was not being 
scanned by seam.  Once I got that going everything works as expected...It 
almost seems like you had similar problem from your earlier posts.

Also, you don't have to register the converter in the faces config as suggested 
in earlier post (that's the whole point of using the Converter annotation).

And I'm using seam 1.2.1.GA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096157#4096157

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: seam converter

2007-10-16 Thread elikyip
Wondering if you ever figured out the problem.  I'm trying to use the converter 
too.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095711#4095711

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095711
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Interceptor for seam component

2007-06-27 Thread elikyip
Is there a way to create an interceptor for a seam component that's NOT an EJB? 
 Basically, I want the interceptor to get invoke whereever a method in the seam 
component is called.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058267#4058267

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058267
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to find out Default Schema given a SessionFactory

2007-05-31 Thread elikyip
Hi,

Is there any way to find out the Default Schema name from a SessionFactory?

Any help is appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050346#4050346

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050346
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - My own Hibernate Configuration class in seam managed persist

2007-05-08 Thread elikyip
I have my own implementation of Hibernate Configuration class that I want to 
use.  Does anyone know a way to plug that in to Seam managed persistence?

Any suggestion is appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044005#4044005

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044005
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to gather Hibernate Statistic when using seam manage

2007-04-26 Thread elikyip
Thanks Christian.

There is a method call in Session to get its SessionFactory...i have to look at 
the api more careful :-) ... I was not expecting a Session to be aware of the 
factory that creates itlittle (pleasant) surprise.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041053#4041053

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to gather Hibernate Statistic when using seam managed pe

2007-04-25 Thread elikyip
I'm trying to gather some 2nd-level cache statistics but I don't know how to 
get a hold of the Hibernate SessionFactory since seam creates and injects the 
EntityManager to my DAO for me.

Anyone can give me some clues?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040739#4040739

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040739
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - One SessionFactory for multiple schema

2007-04-24 Thread elikyip
Long story short: 
In our multi-tenant architecture we cannot afford to create one SessionFactory 
per schema because of the number of schema's we have. The table structures are 
identical in ALL the schemas though.

We are trying to see if we can use ONE SessionFactory for multiple schema 
without comprimising the second-level cache.  We are thinking about creating a 
cache region for each schema by adding the schema's name to the region's name.

Has anyone done this before with the cache region name?

Any idea, clue, hint,is highly appreciated

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040296#4040296

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040296
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - f:setPropertyActionListener and s:link

2007-03-24 Thread elikyip
Does anyone know if f:setPropertyActionListener and s:link work together?  I 
have the following code snippets and it does not seem like my backing bean 
"selectedTab" property is being set.

Any help is appreciated.


  


@Name("topNavBar")
@Scope(ScopeType.EVENT)

public class TopNavBar {
  
  @Logger
  private Log logger;

  @RequestParameter
  private String  greeting = "No Greeting";

  private String  selectedTab;

  public String getSelectedTab() {
return selectedTab;
  }

  public void setSelectedTab(String selectedTab) {
this.selectedTab = selectedTab;
  } 

  public String getGreeting() {
return greeting;
  } 

  public String select() {
return "redirect-index";
  } 

  public void setGreeting(String greeting) {
this.greeting = greeting;
  } 
}


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031360#4031360

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031360
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Package ejb2.1 entities along with ejb3.0 session deans

2007-03-08 Thread elikyip
hi koyav,

Did you ever find out the answer? If yes, can you let me know?  I have to do 
similar thing

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026360#4026360

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026360
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB 2.1 and 3.0 in one web-app

2007-03-08 Thread elikyip
Hi mglowacki,

Did you find out the answer? If yes, can you let me know? Is there anything 
special I need to do?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026362#4026362

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026362
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - EJB3 session bean calling EJB2 session bean

2007-02-27 Thread elikyip
Does anyone know some articles on communication between EJB3 and EJB2 session 
beans?  Is there anything special that needs to be done?

Any suggestion is highly appreciated

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023231#4023231

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023231
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Need help with propagation of seam managed persistence c

2007-02-27 Thread elikyip
Thanks so much Pete...that was it...thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023160#4023160

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Need help with propagation of seam managed persistence conte

2007-02-26 Thread elikyip
Hi

I'm a newbie to seam and ejb3 and need some help regarding Persistence Context 
(PC) propagation.

I have the code snippets below using @EJB and 
@PersistenceContext(type=EXTENDED) that properly propagate the PC to my EJB DAO.
However, when I changed @EJB to seam @In injection for my DAO and EntityManager 
it seems like the PC is no longer propagated.

Can someone tell what I'm doing wrong?  Please let me know if you need more 
detail.

Any suggestion is appreciated.

= REMOTE Stateful Bean using @EJB and PC properly propagated ===

@Stateful
@Name("userService")

public class UserEJBService implements UserService {
  @EJB
  private UserDAO _userDAO;

  @PersistenceContext(type=EXTENDED)
  private EntityManager   _em;

  public User test(Long userId) {
User user =_em.find(User.class, userId);
boolean contain  = _userDAO.contains(user);  // PC properly progagated and 
"contain" == true
return user;
  }
}

= REMOTE Stateful Bean using @In and PC NOT propagated ===

@Stateful
@Name("userService")

public class UserEJBService implements UserService {
  @In(value="userDAO", create=true)
  private UserDAO _userDAO;

  @In(value="entityManager")
  private EntityManager   _em;

  public User test(Long userId) {
User user =_em.find(User.class, userId);
boolean contain  = _userDAO.contains(user);  // PC NOT progagated and 
"contain" == false
return user;
  }
}

= LOCAL Stateless DAO Bean ===

@JndiName("jboss-seam-booking/UserDAOBean/local")
@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
@Name("userDAO")

public class UserDAOBean extends GenericEJBDAO
  implements UserDAO {

  public boolean contains(User user) {
return getEntityManager().contains(user);
  } 
} 

= components.xml ===


http://jboss.com/products/seam/components";

xmlns:core="http://jboss.com/products/seam/core";

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation=

"http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.1.xsd 
 
http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.1.xsd";>













View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022630#4022630

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022630
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem with Backing Bean method being called multi-times

2007-01-30 Thread elikyip
Hi,

I'm a newbie in seam, jsf, and all that jazz...

I've created a simple application and it's running fine with one exception.
The method in my backing bean that returns a list of items to display is being
called ONCE per LOOP in my jstl  loop. This is very inefficient as 
this
method is hitting the database every loop.

1) My question is why is that method being called every loop iteration. 
Shouldn't it be
called only once in the loop?

2) Am I doing something that I should not? If yes, can anyone tell me the right
way of doing this.


Any suggestions is highly appreciated !!


Backing Bean snippets...

@Name("FooBean");
@Scope(ScopeType.EVENT)
public class FooBean {
  ...
  public List getFooList() {
// This method retrieves data from database and return it.
  }
  ...
}

xhtml JSTL snippets:

  


Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008442#4008442

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008442
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user