[JBoss-user] [EJB/JBoss] - Re: Getting EJB from jsp in different container
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821823#3821823 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821823 All you have to do is to look at the jndi context of the server which has ur EJBs. You can create a hashtable with your EJB server's jndi properties and create a InitialContext out of it. Then lookup the bean from this context --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: accessing Local Interfaces from JSP's
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821803#3821803 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821803 I would suggest you think again before tying your Entity bean to your JSP code. The decision you take should depend on what you are trying to achieve here. If you are just looking at creating a 'make and throw away' kind of code..please go ahead with this approach. On the other hand if you are planning to use this application extensively I would recommend that you re-think this strategy. Once used any application will need updates and enhancements. By following your idea you are creating a strong coupling between the business tier and web tier which is a bad design. Any change in your datasource or business obj will ripple across tiers... Implement a business delegate layer to provide a clean separation of tiers --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user