How can use EJB local call in WLS 7.0 without EAR

I have web application as jsp files.
and I made .jar for some EJBs
and I used local call for calling EJB from jsps in WLS 6.1
but in WLS 7.0 .. occured error calling EJB as Local call
while JNDI lookup.
So I packed all applications as EAR and deployed then all works good.
but in developing I want to use JSPs as jsp files.
There is no way to use Local call to EJB in WLS 7.0 without packing EAR ? (like
WLS 6.1)

The way JNDI lookups were implemented in 6.1 allowed to deploy individual ejb-jars
and access their local interfaces via JNDI lookups from other ejb-jars during
development. In production all ejb-jars will be packaged into an ear.
This is extremely helpful on large projects. E.g. my current project has over
120 CMP entity beans and over 40 session beans. Even on 2GHz class machine with
1Gb memory and JDK 1.4 (to enable full-speed debugging) it takes almost a minute
to deploy the ear (no matter whether it is exploded or not). It takes minutes
with 1.3 and debugging turned on.
6.1 implementation allowed to "pre-deploy" relatively static ejb-jars and still
access their local interfaces (by putting them on WL system classpath and deploying
as individual ejb-jars, so classes are accessible to local clients; it requires
WL restart when they are changed, but they don't change often). So during development
only changed jars (typically session facade) need to be redeployed on changes,
which takes only seconds. We didn't have problem with JNDI lookup performance
since we use the EJBHomeFactory pattern.
The behind-the-scene JNDI optimization "improvement" introduced in 7.0 makes it
no longer possible to use this technique, since even though classloading still
works in the same way, no objects are bound to JNDI tree and thus could not be
access from another ejb-jar. This significantly impacts developer productivity
(in our large project). It's not only about minutes lost (which btw makes hours
over time), it just disrupts developer's train of thought to have such long round
trip times. In fact this is the reason we are not going to migrate to WL 7.0.
Is it possible to provide an option to turn this "optimization" off and actually
bind JNDI objects?
Thank you,
Sergey
"Dimitri I. Rakitine" <[email protected]> wrote:
Park <[email protected]> wrote:
Thanks Rakitine.
I wonder if I use EAR while developing could I apply changes to EARwhithout packing
again.Sure - you can simply deploy your app as an 'exploded' EAR during development.
There is no probelm delivering time but in developing time ..
If I can not use that kind of way how can I make modification ?
Plz. let me know.
And I have one more question.
When I use EAR I met some problem.
I packed all JSP into one .war file.
fot that I had to inclde requred classes into .war because jsps usethese classes.
then I packed EAR file with WAR and some EJB jar files.
After then I deployed EAR file to WLS.
But If remove classes from classpth while EJB deploying Error occured.Because
EJBs reference these classes.
I thoght if I packed classes into .WAR .. there is no problem.
But Error occured.
I have to include classes into classpth for that ? or
Any mistakes in my way.No, you do not have to add anything to the system classpath. In fact,
you should
make sure that none of your application classes are in the system classpath.
thank you.
"Dimitri I. Rakitine" <[email protected]> wrote:
Yup, that appears to be the difference between 6.1 and 7.0 - in
6.1 success of a local invocation depended only on the Classloaders
arrangement, so everything worked when you added your classes to the
system classpath. In 7.0 looks like it also depends on the application
context - that's why you cannot do a JNDI lookup from another deployment
unit.
Is there any reason why you do not want to use EAR's ???
Park <[email protected]> wrote:
in WLS 6.1 ..
I have EJB as jar files. (deployed each to WLS)
and I added EJB interface class to classpath.
and I made WebApplication as Directory (not war file).
in that webappication jsp call EJB as Local interface.
These environment .. local call workes well in WLS 6.1.
but in 7.1 not works .. (JNDI look up error)
of course Remote call works well. and If I make EAR .. works well.
Rob Woollen <[email protected]> wrote:
You can have an exploded EAR and have it work.
Can you give some more detail on how you are deploying in 6.1. Is
it
an
exploded EAR, or do you have the ejb interfaces in the classpath?
This behavior should not have changed between 6.1 and 7.0.
-- Rob
park wrote:
I have web application as jsp files.
and I made .jar for some EJBs
and I used local call for calling EJB from jsps in WLS 6.1
but in WLS 7.0 .. occured error calling EJB as Local call
while JNDI lookup.
So I packed all applications as EAR and deployed then all works
good.
but in developing I want to use JSPs as jsp files.
There is no way to use Local call to EJB in WLS 7.0 without packingEAR ? (like
WLS 6.1)
Dimitri
Dimitri

Similar Messages

  • I have 3g 64mb wi-fi and i am out of country, how can use there local phone company? They don't have a Verizon.

    I have 3g 64mb wi-fi and i am out of country, how can i use there local phone company? They don't have a Verizon.I am deeply apologaze for my English but i really need a help from you.Thanks a lot!
    Message was edited by: gulnarafromtroutdale

    verizon is cdma rather then gsm which is the mostly used phone network outside usa
    so depending on where out of he country mean you may not be able to recieve service at all
    I would check up on the country you're going to's phone companys they would have a guide
    if they support cdma and ipads

  • How can I make local calls without using a country code when it's in my Contacts?

    The phone numbers in my Contacts all contain country codes because I do a lot of travelling.
    An example of this might be:
    +1 (229) 123-4567
    +44 (0)12 345 6789
    +31 (0)10 2345 6789
    I have an unlocked phone so when I travel, I usually pick up a local SIM and use that to make calls.
    The problem I have is that when I am abroad and select a phone number from my contact list it doesn' work. For example, if I select a contact with the number:
    +31 (0)10 2345 6789
    A voice-recording comes on saying that the number I had dialed was incorrect.
    But when I dial the number manually:
    010 2345 6789
    It works.
    In the US I do not have this problem because for some reason, the phone knows whether the +1 is needed or not. I'm sure if it uses it at all when you're in the US. When I dial internationally from within the US, the number dialing works fine.
    So this problem only occurs when I'm dialing locally in the country I'm in while travelling outside the US.
    Anyone have any idea of why this is happening and more importantly, what I need to do to fix this? I would hate to have go and change all my contact numbers and get rid of the country codes. If I ever have to call those numbers internationally, I'll need to manually add the country code back in.
    Very annoying!
    Advice anyone?

    If you include a country number, you have to drop the initial 0 from the area code. eg +31 10 2345 6789 instead of +31 (0)10 2345 6789

  • HT1222 I visited the USA and bought an Apple iPhone 4 5.1.1, the latest model.  I would like to unlock it and use in my country.  How can I get it unlocked so the I can use my local micro sim card?  What info about it do you need to assist me in unlocking

    I visited the USA and bought an Apple iPhone 4 5.1.1, the latest model.  I would like to unlock it and use in my country.  How can I get it unlocked so the I can use my local micro sim card?  What info about it do you need to assist me in unlocking it?

    Sounds like you bought an AT&T no contract phone. You will need to contact AT&T for unlocking but they are only doing so for current and previous account holders. If you have never had service with them they will not unlock your phone.

  • I visited the USA and bought an Apple iPhone 4 5.1.1, the latest model.  I would like to unlock it and use in my country.  How can I get it unlocked so the I can use my local micro sim card?  What info about it do you need to assist me in unlocking it?

    I visited the USA and bought an Apple iPhone 4 5.1.1, the latest model.  I would like to unlock it and use in my country.  How can I get it unlocked so the I can use my local micro sim card?  What info about it do you need to assist me in unlocking it?

    Contact the original cellular provider, as they are the only ones that can provide unlocking.

  • How can i configure SIP call using uc320 in india

    Hi,
    I have one uc 320w box. now wannt to call my itally office in cost effective way.
    how can use it?
    i heaard about SIP calling. is it avalaible in india? or suggest me the possiblw ways.
    Thanks
    Sujish Sudhakar

    Hi Sudhakaran,
    I think this article about SIP Configuration would help you as a step-by-step process.
    Generic SIP Configuration on UC320W

  • How can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    how can i reject incoming calls in lock screen , without using ON/OFF key ??? (in iOS 7.0.2)

    You can't. Either tap the Sleep/Wake button or just let the call to continue to ring.

  • How can i read local excel file into internal table in webdynpro for abap a

    Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
    thank u for your reply

    Deep,
    File manuplations...............................
    1. At the presentation level:
    ->GUI_UPLOAD
    ->GUI_DOWNLOAD
    ->CL_GUI_FRONTEND
    2. At the application server level:
    ->OPEN DATASET : open a file in the application server for reading or writing.
    ->READ DATASET : used to read from a file on the application server that has been opened for reading
    -> TRANSFER DATASET : writing data to a file.
    -> CLOSE DATASET : closes the file
    -> DELETE DATASET : delete file
    If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
    call function 'GUI_UPLOAD'
    exporting
    filename = p_file
    filetype = 'ASC'
    has_field_separator = '#'
    tables
    data_tab = t_data
    p_file : excel file path.
    t_data : internal table
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • How can use files *:SCR in AS400

    Actually I working with OLAP ESSBASE in a AS400.<BR>I need create a process to automated the clear all of a Cube<BR>I know the process in Windows<BR>Create a notepad file with this sentences and save file with the extension SCR<BR>            LOGIN "Machine" "User" "Password" "Application" "Database";<BR>            RESETDB ;<BR>            EXIT ;<BR>Then, create a file :bat with a sentence<BR> ESSCMD FILE.SCR<BR>and finally execute the file *.bat<BR><BR>In AS400 the ESSCMD have a lot parameters:<BR><BR> RUN ESSBASE/400 COMMANDS (ESSCMD) <BR> <BR>INPUT FILE NAME . . . . . . . . INFILE NONE         <BR>  LIBRARY  . . . . . . . . . . .                  LIBL <BR>INPUT MEMBER . . . . . . . . . . INMBR FIRST        <BR>OUTPUT FILE NAME . . . . . . . . OUTFILE        NONE <BR> LIBRARY . . . . . . . . . . . LIBL       <BR>OUTPUT MEMBER NAME . . . . . . . OUTMBR         FIRST <BR>ERROR LOG FILE NAME . . . . . . ERRFILE NONE         <BR>  LIBRARY  . . . . . . . . . . .                  LIBL <BR>ERROR LOG MEMBER NAME . . . . . ERRMBR FIRST        <BR><BR>I tested with a file source and a member TXT with the sentences of the file .scr<BR>and then put every parameters in a INPUT options and run the Command, but inmediatelly show me the next screen :<BR> Essbase Command Mode Interface - Release 6.5.4 (6.5.4) <BR> Copyright(c) 1991-2003 Hyperion Solutions Corporation. All rights reserved. <BR> <BR> U.S. Patent Number 5,359,724 <BR> U.S. Patent Number 6,317,750 <BR> <BR> <BR> ESSCMD/400 is running in AS/400 interactive mode <BR> ESSCMD/400 is using *COMPLETE script syntax                                 <BR>                                                                             <BR>                                                                             <BR> ESSLANG environment variable not set                                        <BR>                                                                             <BR> Using default locale "English_UnitedStates.US-ASCII@Binary"...              <BR>                                                                             <BR> (Wed Feb  1 16:18:52 2006)Local////Error(1040007)                           <BR> Error 1040007. Cannot find message database                                 <BR><BR><BR><BR>Can somebody help me?<BR>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    There's a sample in the FABridge.zip download (called
    EmptySwf.as) that
    shows how to use the bridge in a non-framework actionscript
    only app.
    There's nothing in the bridge that requires the framework.
    Jason Szeto
    Adobe Flex SDK Developer
    "wlt008" <[email protected]> wrote in
    message
    news:e4c2k4$rob$[email protected]..
    >I want to build an ActionScript project instead of flex,
    how can use
    >FABridge library in my project?

  • How can I make a call from iPad

    How can I make a call from IPad

    Oh, you have to get the iPhone app.
    Seriously, though .... you are aware that it's not a telephone, right? Any calls you make will be using VOIP and any of the apps and/or services (Skype, Google Talk, etc., etc.) which support that. Some of those are US-only, all have various restrictions and cost structures.

  • How can i add my outlook email to my ipad without useing the Exchange Service?

    Please help me in this, How can i add my outlook email to my ipad without useing the Exchange Service?

    I'm afraid you've posted in the wrong place. This is a technical forum around a particular product called 'SharePoint'. This does talk to Exchange and Outlook in places but we don't specialised in either of those. You should have a look for one of the
    generic Outlook support forums or contact your IT department if it's a work related account.

  • How to use Stored Procedure Call in Sender JDBC adapter

    Hi All,
             Could someone send me a blog on how to use Stored Procedure call in Sender JDBC adapter?
    Xier

    Hi Xler
    refer these links
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Also, you can check Sriram's blog for executing Stored Procedures,
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    /people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
    This blog might be helpfull on stored procedures for JDBC
    JDBC Stored Procedures
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Please go through these threads and see if it helps...
    Re: How to execute Stored Procedure?
    Re: Problem with JDBC stored procedure
    Thnaks !!

  • How to use @jws:sql call Stored Procedure from Workshop

    Is there anyone know how to use @jws tag call Sybase stored procedure within
    Workshop,
    Thanks,

    Anurag,
    Do you know is there any plan to add this feature in future release? and
    when?
    Thanks,
    David
    "Anurag Pareek" <[email protected]> wrote in message
    news:[email protected]..
    David,
    In the current release, we do not support calling stored procedures from a
    database control. You will have to write JDBC code in the JWS file to call
    stored procedures.
    Regards,
    Anurag
    Workshop Support
    "David Yuan" <[email protected]> wrote in message
    news:[email protected]..
    Anurag,
    I know how to use DB connection pool and create a db control with it. In
    fact, we have created a Web Service with the db control using plain SQL
    in
    @jws:sql. However, my question here is how to use @jws tag in Weblogic
    Workshop to create a Web Services based on Sybase stored procedure orany
    Stored Proc not plain SQL.
    Thanks,
    David
    "Anurag Pareek" <[email protected]> wrote in message
    news:[email protected]..
    David,
    You can use a database control to obtain a connection from any JDBC
    Connection Pool configured in the config.xml file. The JDBC Connectionpool
    could be connecting to any database, the database control is
    independent
    of
    that.
    Regards,
    Anurag
    Workshop Support
    "David Yuan" <[email protected]> wrote in message
    news:[email protected]..
    Is there anyone know how to use @jws tag call Sybase stored
    procedure
    within
    Workshop,
    Thanks,

  • How can I include local fonts in my finished edge reflow website?

    How can I include local fonts in my finished edge reflow website?
    The website has to run without internet connection and the use of webfonts. I have already tried to to include fonts manually but this wasn't working.

    I would like this too, as it would save a lot of time using icons in the form of icon fonts.

  • How to use EJB Remote with Netbeans7.0 ?

    I try to create Session Bean in Netbeans 7.0 but when I select Remote then I have to select Java Application in Netbeans. It different from Netbeans 6.8 ,6.9 which in Netbeans6.8, 6.9 not have dropdown for select Java Application when we choose Remote. So I don't know how to use EJB Remote in Netbeans7.0 then I click finish. After that, I create Project is Enterprise Application Client. but in Main.java at this line
    BLSessionRemote obj = (BLSessionRemote)ctx.lookup("TestBean");
    It can't find BLSessionRemote in Session Beans. How to use EJB Remote with Netbeans7.0 ?

    Why don't you ask this question in the Netbeans mailing lists, where it belongs. Come here when you have problems with code you wrote yourself.

Maybe you are looking for