Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Ganesh Gowtham

Ranch Hand
+ Follow
since Mar 30, 2005
Ganesh likes ...
IBM DB2 Eclipse IDE Spring
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ganesh Gowtham

HI Folks,


I am newbie to JBOSS World .

I am trying to migrate my application which has Seam, Ejb, Struts, JSF and JMS from JBoss 4.2.0 to Jboss 5.1.0

Following are my quetsions
  • Can i call EJB exposed in JBOSS 5.1.0 from JBOSS 4.2.0 ?, if not is there any work around like having jars will help them


  • Can i consume EJB exposed in JBOSS 4.2.0 from JBOSS 5.1 ?, if not is there any work around like having jars will help them


  • I had hard time in finding the port where EJB is exposed in JBOSS 5.1.0, I would like to know name of file.


  • can present consumer of JBOSS 4.2.0 from standalone process call EJB exposed in JBOSS 5.1.0?


  • Thanks in advance.
    HI Folks,


    I am newbie to JBOSS World .

    I am trying to migrate my application which has Seam, Ejb, Struts, JSF and JMS from JBoss 4.2.0 to Jboss 5.1.0

    Following are my quetsions
  • Can i call EJB exposed in JBOSS 5.1.0 from JBOSS 4.2.0 ?, if not is there any work around like having jars will help them


  • Can i consume EJB exposed in JBOSS 4.2.0 from JBOSS 5.1 ?, if not is there any work around like having jars will help them


  • I had hard time in finding the port where EJB is exposed in JBOSS 5.1.0, I would like to know name of file.


  • can present consumer of JBOSS 4.2.0 from standalone process call EJB exposed in JBOSS 5.1.0?


  • Thanks in advance.
    8 years ago
    Hi Folks,

    I would like to give seminar on Restful Services using the Jersey (or) Spring Jersey.

    Could someone guide me some advanced and intersting concepts, which will used for techies who attend the session?

    Some of the concepts which come to my mind

    Reperesting resources as hyperlinks HATEOAS

    Authentication

    Thanks in advance.
    8 years ago


    I would like to add all entries of list2 to list , so that when i iterate the "list" in java i will get all entries ( coolman,coolman two)

    may i know how to achieve the same ?

    Thanks in advance
    9 years ago
    Scenraio is something of this sort ...

    In our project we have couple of Spring beans save POJO ( service layer which talks to dao ...)

    During the spring context startup, i would like to expose configured beans as Restful services ...

    As @Lance said, i need to tweak or extend or customise the spring loading stuff to acieve the same ...

    Any examples or WIKI or idea would be really appreciated.

    9 years ago
    Hi Folks,

    I would like introduce some dynamic cabability of exposing the spring bean as restful services

    scenario is

    1) i need to read the list of spring bean id's from fileat runtime( or during the loading time of web app)
    2) based on bean id's i fetch from step 1 , i need to some how expose the beans as restful services

    is there a way to acieve the same ?
    Hi Folks,

    I would like introduce some dynamic cabability of exposing the spring bean as restful services

    scenario is

    1) i need to read the list of spring bean id's from fileat runtime( or during the loading time of web app)
    2) based on bean id's i fetch from step 1 , i need to some how expose the beans as restful services

    is there a way to acieve the same ?
    9 years ago
    Since i woudl like to use same pojo for testing too ( i made required=false ) all beans will load on need basis in main app too ...

    i got solution from below licnk , which works on manuplating DOm tree before spring intilaises

    .Spring Link

    Thanks Mark for help .
    10 years ago
    Hi ,

    I had written class which extends “AbstractTransactionalSpringContextTests” for testing my beans instantiated via spring framework .

    I had annotated all java classes eligible for spring to load with @Service,@Autowire,@Qualifier in XML along with component scanning with pkg which has annotated classes .

    Issue I face when I tried to inject properties (with autowire ) for classes which is not apart of component scanning ( I purposefully left those packages in scanning, as I am not interested in testing / loading the class)
    Spring does because required is set to true by default in Autowired class.
    Hence to resolve this issue , I added “default-lazy-init="true" in xml , which resolved my issue .

    Even with “AbstractTransactionalSpringContextTests” we have that option using “setDependencyCheck(false) ".it is not working as expected .

    I prefer way to do in test class level , rather than changing xml ( FYI going fwd we would like to use same XML for application and testing )

    10 years ago
    With @Autowired it perfectly works with abstract classes ,Thanks for info

    is there way to create the virtual abstract bean



    in above XML case ,we really dont have real abstract class in java ,instead we call hibernamteTemplate (aka sampleDao )

    Thanks in advance .
    10 years ago


    Hi Mark ,

    Thanks for your kind reply .

    We construct abstract bean like

    How this can be changed using annotation ? can it be done if so how ?


    @Scope - i will check this annotation .

    Can you eleborate on this please "I can create the pojo Factory as a bean, then inject it in places that can call the factory method when it needs those objects. "



    Thanks in advance .
    10 years ago
    HI Ranchers !!!

    I am working on migration of Spring XML to Spring Annotaions , Since we have limitation we have to use featured upto spring 2.5.6

    As per my idea , we cant achieve all things that we do via XML

    Few Limitations with Annotations
    -------------------------------------

    1) cant declare bean (pojo) as abstract , as we do in XML
    2) Factory way of instantiating beans
    3) Lazy loading
    4) Declaring bean as prototype (or) non prototype
    5) Injecting collections to bean

    Let me know if we have any work around of above mentioned issues .

    Could somebody point out link , where i can see spring annotations limitations .

    Thanks in advance
    10 years ago
    try usemodtime , seems deprecated
    10 years ago

    Sarah Raf wrote:Thanks for the Quick reply Ganesh.
    Do I need to make my HashMap class as protected then?



    How can you do this ? ( will you extends Hashmap bh any chance if so you do ,but for your requirement it doesnt makes sense for that effort ) .



    In above scenario makes sure while you are retriving from DB , make all other threads in wait stage , else those threads will get the satle data or null values .

    Hope it helps .

    Concepts to use
    Singleton , In memory Caching , Threading ...
    10 years ago
    What you are doing is concept called "Caching In Memory" .

    If you are using in Web Appln , store this hashmap instance in Application scope .

    In standalone , as far your instance is alive you have data in hashmap , write the code in such as way , none of other class have access to modify values in hashmap .
    10 years ago