Ejb 3.0 and webservices
Hello everybody?
Does everybody know if i can create a web service from an ejb 3.0 stateless session inside jdeveloper 10 g 10.1.3 (using a wizard for example)?
Thank you
It's almost too easy to need a wizard - try this:
Trhough your project properties add the JSR-181 Web Service library
In your session bean type @Web (at the top of the class or above a method) and you'll be prompted to import javax.jws.WebMethod (using Alt-Enter) then you can select the appropriate tag (@WebService for all methods to be published, @WebMethod at the individual method level, etc.)
Then deploy your EJB as normal and voila! See the deployed EJB and Web Service
Rgds
Susan
Similar Messages
-
Has anyone experienced problems with EJB published as a webservices when methods has parameters of type array?
I tried also byte[], Byte[], Int[], int[]. I think that the webservice can not find the length of the parameter, because when I use byte[] or int[] I get an ArrayOutOf Bounds, and when I use Byte[] or Int[] I get NumberFormatException. I use the soap dispatcher of the SAP J2EE to publish the EJB.
When I use a portal service and a web service it works fine, but I have problems with multiple calls at the same time.
If anyone has an ideal please help.
Best Regards,
Lucian.Hi,
this information is extracted for the devmanual of the SAP J2EE 6.20. this is the one I'm using.
By default the framework can automatically handle the following types:
All Java simple types - byte, short, int, long, char, float, double,
boolean, along with their wrapper classes - Byte, Short, Integer, Long,
Character, Float, Double, Boolean.
java.lang.String
Arrays of any value and dimension
Java Bean Styled objects These are classes, which only meaningful
parameters are either public variables, or get() or set() methods. By
default this is used to handle all kinds of special objects, which do not have
any DataMarshaller associated.
For all kinds of classes, which do not fall into these categories, there is a
DataMarshalling framework, which allows serialization or deserialization and
correct WSDL generation for any user class, by providing user
DataMarshallers.
I think the problem is not there..... As I said one of my solution doesn't really uses the portal platform for the server side, only the SAP J2EE server.
Best Regards,
Lucian. -
BPM 11g: JAVA API and Webservice API
Who knows BPM 11g: JAVA API and Webservice API?
Customer want to call BPM 11g between Heterogeneous systems, such .net framework. One way is use webservice API, I think, but where can find it? thank youWhen you create a BPM application in 11g, you're actually creating a SOA composite application with a BPMN component in the composite. From within the BPMN editor, you can specify the interface (parameters) of each start node in the process. If you select a start node, look at the implementation tab, you'll see a properties group that lets you define the interface one property at a time, or by selecting an interface from the catalog.
By defining these properties you're also defining the shape of the Web Service interface that will automatically be created in the composite. If you switch to the composite view, you'll see your BPMN process with a wire to it from a Web Service that's generated from the interface defined in the BPMN editor. The naming convention is the BPMN process name with ".service" appended. When you deploy the BPMN process, the web service will also be deployed, since it's also part of the composite. From Enterprise Manager (EM) you can test the service and get the WSDL, which could be used by other applications (e.g. .NET) to start and interact with a process instance.
This is one of the advantages of the 11g architecture. The composite exposes services to consumers/clients. The implementation could have been BPEL, BPMN, a Mediator, Java/EJBs, or any combination working together. To the consumer, it's just a web service.
In case your next question was about security ... you won't see properties about security in the BPMN editor. You use Web Service Manager to apply security or other constraints to the web service endpoint. -
Problem with "package-info.java" using EJB 3.0 and OC4J
Hi all.
I already posted this question on JDeveloper forum, but didn't get any answer,
so I'll try posting here.
Anyway, I'm new both to JDeveloper and J2EE,
so I'm trying out examples for EJB 3.0, and I got stuck at "Use Security Annotations with EJB 3.0"
(http://www.oracle.com/technology/tech/java/oc4j/ejb3/howtos-ejb3/howtoejb30security/doc/how-to-ejb30-security-ejb.html).
Example code is working perfectly, if one builds it using Ant, but I'm importing all examples into JDeveloper (or at least I'm trying to :))
JDeveloper can't build file "package-info.java" containing following code:
@javax.annotation.security.SecurityRoles(roleNames={"superuser", "user"})
package oracle.ejb30;I'm getting following output in "Compiler - Log" window:
Error(2,1): 'class', 'interface', or 'enum' expected.
Help much appreciated...
platform used:
Windows XP SP2
JDeveloper Studio (Version 10.1.3, Build 3412)
JDK 1.5_06
OC4J 10.1.3 developer preview 4 (standalone version)Since you're using EJBs, you can use JTA and can skip the getTransaction() calls. If you want to use getTransaction().begin() and commit(), then make sure that your EntityManager is resource-local. The configuration for this is in persistence.xml. Set a transaction-type of RESOURCE_LOCAL rather than JTA.
-
If I drag and drop tables with One to one mapping in an ejb diagram in JDeveloper (one table have having the foreign key as the primary key). If I create ejb 2.1 beans it makes makes a One To One mapping between the entity beans created and if I drop them as ejb 3.0 it makes a OneToMany mapping. this is what I get for the same tables.
for ejb 2.1
<ejb-relation>
<ejb-relation-name>Envincidents - Incidents</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>Envincidents has one Incidents</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>Envincidents</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>incidents_incidentsId</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>Incidents may have one Envincidents</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>Incidents</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
for ejb 3.0
Envincidents
@Id
@ManyToOne(targetEntity="mypackage.Incidents")
@JoinColumn(name="ENVINCIDENTS.INCIDENTS_ID", referencedColumnName="INCIDENTS.ID")
public Incidents getIncidents() {
return incidents;
public void setIncidents(Incidents incidents) {
this.incidents = incidents;
Incidents
@OneToMany(targetEntity="mypackage.Envincidents")
@JoinColumn(name="ENVINCIDENTS.INCIDENTS_ID", referencedColumnName="INCIDENTS.ID")
public Collection<Envincidents> getEnvincidentsCollection() {
return envincidentsCollection;
public void setEnvincidentsCollection(Collection<Envincidents> envincidentsCollection) {
this.envincidentsCollection = envincidentsCollection;
public Envincidents addToEnvincidentsCollection(Envincidents envincidents) {
getEnvincidentsCollection().add( envincidents );
envincidents.setIncidents( this );
return envincidents;
public Envincidents removeFromEnvincidentsCollection(Envincidents envincidents) {
getEnvincidentsCollection().remove( envincidents );
envincidents.setIncidents( null );
return envincidents;
this causes the following problem.
Exception Description: Multiple writable mappings exist for the field [ENVINCIDE
NTS.INCIDENTS_ID]. Only one may be defined as writable, all others must be spec
ified read-only.
which I have already reported.
I know this is a minor inconvenience and I can hand edit the entity beans and make them one to one for ejb 3.0. But would be to good advantage to have a consistent "dropping of tables" for ejb 2.1 and 3.0. So one can have a similar behavior of entity beans created from tables using ejb 2.1 and 3.0.I guess this could be desirable if migrating from ejb 2.1 to 3.0 if one has already designed the database.
Dev -
Directory structure for servlets and webservices in one application
hi,
Can any one help me for creating servlets and webservices in one
application and deploying in Jboss 4.2.0.
I want to know exactly what is the directory structure for creating this
application and what are the additional .xml files for deploying this application.
if any one know this answere please tell the answere.I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
Thanks in advance
Axel -
Hello, do LoadVars, XML.load(), or WebService support HTTPS-based endpoints, Yes or No?
BACKGROUND
============
I've been trying to get a LoadVars to actually make a call to an HTTPS endpoint. There is nothing in the documentation that says it can't. I know that there's also XML.load() and WebService class, but from the looks of it they don't do HTTPS.
During my tests I have absolutely no issues with making calls to the same service over HTTP. When I change it to HTTPS I don't see HTTPStatus or even failures. Also, netstat on my server will show a connection being established with the endpoint when using HTTP but not when using HTTPS. I've also tried setting SSLVerifyCertificate to "false" in my Server.xml and after a restart of AMS it doesn't help, same symptom.
I've also googled and looked through all Adobe forum posts that I can find:
https://forums.adobe.com/message/4938426#4938426
https://forums.adobe.com/thread/1661461
https://forums.adobe.com/thread/782037
https://forums.adobe.com/message/74981
https://forums.adobe.com/message/5107735#5107735
https://forums.adobe.com/message/7815#7815
https://forums.adobe.com/message/53870#53870
https://forums.adobe.com/message/87797#87797
WebService Class - http://stackoverflow.com/questions/5619776/webservice-and-fms
The best I found from the posts above is a non-commital answer from adobe staff at https://forums.adobe.com/message/4938426#4938426 and a 3rd party person saying that Webservice doesn't work at http://stackoverflow.com/questions/5619776/webservice-and-fms.
All I need is an official supported/not-supported from the Adobe staff. Shouldn't be to hard after 5 years or so of ignoring the questions in the forum right?Adobe, please provide some details to your current and possibly potential customers, in at least one of the many unanswered posts about making HTTPS requests from AMS.
P.S.
realeyes_jun,
RealEyes Media has been an inspiration to me for many years, and I would like to thank them for their efforts to better the media streaming community.
Also, would it be possible to please release the source to REDbug? -
I'm new in using of BPM and Webservices
Netweaver version is CE 7.2 SPS03
I use Web dynpro to write a ap to trigger web service for start BPM process.
It took about 40 sec for waiting response when i trigger the synchronous web service.
And i get a exception "DEFAULT_WS_METADATA_DEST. The server response timed out"
But i check my process status, it is running ok.
When I tested for asynchronous web service ,I get quick response for it
Does this version only support asynchronous web service?
Do I need another configuration to use synchronous web service?Hi
For process start you need a asynchronus web service (no output / response).
Also, you can use a synchronus one if you are aware of this: If you use a synchron web service, you have to model a parallel split at the beginning of the process and finishing one of both tokens directly. This way, a response is generated when the first token hits the end event and the rest of the process is handled asynchronus. -
Ejb-jar.xml and orion-ejb-jar.xml configuration issue
Chris,
We have an application that uses the Oracle 10g Application Server and WebSphere MQ v5.3 w/ fixpack 9.
Our application is a J2EE messaging system which essentially consists of Message Driven Beans, the EJB
realization of the J2EE Java Message Service (JMS) API. Our application has Message Driven Beans which
listen to queues and send messages to queues -- a simple messaging system. Currently we can listen to queues, but
cannot send messages to queues in the Oracle 10g Application Server environment.
Any J2EE application server has its own implementation of Java Naming Directory Interface (JNDI) API that
deployed J2EE applications utilize to lookup resources such as Data Sources, JMS Destinations (i.e. MQ Queue),
JMS QueueConnectionFactories (i.e. MQ QManagers).
Our application uses the 3rd party JMS Provider, WebSphere MQ.
MQ ships with a JMSAdmin tool which allows one to create JMS administered objects (i.e. objects a java
application searches for in some JNDI directory) that reside in some JNDI context. We create a JNDI context for
MQ resources, queues and QManagers. We configure the MQ provided
JMSAdmin tool with two property name/value pairs:
PROVIDER_URL=file:/opt/mqm/JNDI-Directory
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
A resultant .bindings file is created in /opt/mqm/JNDI-Directory which represents our JDNI context
containing our JMS administered objects. A standalone java application that needs to directly access this
JNDI context can simply conduct a JNDI lookup on the following context: "java:comp/resource/MQSeries/". An
example of how a standalone application would lookup a JMS administered object named "qNumber1" would be to
lookup "java:comp/resource/MQSeries/qNumber1". This lookup would result in the standalone java application
having a JMS reference to an MQ Queue.
There is a major difference in how an enterprise EJB application deployed into a J2EE Container (Oracle 10g App Server)
conducts a JNDI lookup on a 3rd party resource such as MQ as a JMS Provider. A typical EJB application deployed
into a J2EE container as an .ear (enterprise archive) file has implicit access to the application server's own
JNDI context. This JNDI context is usually "java:comp/env/". Looking up the Application Server's own Data Source or
it's own JMS Resources is easy. An application that needs references to these Application Server provided resources
simply conducts a lookup for "java:comp/env/jms/someQ" or "java:comp/env/jdbc/myDataSource".
The problem we face is mapping our MQ JNDI context to the Oracle App Server's own JNDI context. We believe this is
accomplished through mappings defined in both the ejb-jar.xml (EJB Descriptor) and the application server specific
counterpart, orion-ejb-jar.xml. Note that Oracle 10g Application Server uses the popular orion J2EE container for
hosting J2EE enterpise applications.
Our Message Driven Beans (MDBs)currently listen to the Queue at the JNDI location "prodQ". Our problem is that we cannot
get our MDB to send messages to any queues. Note that the MQ implementation of the queues and Queue Managers work
flawlessly with standalone java applications. It's safe to say that the MQ objects are working.
We are looking for a solid example of how the ejb-jar.xml and the orion-ejb-jar.xml map 3rd party JMS provider
JNDI locations to the App Server's JNDI context.
Below is how we have attempted to configure our own ejb-jar.xml and orion-ejb-jar.xml:
ejb-jar.xml begin >>>>>>>>>>>>>>><?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Production Message Driven Bean</display-name>
<enterprise-beans>
<message-driven>
<display-name>prodMdb</display-name>
<ejb-name>prodMdb</ejb-name>
<ejb-class>message.handler.AIDMSMessageConsumerBean</ejb-class>
<transaction-type>Bean</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>prodQCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<res-ref-name>prodQ</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-ref>
<res-ref-name>prodR</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>
<<<<<<<< ejb-jar.xml end <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
begin orion-ejb-jar.xml >>>>>>>>>>>>>>>>>>>>>>>>>>><orion-ejb-jar>
<enterprise-beans>
<message-driven-deployment name="prodMdb" connection-factory-location="java:comp/resource/MQSeries/prodQCF" destination-location="java:comp/resource/MQSeries/prodR">
<resource-ref-mapping location="prodQ" name="prodQ">
<lookup-context location="java:comp/resource/MQSeries/" >
<!-- <context-attribute name="java.naming.factory.initial"
value="com.sun.jndi.fscontext.RefFSContextFactory" /> -->
</lookup-context>
</resource-ref-mapping>
<resource-ref-mapping location="prodR" name="prodR">
<lookup-context location="java:comp/resource/MQSeries/" >
<!-- <context-attribute name="java.naming.factory.initial"
value="com.sun.jndi.fscontext.RefFSContextFactory" /> -->
</lookup-context>
</resource-ref-mapping>
</message-driven-deployment>
</enterprise-beans>
</orion-ejb-jar>
<<<<<<<<< end orion-ejb-jar.xml <<<<<<<<<<<<<<<<<<<<<<<<If you look at the contents of a deployment plan (Plan.xml) when you have it generated
<deployment-plan ...>
<module-override>
<module-name>ejb.jar</module-name>
<module-type>ejb</module-type>
<module-descriptor external="true">
<root-element>weblogic-ejb-jar</root-element>
<uri>META-INF/weblogic-ejb-jar.xml</uri>
</module-descriptor>
<module-descriptor external="false">
<root-element>ejb-jar</root-element>
<uri>META-INF/ejb-jar.xml</uri>
</module-descriptor>
<module-descriptor external="true">
<root-element>persistence-configuration</root-element>
<uri>META-INF/persistence-configuration.xml</uri>
</module-descriptor>
<module-descriptor external="false">
<root-element>persistence</root-element>
<uri>META-INF/persistence.xml</uri>
</module-descriptor>
</module-override>
</deployment-plan>You can see which files can be external and which can be not. The weblogic-ejb-jar.xml can be external
but in this case you need a deployment plan to point weblogic to the file. The ejb-jar.xml cannot be
external (see external=false)
The benefit of storing the weblogic-ejb-jar.xml is that your administrator can fine tune certain
configurations by using a deployment plan, instead of having to extract the contents from the jar file
and then repackage it again.
No need to worry about a clustered environment, you can place the jar and the deployment plan
on the server where the admin server is located, when you deploy an application you deploy it to
the cluster and everything is taken care off.
More information on deployment plans can be found here: http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/config.html -
Looking up Identical EJB both locally and remotely
prior to posting this request, i have read and
attempted multiple solutions to this problem
suggested in the forums to no avail.
if i have the same EAR, which contains both
an EJB Component and a WAR, deployed to multiple
servers, is it possible to look up an EJB both
locally and remotely?
for instance, on the server performing the lookup,
EJB A is deployed. i successfully look it up
via the following call:
InitialContext context = new InitialContext();
Object ref = context.lookup(name);
return javax.rmi.PortableRemoteObject.narrow("EJBA", EJBAClass.class);
subsequently, i try to lookup the same ejb
on a remote server by performing the following
calls:
Properties environment = new Properties();
environment.put("java.naming.factory.initial", "com.evermind.server.rmi.RMIInitialContextFactory");
environment.put("java.naming.provider.url",
"ormi://remoteserver:23791/application");
environment.put( "java.naming.security.principal", "user");
environment.put( "java.naming.security.credential", "password");
jndiContext = new InitialContext(environment);
Object ref = context.lookup(name);
return javax.rmi.PortableRemoteObject.narrow("EJBA", EJBAClass.class);
however, i either receive an authentican exception, saying "user"
doesnt have access to allication "application", or a null pointer
exception int the RMIInitialContext.
on my local application, i have defined my ejbs in the web.xml
as defined by the spec. the ejb component is marked as remote="false"
in my orion-application.xml as well.
the version of oc4j is 1.0.2.2.1.
any directinon on this would be greatly appreciated.
thanks,
ted riceas a follow up to my own question, using a application
client, outisde of the web application i can
successfully look up my ejbs locally and remotely.
however, from within the web application, i constantly
receive a ClassCastException.
if no one can tell me how to resolve this, could someone
let me know if they have in fact looked up the
same EJB, both deployed locally and remotely, from the
same web application.
thanks,
ted -
Difference between ejb 3.0 and hibernate
Hi, I'm new at ejb 3.0 and I've read a little about Hibernate too, but there's one thing I don't understand. Could you tell me what's the difference between using ejb 3.0 and Hibernate, both of them are for persistence, and What about toplink?
Hi, I'm new at ejb 3.0 and I've read a little about Hibernate too, but there's one thing I don't understand. Could you tell me what's the difference between using ejb 3.0 and Hibernate, both of them are for persistence, and What about toplink?
-
JDev 1013 BUG? EJB, CMR, DTO and session facade.
I've created two CMP Entity EJB's, CourseEJB and PupilEJB, and defined a M:N relationship between them. A course has many pupils and vice versa. Each bean has only two attributes, id (Long, part of PK) and name (String) for simplicity.
1. Generated DTO's for the two beans won't compile
I get error on:
public void addcourseEJBLocalDTO(courseEJBLocalDTO courseEJBLocalDTO)
coursesDTO.add(courseEJBLocalDTO);
courseEJBLocalDTO.setPupilsDTO(this);
and:
public void addPupilEJBLocalDTO(PupilEJBLocalDTO pupilEJBLocalDTO)
pupilsDTO.add(pupilEJBLocalDTO);
pupilEJBLocalDTO.setCoursesDTO(this);
because JDev has created definitions of the setCoursesDTO function like this:
public void setCoursesDTO(Collection<courseEJBLocalDTO> coursesDTO)
this.coursesDTO = coursesDTO;
and ditto for the setPupilsDTO method, taking a Collection as argument too.
I can fix this code manually, but next step, generating a session Facade with added methods for handling the entity beans isn't exactly any better...
One M:N relation is pretty basic, am I doing something wrong here?
Message was edited by:
jonmartiForgot to add, running on 1013
-
Can EJB 1.1 and EJB 2.0 Coexists ?
Can EJB 1.1 and EJB 2.0 Coexists.
We have an Application in EJB 1.1. We want to shift to EJB2.0.
Do we need to change all the EJBs in one go or can we change one by one, the 2 versions existing together in the same EAR file ? We are using Weblogic 6.1.Migrating from Enterprise JavaBeansTM (EJBTM )1.1 to 2.0
http://developer.java.sun.com/developer/technicalArticles/ebeans/ejbmigrate/ -
SLD conf for JDBC and webservice
Hi,
I am coonecting to source and target via webservice or JDBC.Do we need any configuration in SLD for systems.Driver and webservice has all details to connect to source and target system.Please confirm me if I am wrong.When you have complete tech details of the system, you can create a Business System for the same and import it into your ID.
In short, a Business System represents a physical system.
When you don't have complete info for the system, you can create a business service in your ID.It represnts an abstract service that makes connection to the source/target system.
The choice depends on our own. -
GlassFish v3, EJB 3.1 and Standalone Client
hi team.
I'm very glad releasing javaee 6.
I download netbeans 6.8 with GlassFish v3 and try to write simple ejb 3.1 application.
ejb module deployed successfully without any problem, after this I've created new simple java application and try to call ejb 3.1 session bean.
but no success.
can anybody show me sample code how to call ejb 3.1 from standalone client ??
I was working with ejb 3.0 and jboss. I had not any problem from standalone client.
ejb 3.0 standalone client for jboss:
Properties env = new Properties();
env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
env.setProperty("java.naming.provider.url", "localhost:1099");
env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
InitialContext ctx = new InitialContext(env);
SomeSessionInt sBean = (SomeSessionInt)ctx.lookup("SomeSessionBean/remote");can anybody tell me which client jars are required for client application and what is the environment properties should i set ?
PS.
Also i tried to make enterprise application with ejb and web module into netbeans. but there wasn't any problem to inject ejb session bean from jsf managed bean. problem is how to lookup ejb from standalone client.
any ideas will be appreciated.
Regards,
Paata Lominadze.also i can post my full example with error stacktrace.
1.session bean (interface not required , as we know from spec.)
public class MySessBean {
public String sayHello(String name) throws Exception {
System.out.println("Method initialized.");
return "Hello : " + name;
}2.Standalone java client
public class Main {
public static void main(String[] args) {
try {
Properties jndiProps = new Properties();
jndiProps.put("java.naming.factory.initial", "com.sun.enterprise.naming.impl.SerialInitContextFactory");
jndiProps.put("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
jndiProps.put("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
jndiProps.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
jndiProps.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
Context ctx = new InitialContext(jndiProps);
System.out.println(ctx.lookup("java:global/MyEJBModule/MySessionBean"));
MySessionBean mySessionBean = (MySessionBean)ctx.lookup("java:global/MyEJBModule/MySessionBean");
mySessionBean.sayHello("Paata");
} catch (Exception e) {
e.printStackTrace();
}3. error stacktrace on server side:
WARNING: "IOP00100006: (BAD_PARAM) Class com.magti.billing.ejb.__EJB31_Generated__MySessionBean__Intf____Bean__ is not Serializable"
org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:990)4.client side error stacktrace:
Dec 14, 2009 9:15:13 AM com.sun.enterprise.transaction.JavaEETransactionManagerSimplified initDelegates
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
Dec 14, 2009 9:15:18 AM com.sun.enterprise.naming.impl.SerialContext lookup
SEVERE: enterprise_naming.serialctx_communication_exception
Dec 14, 2009 9:15:18 AM com.sun.enterprise.naming.impl.SerialContext lookup
SEVERE:
java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
java.io.NotSerializableException: ----------BEGIN server-side stack trace----------
org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:990)
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1005)
at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:753)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAny(Util.java:370)_____________________________
Regards,
Paata Lominadze.
Maybe you are looking for
-
My Macbook Pro is running Leopard 10.5.8 and I want to install Mountain Lion
What are the steps for doing this? I bought a used Macbook Pro (late 2008-2009 silveraluminum 250 GB HD model) after recently buying a new Macbook Air that I broke. My Macbook air was a 2012 and came with Mountain Lion 10.8 preinstalled (as there are
-
How to access parent, child nodes and attributes in XML?
EXAMPLE CODING: [Embed("assets/Try.xml", mimeType="application/octet-stream")] private static consTTest:Class; public static function getTestXML() : XML var baTest:ByteArrayAsset = ByteArrayAsset( new test() ); var xmlTest:XML = new XML( baTest.readU
-
Wow. Just signing up for this forum on the phone was a challenge - especially The World's Longest EULA. I bought the Z10 specifically because I use a smartphone very heavily for business - especially email. I'm also a heavy user of Google products -
-
Making Tooltips appear on pictures that aren't links...
I own a doggie daycare and am designing my own website on IWeb 09. I have lots of pictures of my client's dogs playing throughout my site and thought it would be neat if when my clients put their mouse over a particular picture I could have something
-
I just upgraded from 10.4.11 to 10.5.4 tonight, all when smoothly. Right away I noticed that the font size in the Finder Sidebar is a little small for these old eyes. Is there a way to increase the font size in the Sidebar? thanks,