EJB and object transfer

Hi.
I try to transfer an object from my client to EJB. This object has only 2 simple properties (such as id and name - int and String). the Class of this Object implements java.io.Serializable interface.
But when it occurs i have such eception
com.sun.corba.ee.impl.encoding.CodeSetConversion$JavaCTBConverter convertCharArray
WARNING: "IOP02400001: (DATA_CONVERSION) Character does not map to negotiated transmission code set"
org.omg.CORBA.DATA_CONVERSION:   vmcid: OMG  minor code: 1  completed: No
        at com.sun.corba.ee.impl.logging.OMGSystemException.charNotInCodeset(OMGSystemException.java:2093)
        at com.sun.corba.ee.impl.logging.OMGSystemException.charNotInCodeset(OMGSystemException.java:2111)
        at com.sun.corba.ee.impl.encoding.CodeSetConversion$JavaCTBConverter.convertCharArray(CodeSetConversion.java:336)
        at com.sun.corba.ee.impl.encoding.CodeSetConversion$JavaCTBConverter.convert(CodeSetConversion.java:249)
        at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:504)...............I have an entity
package com.titan.domain;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name="CABIN")
public class Cabin implements Serializable {
    private static final long serialVersionUID = 1L;
    private int id;
    private String name;
    private int deckLevel;
    private int shipId;
    private int bedCount;
    @Id
    @Column(name="ID")
    public int getId() {
        return id;
    public void setId(int id) {
        this.id = id;
    @Column(name="NAME")
    public String getName( ) { return name; }
    public void setName(String str) {name = str; }
    @Column(name="DECK_LEVEL")
    public int getDeckLevel( ) { return deckLevel; }
    public void setDeckLevel(int level) { deckLevel = level; }
    @Column(name="SHIP_ID")
    public int getShipId( ) { return shipId; }
    public void setShipId(int sid) { shipId = sid; }
    @Column(name="BED_COUNT")
    public int getBedCount( ) { return bedCount; }
    public void setBedCount(int bed) { bedCount = bed; }
}Remote interface
package com.titan.travelagent;
import com.titan.domain.Cabin;
import javax.ejb.Remote;
@Remote
public interface TravelAgentRemote {
    public void createCabin(Cabin cabin);
    public Cabin findCabin(int id);
}EJB code is
package com.titan.travelagent;
import com.titan.domain.Cabin;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
* @author sokolov
@Stateless
public class TravelAgentBean implements TravelAgentRemote {
    @PersistenceContext
    (unitName="titan")
    private EntityManager manager;
    public void createCabin(Cabin cabin) {
        manager.persist(cabin);
    public Cabin findCabin(int id) {
        return manager.find(Cabin.class, id);
}And client code is
package titan;
import com.titan.domain.Cabin;
import com.titan.travelagent.TravelAgentRemote;
import javax.ejb.EJB;
* @author sokolov
public class Main {
     * @param args the command line arguments
    @EJB
    private static TravelAgentRemote dao;
    public static void main(String[] args) {
        Main client = new Main();
        createCabin();
        //findCabin();
    public static void createCabin() {
        Cabin cabin_1 = new Cabin( );
            cabin_1.setId(1);
            cabin_1.setName("Master Suite");
            cabin_1.setDeckLevel(1);
            cabin_1.setShipId(1);
            cabin_1.setBedCount(3);
            dao.createCabin(cabin_1);
    public static void findCabin() {
        Cabin cabin_2 = dao.findCabin(1);
        System.out.println(cabin_2.getName( ));
        System.out.println(cabin_2.getDeckLevel( ));
        System.out.println(cabin_2.getShipId( ));
        System.out.println(cabin_2.getBedCount( ));
}

I had the same problem.
I deleted automatically generated deployment and RMIC code, did a rebuild all projects, deployed on server, restarted server and it just worked out.

Similar Messages

  • Objects and XML-Transfer

    Hello, I'm a newbie to web services and I'm also not very experienced in programming. After reading through a number of articles and following some tutorials I'm still not sure about data and object transfer with JAX-WS and the binding with JAXB
    ---> let's say I have a web service that calculates signal path loss of an access point in a room. So I could create a room class that consists of a list of walls, and an access point. The wall class has the 2dimensional coordinates for it's 2 ends and the access point class has only it's 2d coordinate.... and so on.
    The client against this web service would have to create this room-object with the other objects it consists of and send it to the web service to calculate the signal map of the room.
    My question is: What ways can I use to transfer such a data structure and what is the best practice?
    1st way: I can create the room-object as a plain old java object and let JAX-WS do the marshalling to XML and the unmarshalling back to java object on the server side. (I tried this, it works quite easiely, but I doubt this is the right way, because client and server must be written in Java, and the client also need the Room-class in its library to compile....not really the goal of SOAP and WS's)
    2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?
    3rd way:? is there a better way to transfer such datastructures, with focus on language independency?
    Thank you in advance!

    VirtualG wrote:
    2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?you have already done that, you just don't realize it because of all the work that java is doing. you created a webservice with jaxws. did you see the wsdl which was generated by the webservice? this is the language independent piece of the puzzle.
    you in fact do not need the existing java classes in order to create a new java client. you could use the wsimport tool pointed at the wsdl from your service to generate the classes that you need to write a new java client. in this same fashion, a developer could use a similar tool written for another language (say .NET), to generate the necessary client side code to use your webservice.

  • EJB Home Objects and Stubs

    Hi,
    Can anyone pls tell me,what are the objects are created in Server after the Deployment of EJB.
    Is the EJB Home Object,EJB Home Object Stub,EJB Home Object Skeleton, EJB Local Home Object, EJB LocalHome Object Stub,Ejb LocalHome Object Skeleton.And Finally both the Stub objects and Skeleton Objects will be stored in the Jndi Registry ?
    Thanks in Advance,
    Venkat

    Nic,
    Caching the home object is a comon practice.
    Take a look here:
    http://www.theserverside.com/resources/patterns_review.jsp
    Look at the EJB Home Factory Pattern.
    Regards,
    -Dat

  • RE: design patterns involving EJBs and JDO

    Is the idea that you specify in some config file (xml?) the methods of
    your session bean, whether its stateful or stateless, the default bean
    transaction semantics, etc, then say "go" and it generates the home and
    remote interfaces and the skeletal session bean class?
    -----Original Message-----
    From: Eric Lindauer [mailto:[email protected]]
    Sent: Monday, June 25, 2001 8:26 AM
    To: JDO-ListServ
    Subject: Re: design patterns involving EJBs and JDO
    I don't think it's publicly available yet, I used to work there and was
    helping out a little with testing. I'll tell you in advance, it really
    works well. Much like the JDO implementation, the process of turning
    things into SesisonBeans is very transparent to the developer. I guess
    TT is going to make it available in another week or two, as time
    permits.
    ----- Original Message -----
    From: Matthew <mailto:[email protected]> Adams
    To: '[email protected]' <mailto:'[email protected]'>
    Sent: Monday, June 25, 2001 11:18 AM
    Subject: RE: design patterns involving EJBs and JDO
    IMHO, JDO replaces entity beans, but you'll have to decide for yourself.
    My recommendation would be to use session beans exclusively.
    Where do you get TechTrader's "SessionBean Creator"? What are its
    features? How do you use it?
    -----Original Message-----
    From: Eric Lindauer [mailto:[email protected]]
    Sent: Monday, June 25, 2001 8:12 AM
    To: JDO-ListServ
    Subject: design patterns involving EJBs and JDO
    Hi,
    I was just wondering, if you are using JDO for persistence, does it
    matter whether you wrap your objects with proxy EntityBeans or
    SessionBeans? I am currently demoing TechTrader's SessionBean creator,
    which makes means that for me creating SessionBeans is much easier than
    creating EntityBeans. I am currently using stateful SessionBeans to
    wrap the JDO objects, simply dropping them when the bean is passivated
    and refinding them ( they'll already be in the cache ) when the bean is
    activated.
    My main advantage in doing it this way is SessionBeans are so much
    easier to create. Do you see any problems looming, or any other
    advantages to this decision?
    Thanks in advance.
    Eric

    I don't think it's publicly available yet, I used to work there and was
    helping out a little with testing. I'll tell you in advance, it really
    works well. Much like the JDO implementation, the process of turning
    things into SesisonBeans is very transparent to the developer. I guess
    TT is going to make it available in another week or two, as time
    permits.
    ----- Original Message -----_
    From: Matthew <mailto:[email protected]> Adams_
    To: '[email protected]' <mailto:'[email protected]'>
    Sent: Monday, June 25, 2001 11:18 AM
    Subject: RE: design patterns involving EJBs and JDO
    IMHO, JDO replaces entity beans, but you'll have to decide for yourself.
    My recommendation would be to use session beans exclusively.
    Where do you get TechTrader's "SessionBean Creator"? What are its
    features? How do you use it?
    -----Original Message-----
    From: Eric Lindauer [mailto:[email protected]]
    Sent: Monday, June 25, 2001 8:12 AM
    To: JDO-ListServ
    Subject: design patterns involving EJBs and JDO
    Hi,
    I was just wondering, if you are using JDO for persistence, does it
    matter whether you wrap your objects with proxy EntityBeans or
    SessionBeans? I am currently demoing TechTrader's SessionBean creator,
    which makes means that for me creating SessionBeans is much easier than
    creating EntityBeans. I am currently using stateful SessionBeans to
    wrap the JDO objects, simply dropping them when the bean is passivated
    and refinding them ( they'll already be in the cache ) when the bean is
    activated._
    My main advantage in doing it this way is SessionBeans are so much
    easier to create. Do you see any problems looming, or any other
    advantages to this decision?
    Thanks in advance.
    Eric_

  • EJB and ThreadLocal

    Hello,
    I have a webapp and an EJB.
    In my webapp, I use a ThreadLocal to put an object I want to be accessible from everywhere.
    When I call the EJB, this object is no more present in the ThreadLocal to the EJB-side.
    How can I pass this object from the ThreadLocal of the servlet to the ThreadLocal of the EJB ? Which object of the EJB can I use ?
    Should I impose to give this object in the constructor method of the EJB ?
    Should I use the EJBContext ?
    Thanks in advance for your help.
    bgOnline

    Hi bgOnline,
    If the EJB container and the webapp are running in two different JVM (i.e. using the remote interface of EJB), then the only possible solution I can think of is to pass it as a paramter of a method BY VALUE.
    The reason is that both web container and EJB container maintain a pool of threads and ThreadLocal you use is bound to the threads in the webapp. There is obviously no way to pass threadbound objects between threads (and by value).
    However, if you use local interface of EJB, then both webapp and EJB container are running in the same JVM, you can put an object in the ThreadLocal in webapp and retrieve it in EJB container by reference. I have tried it on WSAD 5 and it works. However, I have never put this in WebSphere or other Appservers as I think it depends too much on the behaviour of the appserver. Other appserver may still maintain two pools of threads anyway.
    And don't forget the ClassLoader problem.
    I hope my reply helps.

  • RE: Transformation and Data transfer process.

    Hi guys,
    Please some bosy help me out by providing the differences between Transformation and Data Transfer Process.
    thanks in adwance
    omkar

    Hi Omkar,
       Trnasformations providing the mapping between Sorce fields( datasource to  data target).  only map the structures..
    <b>Transformations:</b>----
    -->Trsnsformations are used to create mappings between two BI Objects and to
    transform data from BI Source(From where) to BI Target .
    -->You can create One-One Mappings between source and target in BI
    -->In transformations Source is : DataSource, InfoSource, DataStore object,
    InfoCube, InfoObject and InfoSet
    -->Target is: InfoSource, InfoObject, DataStore object and InfoCube.
    -->Transformations replaces the transfer and update rules.It's like creating transfer
    rules and update rules.Through these rules/mappings/transformations, the
    system is going to transform data from Source to Target.
      but DTP  means.. the data loading procedure will be  done with this step..
    <b>DTP :</b>
       DTP is used to transfer data from PSA to the infoprovider.
    The data transfer process can also be used to control data distribution from a BI system into any target outside of the BI system. For this purpose, a data transfer process with an open hub destination is used as the target.
           Since Deltas are now based on request from PSA ,you can have multiple datatargets pulling data with same selection criteria from same datasource(ECC) with INITS/DELTA,not possible earlier.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/f98e07cc483255e10000000a1553f7/frameset.htm
    Creating DTP
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/fa50e40f501a77e10000000a422035/content.htm
    regards
    @jay

  • Docs about RowSet, and Object RowSet questions?

    Docs about RowSet, and Object RowSet questions?
    I can find RowSet forum, so I ask here!
    Can you give me URLs where I can find more about RowSet and URLs for any RowSet implementation?
    Does Borlans, Oracle, IBM, etc., have RowSet implementation?
    I find out about Sun's RowSet implementation, but I can't find Object Rowset in this implementation?
    Is it possible to develop Object RowSet and is it useful?
    I know about O/R tools like Hibernate, but Object RowSet can be useful?
    Run SQL query and get Objects, or maybe even run Object query (like EJB or Hibernate or JDO have) and get Objects.
    No XML mapping mess and simmilar, like with EJB or Hibernate or JDO?

    You can try
    http://java.sun.com/developer/Books/JDBCTutorial/chapter5.html
    This is a tutorail for RowSet

  • Sequence of deployment for EJBs and Servlets....

    Is there any way to control the order in which weblogic 6.0 deploys EJBs
              and servlets?
              We have a few startup servlets which use EJBs, however, weblogic 6.0
              seems to start the Servlets before it deploys the EJBs and thus our
              servlets fail.
              Haider Abbas Kazmi - Java Mobile App. Developer
              [haider.kazmi.vcf]
              

    6.1 solves this problem:
              http://e-docs.bea.com/wls/docs61/adminguide/appman.html#1030797
              Haider Abbas Kazmi <[email protected]> wrote:
              > This is a multi-part message in MIME format.
              > --------------9AC9295410C7463D3A71C1A6
              > Content-Type: text/plain; charset=us-ascii
              > Content-Transfer-Encoding: 7bit
              > Is there any way to control the order in which weblogic 6.0 deploys EJBs
              > and servlets?
              > We have a few startup servlets which use EJBs, however, weblogic 6.0
              > seems to start the Servlets before it deploys the EJBs and thus our
              > servlets fail.
              > --
              > Haider Abbas Kazmi - Java Mobile App. Developer
              > --------------9AC9295410C7463D3A71C1A6
              > Content-Type: text/x-vcard; charset=us-ascii;
              > name="haider.kazmi.vcf"
              > Content-Transfer-Encoding: 7bit
              > Content-Description: Card for Haider Abbas Kazmi
              > Content-Disposition: attachment;
              > filename="haider.kazmi.vcf"
              > begin:vcard
              > n:Kazmi;Haider
              > tel;cell:(416)9864702
              > tel;fax:(416) 6434832
              > tel;work:(416) 3666425 x315
              > x-mozilla-html:FALSE
              > url:http://www.everypath.com/
              > org:Everypath Canada;Research & Development
              > adr:;;260 King St;Toronto;Ontario;M5A 4L5;Canada
              > version:2.1
              > email;internet:[email protected]
              > title:Java Mobile App. Developer
              > fn:Haider Kazmi
              > end:vcard
              > --------------9AC9295410C7463D3A71C1A6--
              Dimitri
              

  • LSMW: Significance of project , subproject and object

    Hi,
    what is the Significance of project , sub project and object.
    Thanks & Regards,
    Raghava prasad.T

    Hi Raghava,
    Welcome to SDN Forums
    It's very important you read the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] and Welcome and Rules of Engagement before posting.
    You must use the correct or most appropriate forum, so this thread will be moved from to .
    The forum is dedicated to: Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
    Greetings,
    Marcelo Ramos

  • Expose ADF-BC as ejb and use it in UI from the datacontroller

    Hi Experts.
    Here i am looking forward some experts view and guidelines on this deployment architecture question. Currently i have deploped one ADF Web fusion application which has ADF-BC and web. In that web project datacontroller side i can be able to see the view object instances under each business service. Also the web has some UI bindings too. Now the application is working fine fine on one weblogic instance.
    question1) Can i deploy this above project into two weblogic instances one with ADF-BC model ( if yes how to deploy that alone) and the other web into the another instance. ( If yes can to configure the project)
    question 2) Now can i expose the ADF-BC as ejb and use it in the same way in the web (like drag and drop from the Data controller). ? I tried the option expose the ADF-BC as ejb In this case if the VO instance access methods are not exposed. So how can i access them in the UI? For example, assume if we have 2 view object EmployeeView and DepartmentView in the application module, then after immediately create the AM, the datacontrol shows the view object instances name like EmployeeView1, DepartmentView1 and also in the web we just drag and drop to create appropriate UI. This is fine. Now i create the ejb based on the AM. In the Remote interface i have the
    void removeEntity(Object entityDTO)
    method. If i look at the datacontrol section still the data controls remains same. I think this datacontrol still shows the ADF-BC direct connectivity. If i try to create the new ejb data control which points to the same AM ejb for web, then i couldn't see the above view instance name called EmployeeView1, DepartmentView1, where i can drag and drop in the UI.
    I can only see methods like EJBHome etc.....
    So this means i cannot use the Exposed EJB from the ADF-BC Application Module to drag and drop in UI like the ADF-BC direct unless we explicitly create the view access methods in the interface. Am i correct?
    Or still am i getting the wrong assumption.
    Much appreciated if u point some code to understand this.
    -t

    Thanks for the reply.
    Basically we have found the way to expose the ADFBC as ejb and use it for data binding in the UI. I will update this thread soon about our finding. But now i have an architecture question, can we deploy as 3-tier deployment for ADF-BC using the exposed ejb interface? Because i am worrying we might run into some ADF issue in furture if we move this path. Oracle gurus please share your ideas or thoughts.
    -t

  • How to export/Import default prefs and object styles with no project open?

    I would like to export my preferences and object styles with no projects open and them import them on my team's machines so that no matter what project we create, we all start from the SAME set of defaults.  When I open captivate and check both with no projects open, there is no ability to import/export.  I know I could open a project and export, but then importing is an issue.
    I'm using CP8 on a Windows 8.1 64 bit machine.
    Help?
    Thx.
    Lori

    After a fresh install I start by editing the Preferences globally, that means by using Edit, Preferences before opening any project (like switching to Expert UI, default language, replacing feedback captions by shapes). There is indeed no way to import preferences from a specific file. I will do the same for some object styles (like creating a blank Highlight box for audio objects). You can only export/import from and to a project,  same like for all Library assets.
    However the Object styles: they are part of the default theme, along with their theme colors, master slides and skin. You cannot edit everything without having a project open. I would recommend to create a custom theme in a project, in which you have all the wanted object styles. Changing the theme colors (you can have a custom theme color palette) will change partially colors of the objects. Once you set that theme as default theme, you'll have all the object styles in the projects that use the default theme.
    To transfer Preferences, custom themes to another machine, maybe this article could help you out. It was written for a different purpose, but you'll find the location of a lot of files that you could transfer in this post:
    Captivate 8.0.1 Install? Keep your Customisation! - Captivate blog
    Lilybiri

  • Relation between EJB and CORBA

    Hi,
    I'm confused as to the relation between EJB and CORBA. Some books I've read say that CORBA is used to implement the underlying RMI protocol in EJB while others say it is an alternative to EJB.
    Could someone please clarify.
    Thanks

    Could you pleae restate your question.
    I'm assuming you want to bind a Corba object to a
    CosNaming service from within a j2ee component. JNDI
    supports this case fully via their CosNaming service provider
    (see http://java.sun.com/products/jndi/serviceproviders.html) JNDI is part of J2SE, so it's fully available to any J2EE component.
    Amlan on behalf of Kenneth Saks

  • Client calling EJB + No object bound eror

    Hi,
    I am a newbie to oc4j. I have tried to get a client to call a stateless ejb using a bat file outside the server, with no luck. I get NamingException: No object bound for java:comp/env/EmployeeBean when doing a jndi lookup. I have read the doc's, tried the answers in the forum and I even used the example code provided from oracle, but I still get the same error message every time.
    Has anyone come across this issue when calling an ejb from a client??
    Any help would be greatly appreciated. It’s driving me crazy.
    Thanks
    David

    Hi,
    I will check out the link, thank you. I am a newbie to java and oracle, so any help would be great. i wasnt sure which bits of code would be really helpfull, so i just put most of it in, sorry if it is too much info.
    i am using oracle9ias release 1.0.2.2a (i dont know if this would make any difference). I deploy all my ears using the enterprise manager. The client-jar is within the ear. i use a bat to run the Client code.
    I can get a servlet to call the same ejbs and that works fine.
    #batfile
    ========
    i set the classpath which including refernces to oc4j.jar and oc4jclient.jar and my ejb-jar
    and then i use
    set BigD=-Dorg.omg.CORBA.ORBInitialHost=localhost -Duser.timezone=ECT
    java.exe %BigD% -classpath "%classpath%" com.test.client.Client
    //Client Code
    =============
    public class Client {
         public static void main(String[] args) {
              System.out.println("Client started again...");
              try {
                   Context context = new InitialContext();
                   System.out.println("got context");
                   Object homeObject = context.lookup("java:comp/env/ejb/ConsumerRequestSession");
                   ConsumerRequestSessionHome home = (ConsumerRequestSessionHome) PortableRemoteObject.narrow(homeObject, ConsumerRequestSessionHome.class);
                   System.out.println("got home");
                   ConsumerRequestSession remote = (ConsumerRequestSession) PortableRemoteObject.narrow(home.create(), ConsumerRequestSession.class);
                   System.out.println("got remote");
                   String retValue = remote.getString();
                   System.out.println("The retValue from client is : " + retValue);
              }catch(Exception e) {
                   e.printStackTrace();
                   System.out.println("ERROR in try block of client when creating jndi :" + e.getMessage());
    #jndi
    ====
    java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
    java.naming.provider.url=ormi://localhost/test
    java.naming.security.principal=admin     
    java.naming.security.credentials=welcome
    #application-client.xml
    =======================
    <application-client>
    <display-name>ejb/ConsumerRequestSession</display-name>
         <ejb-ref>
              <ejb-ref-name>ejb/ConsumerRequestSession</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>com.test.ejb.ConsumerRequestSessionHome</home>
              <remote>com.test.ejb.ConsumerRequestSession</remote>
         </ejb-ref>
    <!--          <display-name>EmployeeBean</display-name>
         <ejb-ref>
              <ejb-ref-name>EmployeeBean</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>employee.EmployeeHome</home>
              <remote>employee.Employee</remote>
         </ejb-ref>
         -->
    </application-client>
    #orion-application-client.xml
    =============================
    <orion-application-client>
         <ejb-ref-mapping location="com/test/ejb/ConsumerRequestSession" name="ejb/ConsumerRequestSession"/>
         <!--<ejb-ref-mapping name="EmployeeBean" location="employee/EmployeeBean" />
              <ejb-ref-mapping name="EmployeeBean" location="employee/EmployeeBean" />-->
    </orion-application-client>
    #ejb-jar.xml
    <ejb-jar>
         <enterprise-beans>
              <session>
                   <ejb-name>ejb/ConsumerRequestSession</ejb-name>
                   <home>com.test.ejb.ConsumerRequestSessionHome</home>
                   <remote>com.test.ejb.ConsumerRequestSession</remote>
                   <ejb-class>com.test.ejb.ConsumerRequestSessionEJB</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>
         <assembly-descriptor>
              <container-transaction>
                   <method>
                        <ejb-name>ejb/ConsumerRequestSession</ejb-name>
                        <method-name>*</method-name>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    #orion-ejb-jar.xml
    ==================
    <orion-ejb-jar>
         <enterprise-beans>
              <session-deployment location="com/test/ejb/ConsumerRequestSession" name="ejb/ConsumerRequestSession"/>
         </enterprise-beans>
         <assembly-descriptor>
              <default-method-access>
                   <security-role-mapping name="<default-ejb-caller-role>" impliesAll="true"/>
              </default-method-access>
         </assembly-descriptor>     
    </orion-ejb-jar>
    thank you for your help
    david.

  • Help with EJB and JNDI, please

    Hello. My name is Santiago, and i am a student from the University of Valladolid, in Spain. I am newcome in the world of EJB, I have done the first EJB from de Sun tutorial (I�m using the Sun Java System Application Server PE 8.2) and now I am trying to improve it in that way: I have the EJB and the client in diferent machines conected.
    I am trying to understand how to use JNDI, but i have not good results :( I have read about using ldap but i dont know if it is apropiated, or if it is installed automaticaly with the sun aplication, or if i have to download and install it... i am not sure about anything :)
    This is my client�s code (part of it)
    Hashtable envirom = new Hashtable();
    envirom.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    envirom.put("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
    envirom.put(Context.PROVIDER_URL,"iiop://Santiago:389");
    envirom.put(Context.PROVIDER_URL,"ldap://192.168.1.101:389");
    envirom.put(Context.SECURITY_AUTHENTICATION,"none");
    InitialContext ctx = new InitialContext(envirom);
    Object objref = ctx.lookup("java:comp/env/ejb/Multiplica");
    When I try to connect in local mode (client and EJB in the same machine) i get something like that:
    javax.naming.CommunicationException: 192.168.1.101:389 [Root exception is java.n
    et.ConnectException: Connection refused: connect]
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:204)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1578)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2596)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
    It is even worse when i try it in different machines:
    10-mar-2006... com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImp1<init>
    ADVERTENCIA: "IOP00410201: <COMM_FAILURE> Fallo de conexion: Tipo de socket: IIOP_CLEAR_TEXT;
    name of host: portatil; puerto: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code:201 completed:No
    Both SSOO are XP and I have disabled Firewalls.
    PLEASE, if you colud help me It would fantastic, because I am in that trouble, i have tryed 1000 solutions but i am not able to understand it.
    Hoping you can help me.
    Santiago.

    This thread is now being followed up in:
    http://swforum.sun.com/jive/thread.jspa?threadID=64092

  • I have a new Windows tablet computer with limited hard drive space, and cannot transfer my itunes library to the hard drive. Can I run t media from an external hard drive? If so, how do I transfer my files?

    I have a new Windows tablet computer with limited hard drive space (32 GB), and cannot transfer my itunes library to the hard drive. Can I run itunes from an external hard drive? I have tried to follow some of the directions on this site, but am having no success. Thanks.

    iTunes will run fine with the media on an external drive.
    However, I suggest that a tablet computer with a tiny hard drive is not ideal as the primary computer for managing an iTunes library, even a small one. If you have another machine, perhaps a big, boxy, inexpensive old desktop with a decent amount of storage, that might be a better choice.
    http://support.apple.com/kb/HT1364

Maybe you are looking for

  • SharePoint Foundation 2013 guide

    hello guys, getting off my hands to get wet on sharepoint. need a guide on how to setup document management using sharepoint foundation thanks. Every second counts..make use of it. Disclaimer: This posting is provided AS IS with no warranties or guar

  • How do I get the website icon to stay on the desktop?

    When I save a webpage to my desktop, via "drag webpage address to desktop", the website icon is replaced by a mozilla icon. How do I get the website icon to stay on the desktop?

  • OS 10.6.8 unstable until escape pressed

    OS 10.6.8 unstable, even from sleep, until escape is pressed

  • Error 3259 message when download firmware update finish?

    I have tried to download the update firmware 2.0.1 and same error when I tried for 2.0.2. I saw the download stopped at 248.7MB/248.7MB at the itune app store screen, then itunes stopped and show error 3259 0MB/248.7MB. The description was: check the

  • Plz Help to forward pages

    Hello Techies, I m New to JSP . I need to forward pages according to the if condition. I worked out the code as <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.io.*" %> <%@ page import="java.sql.*" %> <html> <body> <% Con